diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2020-06-09 14:37:59 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2020-06-09 15:01:02 +0100 |
| commit | 5541f689e9cfc6c1ccdb2277a308bc2e8541ab5e (patch) | |
| tree | 5a8f9bd2527f03f20cc1b4e53d32cb53540db1cc /src/librustc_session | |
| parent | ccac43b86b559e01fa71179af1a838ab94559c75 (diff) | |
Handle assembler warnings properly
Diffstat (limited to 'src/librustc_session')
| -rw-r--r-- | src/librustc_session/session.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_session/session.rs b/src/librustc_session/session.rs index 048033846a1..06d7d4f14d8 100644 --- a/src/librustc_session/session.rs +++ b/src/librustc_session/session.rs @@ -441,6 +441,9 @@ impl Session { pub fn span_note_without_error<S: Into<MultiSpan>>(&self, sp: S, msg: &str) { self.diagnostic().span_note_without_error(sp, msg) } + pub fn struct_note_without_error(&self, msg: &str) -> DiagnosticBuilder<'_> { + self.diagnostic().struct_note_without_error(msg) + } pub fn diagnostic(&self) -> &rustc_errors::Handler { &self.parse_sess.span_diagnostic |
