2

conditionally ignore fatal diagnostic in the SilentEmitter by ytmimi · Pull Requ...

 4 weeks ago
source link: https://github.com/rust-lang/rust/pull/122737
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Contributor

This change is primarily meant to allow rustfmt to ignore all diagnostics when using the SilentEmitter. Back in #121301 the SilentEmitter was shared between rustc and rustfmt. This changed rustfmt's behavior from ignoring all diagnostic to emitting fatal diagnostics, which lead to rust-lang/rustfmt#6109.

These changes allow rustfmt to maintain its previous behaviour when using the SilentEmitter, while allowing rustc code to still emit fatal diagnostics.

calebcartwright reacted with thumbs up emoji

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK