mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 21:16:27 +03:00
a41d236a6e
Creating a "trimmed DefID path" when no error is being emitted is an ICE (on purpose). If we create a trimmed path for a lint that is then silenced before being emitted causes a known ICE. This side-steps the issue by always using `with_no_trimmed_path!`.
This was verified to fix https://github.com/quinn-rs/quinn/, but couldn't write a repro case for the test suite.
Fix #135289.
(cherry picked from commit 93a19501c2)