1
Fork 0

Rollup merge of #93229 - mark-i-m:noquiet, r=eddyb

Remove DiagnosticBuilder.quiet

r? `@eddyb`

cc https://github.com/rust-lang/rust/issues/69426 `@GuillaumeGomez` `@Manishearth`
This commit is contained in:
Matthias Krüger 2022-01-23 20:13:07 +01:00 committed by GitHub
commit a1645e5b57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 25 deletions

View file

@ -476,10 +476,6 @@ impl Session {
&self.parse_sess.span_diagnostic
}
pub fn with_disabled_diagnostic<T, F: FnOnce() -> T>(&self, f: F) -> T {
self.parse_sess.span_diagnostic.with_disabled_diagnostic(f)
}
/// Analogous to calling methods on the given `DiagnosticBuilder`, but
/// deduplicates on lint ID, span (if any), and message for this `Session`
fn diag_once<'a, 'b>(