about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2016-04-20 14:49:16 -0400
committerNiko Matsakis <niko@alum.mit.edu>2016-05-02 11:49:23 -0400
commit489a6c95bf747059b28472efc17d39795c6adcad (patch)
tree8291d94bde59caa3b22d2ab3366af46dc5519751 /src/libsyntax/ext
parent1ff1887cc9537cf45c2bc405ce0b026ef9a2246a (diff)
downloadrust-489a6c95bf747059b28472efc17d39795c6adcad.tar.gz
rust-489a6c95bf747059b28472efc17d39795c6adcad.zip
replace fileline_{help,note} with {help,note}
The extra filename and line was mainly there to keep the indentation
relative to the main snippet; now that this doesn't include
filename/line-number as a prefix, it is distracted.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/base.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs
index c0306b8494b..303187aeba8 100644
--- a/src/libsyntax/ext/base.rs
+++ b/src/libsyntax/ext/base.rs
@@ -764,15 +764,14 @@ impl<'a> ExtCtxt<'a> {
 
     pub fn suggest_macro_name(&mut self,
                               name: &str,
-                              span: Span,
                               err: &mut DiagnosticBuilder<'a>) {
         let names = &self.syntax_env.names;
         if let Some(suggestion) = find_best_match_for_name(names.iter(), name, None) {
             if suggestion != name {
-                err.fileline_help(span, &format!("did you mean `{}!`?", suggestion));
+                err.help(&format!("did you mean `{}!`?", suggestion));
             } else {
-                err.fileline_help(span, &format!("have you added the `#[macro_use]` on the \
-                                                  module/import?"));
+                err.help(&format!("have you added the `#[macro_use]` on the \
+                                   module/import?"));
             }
         }
     }