diff options
| author | Christopher Serr <cryze92@gmail.com> | 2016-10-31 19:41:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-31 19:41:22 +0100 |
| commit | b926e8d08989a6e45f00c952f1867000fd9f58ea (patch) | |
| tree | bf569282797ea71e4c893de17dc5bb5f8360489b | |
| parent | bf5b824c1cb1fa5ec9b060f9b552cf7fd7465f01 (diff) | |
| download | rust-b926e8d08989a6e45f00c952f1867000fd9f58ea.tar.gz rust-b926e8d08989a6e45f00c952f1867000fd9f58ea.zip | |
Add missing space in mutable_transmutes lint
| -rw-r--r-- | src/librustc_lint/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index eee34324a65..a28109c1471 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -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))) => { |
