Skip to content

Commit

Permalink
Add missing space in mutable_transmutes lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CryZe committed Oct 31, 2016
1 parent bf5b824 commit b926e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_lint/builtin.rs
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 b926e8d

Please sign in to comment.