Rollup merge of #36498 - jonathandturner:macro_std_lib, r=nikomatsakis

Fix wording for out-of-crate macro error

This fixes the wording of the note for out-of-crate macro errors to fix https://github.com/rust-lang/rust/issues/36469

The previous wording came from older logic in the PR that was replaced without updating the note.
This commit is contained in:
Guillaume Gomez 2016-09-24 00:15:44 +02:00 committed by GitHub
commit f17bdb7eec
5 changed files with 8 additions and 7 deletions

View file

@ -473,7 +473,8 @@ impl EmitterWriter {
if spans_updated {
children.push(SubDiagnostic {
level: Level::Note,
message: "this error originates in a macro from the standard library".to_string(),
message:"this error originates in a macro outside of the current \
crate".to_string(),
span: MultiSpan::new(),
render_span: None
});