Skip to content

Commit

Permalink
Rollup merge of rust-lang#33730 - jseyfried:fix_macro_backtrace_diagn…
Browse files Browse the repository at this point in the history
…ostics, r=nikomatsakis

Fix macro expansion backtrace diagnostics

Fixes rust-lang#33704.
r? @nikomatsakis
  • Loading branch information
Manishearth committed May 19, 2016
2 parents 5928d49 + f8e9c15 commit acd2c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/errors/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ impl EmitterWriter {
&format!(" (defined in {})",
self.cm.span_to_filename(def_site_span)));
}
let snippet = self.cm.span_to_string(sp);
let snippet = self.cm.span_to_string(trace.call_site);
print_diagnostic(&mut self.dst, &snippet, Note, &diag_string, None)?;
}
Ok(())
Expand Down

0 comments on commit acd2c11

Please sign in to comment.