diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-04-20 14:49:16 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-05-02 11:49:23 -0400 |
| commit | 489a6c95bf747059b28472efc17d39795c6adcad (patch) | |
| tree | 8291d94bde59caa3b22d2ab3366af46dc5519751 /src/libsyntax/ext | |
| parent | 1ff1887cc9537cf45c2bc405ce0b026ef9a2246a (diff) | |
| download | rust-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.rs | 7 |
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?")); } } } |
