]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_session/src/session.rs
Rollup merge of #93589 - est31:option_then, r=cjgillot
[rust.git] / compiler / rustc_session / src / session.rs
index 730e79a56470ea95e23e313caaab0af9583c58f1..9bcdd7f3da6b3c729c58934964d9b4180b6166a0 100644 (file)
@@ -476,10 +476,6 @@ pub fn diagnostic(&self) -> &rustc_errors::Handler {
         &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>(