diff options
| author | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2022-01-26 03:46:56 +0000 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2022-02-23 05:38:24 +0000 |
| commit | d4fc5ae25cea1068fc2a3d96763d3ede3a6a14d4 (patch) | |
| tree | c5eb1d2eb4b4bfdb915f8dbd114fc5cf98ee6578 /compiler/rustc_session/src | |
| parent | 02ff9e0aef03d48fdecc2d114311217010ec1d81 (diff) | |
| download | rust-d4fc5ae25cea1068fc2a3d96763d3ede3a6a14d4.tar.gz rust-d4fc5ae25cea1068fc2a3d96763d3ede3a6a14d4.zip | |
rustc_errors: handle `force_warn` only through `DiagnosticId::Lint`.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index c83a60f5feb..0515c440ab8 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -306,13 +306,6 @@ impl Session { pub fn struct_span_warn<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> DiagnosticBuilder<'_> { self.diagnostic().struct_span_warn(sp, msg) } - pub fn struct_span_force_warn<S: Into<MultiSpan>>( - &self, - sp: S, - msg: &str, - ) -> DiagnosticBuilder<'_> { - self.diagnostic().struct_span_force_warn(sp, msg) - } pub fn struct_span_warn_with_code<S: Into<MultiSpan>>( &self, sp: S, @@ -324,9 +317,6 @@ impl Session { pub fn struct_warn(&self, msg: &str) -> DiagnosticBuilder<'_> { self.diagnostic().struct_warn(msg) } - pub fn struct_force_warn(&self, msg: &str) -> DiagnosticBuilder<'_> { - self.diagnostic().struct_force_warn(msg) - } pub fn struct_span_allow<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> DiagnosticBuilder<'_> { self.diagnostic().struct_span_allow(sp, msg) } |
