You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
thread 'main' panicked at src/tools/rustfmt/src/parse/session.rs:42:9: silent emitter attempted to translate a diagnostic #6082
@aDifferentJT I don't think this is an issue with a particular code snippet. If I had to guess Id say changes made in rust-lang/rust#121085 are causing this issue.
@aDifferentJT when you have a moment can you confirm that this is resolved on the latest nightly (rustfmt 1.7.0-nightly (7d3702e4 2024-03-06)? I just ran your input snippet with a few recent nighty versions, and I can no longer reproduce the panic using the most recent nightly.
steps to verify:
rustup install nightly or rustup install nightly-2024-03-07
Activity
ytmimi commentedon Feb 19, 2024
No worries. What version of rustfmt are you using?
ytmimi commentedon Feb 19, 2024
@aDifferentJT Do you also have an input snippet that we could run rustfmt on to reproduce the issue?
aDifferentJT commentedon Feb 19, 2024
The latest nightly, I ran rustup update about an hour ago.
aDifferentJT commentedon Feb 19, 2024
Not to hand unfortunately, I haven't yet tried to narrow down the code that causes it, I'll try to do that in the morning, it's quite late here.
ytmimi commentedon Feb 19, 2024
@aDifferentJT I don't think this is an issue with a particular code snippet. If I had to guess Id say changes made in rust-lang/rust#121085 are causing this issue.
ytmimi commentedon Feb 19, 2024
were you running rustfmt on a public repo? That might be enough to reproduce the issue.
aDifferentJT commentedon Feb 19, 2024
Sorry, no, it's private for now, if I get time in the morning I'll try to get a more minimal case I can send
aDifferentJT commentedon Feb 19, 2024
I've minimised the file, this seems to be the smallest file that causes the issue
rustfmt_ice.rs
ytmimi commentedon Feb 19, 2024
Perfect! I'm also able to reproduce the bug using the snippet. Thank you very much! I think this will help us figure out what's going on.
ytmimi commentedon Feb 23, 2024
rust-lang/rust#121487 doesn't explicitly reference this issue, but I'm hoping that it also resolves the problem 🤞🏼
Rollup merge of rust-lang#121301 - davidtwco:rustfmt-silent-emitter, …
Rollup merge of rust-lang#121301 - davidtwco:rustfmt-silent-emitter, …
Rollup merge of rust-lang#121301 - davidtwco:rustfmt-silent-emitter, …
Rollup merge of rust-lang#121301 - davidtwco:rustfmt-silent-emitter, …
Rollup merge of rust-lang#121301 - davidtwco:rustfmt-silent-emitter, …
Unrolled build for rust-lang#121301
ytmimi commentedon Mar 7, 2024
@aDifferentJT when you have a moment can you confirm that this is resolved on the latest nightly (rustfmt 1.7.0-nightly (7d3702e4 2024-03-06)? I just ran your input snippet with a few recent nighty versions, and I can no longer reproduce the panic using the most recent nightly.
steps to verify:
rustup install nightlyorrustup install nightly-2024-03-07rustfmt +nightlyaDifferentJT commentedon Mar 8, 2024
@ytmimi Looks like it's working, thanks