about summary refs log tree commit diff
path: root/src/librustc_errors
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2020-06-09 14:37:59 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2020-06-09 15:01:02 +0100
commit5541f689e9cfc6c1ccdb2277a308bc2e8541ab5e (patch)
tree5a8f9bd2527f03f20cc1b4e53d32cb53540db1cc /src/librustc_errors
parentccac43b86b559e01fa71179af1a838ab94559c75 (diff)
downloadrust-5541f689e9cfc6c1ccdb2277a308bc2e8541ab5e.tar.gz
rust-5541f689e9cfc6c1ccdb2277a308bc2e8541ab5e.zip
Handle assembler warnings properly
Diffstat (limited to 'src/librustc_errors')
-rw-r--r--src/librustc_errors/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index e4a560e434a..7261c638ce0 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -581,6 +581,11 @@ impl Handler {
         DiagnosticBuilder::new(self, Level::Help, msg)
     }
 
+    /// Construct a builder at the `Note` level with the `msg`.
+    pub fn struct_note_without_error(&self, msg: &str) -> DiagnosticBuilder<'_> {
+        DiagnosticBuilder::new(self, Level::Note, msg)
+    }
+
     pub fn span_fatal(&self, span: impl Into<MultiSpan>, msg: &str) -> FatalError {
         self.emit_diag_at_span(Diagnostic::new(Fatal, msg), span);
         FatalError