about summary refs log tree commit diff
path: root/src/libsyntax_expand
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2019-11-26 17:56:19 -0600
committerGitHub <noreply@github.com>2019-11-26 17:56:19 -0600
commitbb6236cd749dc5e708d6846c9b2c004766627851 (patch)
tree91b8b5047b7b19a969896a00057916ac68a0c7db /src/libsyntax_expand
parent0b3d4a1fa45c2926fe133a17f42a40b75eafd885 (diff)
parent5ea922aec4a66458728fbe74a6e8096ab76f9aec (diff)
downloadrust-bb6236cd749dc5e708d6846c9b2c004766627851.tar.gz
rust-bb6236cd749dc5e708d6846c9b2c004766627851.zip
Rollup merge of #66754 - estebank:rustdoc-capitalization, r=Dylan-DPC
Various tweaks to diagnostic output
Diffstat (limited to 'src/libsyntax_expand')
-rw-r--r--src/libsyntax_expand/mbe/macro_check.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax_expand/mbe/macro_check.rs b/src/libsyntax_expand/mbe/macro_check.rs
index 25754ed4217..837e04afd34 100644
--- a/src/libsyntax_expand/mbe/macro_check.rs
+++ b/src/libsyntax_expand/mbe/macro_check.rs
@@ -269,7 +269,8 @@ fn check_binders(
                 // for nested macro definitions.
                 sess.span_diagnostic
                     .struct_span_err(span, "duplicate matcher binding")
-                    .span_note(prev_info.span, "previous declaration was here")
+                    .span_label(span, "duplicate binding")
+                    .span_label(prev_info.span, "previous binding")
                     .emit();
                 *valid = false;
             } else {