diff options
| author | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2022-01-26 04:40:43 +0000 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2022-02-23 05:38:24 +0000 |
| commit | 8562d6b7523b498f731f78dd740d0bc612983ffc (patch) | |
| tree | 0b378484f5356cba9b466d0187adf1e3282a6098 /compiler/rustc_errors | |
| parent | d4fc5ae25cea1068fc2a3d96763d3ede3a6a14d4 (diff) | |
| download | rust-8562d6b7523b498f731f78dd740d0bc612983ffc.tar.gz rust-8562d6b7523b498f731f78dd740d0bc612983ffc.zip | |
rustc_errors: remove `struct_dummy`.
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index aec67b5e1fd..34f52d78ec9 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -622,14 +622,6 @@ impl Handler { self.inner.borrow_mut().emit_stashed_diagnostics(); } - /// Construct a dummy builder with `Level::Cancelled`. - /// - /// Using this will neither report anything to the user (e.g. a warning), - /// nor will compilation cancel as a result. - pub fn struct_dummy(&self) -> DiagnosticBuilder<'_> { - DiagnosticBuilder::new(self, Level::Cancelled, "") - } - /// Construct a builder at the `Warning` level at the given `span` and with the `msg`. /// /// Attempting to `.emit()` the builder will only emit if either: |
