-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
thread 'rustc' panicked at rust-nightly/compiler/rustc_errors/src/diagnostic.rs:1006:9: #133834
Comments
I can't repro this. @wxie7 how did you invoke rustc? Does it require debug assertions? |
@wxie7 thanks for the report. Can you make sure that for future reports, if an ICE needs debug assertions to trigger that you explicitly state that in the issue description? You can also add the label yourself via |
@jieyouxu Mutate on the seed provided by the LLM. |
@wxie7 ok, so basically fuzzing. Can you make sure for fuzzed examples, that you follow the fuzzing guidelines https://rustc-dev-guide.rust-lang.org/fuzzing.html?highlight=fuzzing#in-a-nutshell, e.g. that you state that the example was fuzzer-produced and include sufficient info like rustc commit hash and debug assertions so we can repro? In particular, it would be very helpful if these examples can be further minimized. |
Minimized: #![crate_type = "lib"]
fn foo() -> String {
let mut bar = {
unknown_macro!();
};
return bar;
} requires the block-of-an-undefined-macro. |
duplicate of #114251 ? cc @Noratrieb |
@matthiaskrgr not a duplicate, but the same underlying issue: trying to get the |
The `println!();` statement's span doesn't include the `;`, and the modified suggestions where trying to get the `;` by getting the differenece between the statement's and the expression's spans, which was an empty suggestion. Fix rust-lang#133833, fix rust-lang#133834.
Do not emit empty suggestion The `println!();` statement's span doesn't include the `;`, and the modified suggestions where trying to get the `;` by getting the differenece between the statement's and the expression's spans, which was an empty suggestion. Fix rust-lang#133833, fix rust-lang#133834.
Do not emit empty suggestion The `println!();` statement's span doesn't include the `;`, and the modified suggestions where trying to get the `;` by getting the differenece between the statement's and the expression's spans, which was an empty suggestion. Fix rust-lang#133833, fix rust-lang#133834.
Do not emit empty suggestion The `println!();` statement's span doesn't include the `;`, and the modified suggestions where trying to get the `;` by getting the differenece between the statement's and the expression's spans, which was an empty suggestion. Fix rust-lang#133833, fix rust-lang#133834.
Rollup merge of rust-lang#133843 - estebank:empty-semi-sugg, r=jieyouxu Do not emit empty suggestion The `println!();` statement's span doesn't include the `;`, and the modified suggestions where trying to get the `;` by getting the differenece between the statement's and the expression's spans, which was an empty suggestion. Fix rust-lang#133833, fix rust-lang#133834.
I tried this code:
I expected to see this happen: explanation
Instead, this happened: explanation
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: