Diagnostic change: crate features -> crate root

"Crate features" isn't a thing in Rust, but you do need to add this line
to your crate root.

Fixes #28944
This commit is contained in:
Steve Klabnik 2015-10-10 13:35:40 -04:00
parent c14609035d
commit 988ab562eb
3 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,7 @@ impl<'cx, 'tcx> WritebackCx<'cx, 'tcx> {
"overloaded augmented assignments are not stable");
fileline_help!(
tcx.sess, e.span,
"add #![feature(augmented_assignments)] to the crate features \
"add #![feature(augmented_assignments)] to the crate root \
to enable");
}
}

View File

@ -21,5 +21,5 @@ fn main() {
let mut x = Int(0);
x += 1;
//~^ error: overloaded augmented assignments are not stable
// | help: add #![feature(augmented_assignments)] to the crate features to enable
// | help: add #![feature(augmented_assignments)] to the crate root to enable
}

View File

@ -22,5 +22,5 @@ fn main() {
let mut x = Int(0);
x += 1;
//~^ error: overloaded augmented assignments are not stable
// | help: add #![feature(augmented_assignments)] to the crate features to enable
// | help: add #![feature(augmented_assignments)] to the crate root to enable
}