diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-13 09:13:52 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-14 07:50:54 +1100 |
| commit | bdc6d82f9ac21a9c0b8a5e3f5728a5cbb50a09e2 (patch) | |
| tree | d8d9c071258aa9e2a9ab536986ebd79f72be1b95 /compiler/rustc_errors/src | |
| parent | a84bb95a1f65bfe25038f188763a18e096a86ab2 (diff) | |
| download | rust-bdc6d82f9ac21a9c0b8a5e3f5728a5cbb50a09e2.tar.gz rust-bdc6d82f9ac21a9c0b8a5e3f5728a5cbb50a09e2.zip | |
Make `struct_span_note` call `struct_note`.
So it follows the same pattern as all the other `struct_span_*` methods.
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index e033d66fccf..7f78ea7aa56 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -1179,7 +1179,7 @@ impl DiagCtxt { span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>, ) -> DiagnosticBuilder<'_, ()> { - DiagnosticBuilder::new(self, Note, msg).with_span(span) + self.struct_note(msg).with_span(span) } #[rustc_lint_diagnostics] |
