diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-11-02 15:09:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-02 15:09:42 -0400 |
| commit | 62e026be5a4d65ebdd79e1e3fcf75085351a363e (patch) | |
| tree | 5552be76dee679507ee2bd10465798b35cd92774 | |
| parent | b33386061135c3916516942de2a8ee1783e9e33a (diff) | |
| parent | b926e8d08989a6e45f00c952f1867000fd9f58ea (diff) | |
| download | rust-62e026be5a4d65ebdd79e1e3fcf75085351a363e.tar.gz rust-62e026be5a4d65ebdd79e1e3fcf75085351a363e.zip | |
Rollup merge of #37502 - CryZe:patch-4, r=sfackler
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))) => { |
