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:
parent
c14609035d
commit
988ab562eb
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user