-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error code E0116 causes high volume of incorrect compiler errors #125814
Comments
...huh, the |
This happens because the query |
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 |
@anthonydandrea the most esoteric thing you'll have to deal with is the |
Current output is doing what was originally requested:
|
I want to try this, but like what tests should I add? |
@kei519 it would be adding a file with fn main() {
let x = "hello";
x.split(" ");
}
impl Vec<usize> {} //~ ERROR E0116 in a |
Thank you! I'll try. @rustbot claim |
… to check E0116 does not cause unrelated errors rustc xxx (we do not know) to 1.82.0 emits unrelated errors when E0116 is present (see rust-lang#125814). We do not know what caused and fixed it, but add a test to confirm rustc does not cause the same error in the future.
Add a new test ui/incoherent-inherent-impls/no-other-unrelated-errors to check E0116 does not cause unrelated errors rustc xxx (we do not know) to 1.82.0 emits unrelated errors when E0116 is present (see rust-lang#125814). We do not know what caused and fixed it, but add a test to confirm rustc does not cause the same error in the future.
Rollup merge of rust-lang#133890 - kei519:fix-125814, r=compiler-errors Add a new test ui/incoherent-inherent-impls/no-other-unrelated-errors to check E0116 does not cause unrelated errors rustc xxx (we do not know) to 1.82.0 emits unrelated errors when E0116 is present (see rust-lang#125814). We do not know what caused and fixed it, but add a test to confirm rustc does not cause the same error in the future.
@anthonydandrea , can you assign me this issue? I would love to solve it. |
Resolved by #133890 |
Hello! When an E0116 is present in a codebase, it causes a very large slew of other unrelated and incorrect errors to get printed to the terminal. Even though it's a beginner Rust mistake, this is extremely hard to diagnose in any codebase.
Possible solutions might be:
If E0116 is found, just print that, and skip printing any other errors (preferred)
If E0116 is found, print it at the very end (not preferable, as there may be hundreds of errors which print first)
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: