Update compiler error 0093 to use new error format
This commit is contained in:
parent
545a3a94fc
commit
127489a896
2 changed files with 8 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@
|
|||
|
||||
#![feature(intrinsics)]
|
||||
extern "rust-intrinsic" {
|
||||
fn foo(); //~ ERROR E0093
|
||||
fn foo();
|
||||
//~^ ERROR E0093
|
||||
//~| NOTE unrecognized intrinsic
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue