Skip to content

Commit 06fbd59

Browse files
turn errors with external docs into actual errors
1 parent 5a0dc2d commit 06fbd59

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,10 +1111,10 @@ impl<'a, 'b> Folder for InvocationCollector<'a, 'b> {
11111111
match File::open(&filename).and_then(|mut f| f.read_to_end(&mut buf)) {
11121112
Ok(..) => {}
11131113
Err(e) => {
1114-
self.cx.span_warn(at.span,
1115-
&format!("couldn't read {}: {}",
1116-
filename.display(),
1117-
e));
1114+
self.cx.span_err(at.span,
1115+
&format!("couldn't read {}: {}",
1116+
filename.display(),
1117+
e));
11181118
}
11191119
}
11201120

@@ -1133,9 +1133,9 @@ impl<'a, 'b> Folder for InvocationCollector<'a, 'b> {
11331133
attr::mk_list_item("include".into(), include_info))));
11341134
}
11351135
Err(_) => {
1136-
self.cx.span_warn(at.span,
1137-
&format!("{} wasn't a utf-8 file",
1138-
filename.display()));
1136+
self.cx.span_err(at.span,
1137+
&format!("{} wasn't a utf-8 file",
1138+
filename.display()));
11391139
}
11401140
}
11411141
} else {

0 commit comments

Comments
 (0)