Comments (4)
I've never contributed to Rust OSS but if this may be first-time-contributor friendly, I'd be happy to give it a go. Any pointers of where to try changes beyond crate_inherent_impls
would be appreciated!
from rust.
...huh, the impl Vec<usize>
causes a failure to find .split
on str...
from rust.
This happens because the query crate_inherent_impls
returns a Result<&'tcx CrateInherentImpls, ErrorGuaranteed>
, which means that when calling that query, if there's any error being propagated, we don't actually get the inherent impls. The options are to modify the existing query to never forward the errors (which would break the query caching mechanism, I believe) or add a second query that always succeeds, as a fallback to the fallible query so that we can get as many of the inherent impls as possible for the later resolutions.
from rust.
@anthonydandrea the most esoteric thing you'll have to deal with is the query
system, as there's a function crate_inherent_impls
with a corresponding query crate_inherent_impls
which is a way of encoding the contract of the "providers", so that you can define whether calls should get memoized/cached on-disk. Because we want errors to be properly tracked, you'd have to add a new query that always succeeds that isn't cached, that only gets called if the other query call fails. You probably can put that logic behind a method in TyCtxt
which deals with the fall back and then call that new method from everywhere the query gets called today.
from rust.
Related Issues (20)
- `#[expect(unused_imports)]` does not work correctly on grouped imports HOT 8
- Solve the pinned memchr problem
- `doctest` line number is incorrect if used with #![doc = include_str!()] HOT 6
- `tests/run-make/print-target-list` fails for csky-unknown-linux-gnuabiv2 HOT 3
- Missing implied bound raises misleading error message HOT 3
- Tracking issue for pub_use_of_private_extern_crate future-compatibility lint
- Degradation from rustc 1.71.0 -> 1.79.0 ("infinite space" compile error not recognized anymore) HOT 6
- type alias `Plus2` is never used HOT 10
- The Android CI prints unrelated things to stdout, ruining check-run-results tests. HOT 2
- conflicting errors: `index out of bounds` HOT 2
- ICE: delegation: `unexpected parent of trait or impl item or item not found` HOT 1
- run-make: revise rmake.rs setup in compiletest
- Unconstrained lifetimes in impl headers are usable in assoc consts
- don't suggest turning crate-level attributes into outer style HOT 1
- Remove `binary_asm_labels` once the LLVM issue is fixed
- `asm!` lints based on `cfg` rather than target HOT 3
- `std::ptr::drop_in_place` docs suggest overwriting value with `write`, which can lead to unsoundness in common cases HOT 6
- assertion left==right failed in rustc_query_system/src/dep_graph/serialized.rs HOT 1
- Tracking Issue for `debug_more_non_exhaustive`
- rustdoc leaks private types in Implementations on Foreign Types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.