Skip to content

Commit

Permalink
Rollup merge of rust-lang#37502 - CryZe:patch-4, r=sfackler
Browse files Browse the repository at this point in the history
Add missing space in mutable_transmutes lint
  • Loading branch information
Jonathan Turner authored Nov 2, 2016
2 parents b333860 + b926e8d commit 62e026b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ impl LateLintPass for MutableTransmutes {
fn check_expr(&mut self, cx: &LateContext, expr: &hir::Expr) {
use syntax::abi::Abi::RustIntrinsic;

let msg = "mutating transmuted &mut T from &T may cause undefined behavior,\
let msg = "mutating transmuted &mut T from &T may cause undefined behavior, \
consider instead using an UnsafeCell";
match get_transmute_from_to(cx, expr) {
Some((&ty::TyRef(_, from_mt), &ty::TyRef(_, to_mt))) => {
Expand Down

0 comments on commit 62e026b

Please sign in to comment.