Skip to content

Commit

Permalink
Auto merge of #28948 - steveklabnik:gh28944, r=alexcrichton
Browse files Browse the repository at this point in the history
"Crate features" isn't a thing in Rust, but you do need to add this line
to your crate root.

Fixes #28944
  • Loading branch information
bors committed Oct 11, 2015
2 parents 6035827 + 988ab56 commit 9dafceb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/writeback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 9dafceb

Please sign in to comment.