Skip to content

Commit

Permalink
Fix macro expansion backtrace diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed May 19, 2016
1 parent 30422de commit f8e9c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/errors/emitter.rs
Expand Up @@ -422,7 +422,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 f8e9c15

Please sign in to comment.