Update compiler error 0093 to use new error format

This commit is contained in:
DarkEld3r 2016-08-09 13:13:04 +03:00
parent 545a3a94fc
commit 127489a896
2 changed files with 8 additions and 3 deletions

View file

@ -297,8 +297,11 @@ pub fn check_intrinsic_type(ccx: &CrateCtxt, it: &hir::ForeignItem) {
}
ref other => {
span_err!(tcx.sess, it.span, E0093,
"unrecognized intrinsic function: `{}`", *other);
struct_span_err!(tcx.sess, it.span, E0093,
"unrecognized intrinsic function: `{}`",
*other)
.span_label(it.span, &format!("unrecognized intrinsic"))
.emit();
return;
}
};

View file

@ -10,7 +10,9 @@
#![feature(intrinsics)]
extern "rust-intrinsic" {
fn foo(); //~ ERROR E0093
fn foo();
//~^ ERROR E0093
//~| NOTE unrecognized intrinsic
}
fn main() {