Skip to content

Commit 9dafceb

Browse files
committed
Auto merge of #28948 - steveklabnik:gh28944, r=alexcrichton
"Crate features" isn't a thing in Rust, but you do need to add this line to your crate root. Fixes #28944
2 parents 6035827 + 988ab56 commit 9dafceb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc_typeck/check/writeback.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl<'cx, 'tcx> WritebackCx<'cx, 'tcx> {
131131
"overloaded augmented assignments are not stable");
132132
fileline_help!(
133133
tcx.sess, e.span,
134-
"add #![feature(augmented_assignments)] to the crate features \
134+
"add #![feature(augmented_assignments)] to the crate root \
135135
to enable");
136136
}
137137
}

src/test/compile-fail/augmented-assignments-feature-gate-cross.rs

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

src/test/compile-fail/augmented-assignments-feature-gate.rs

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

0 commit comments

Comments
 (0)