diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-27 21:35:49 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-27 21:35:49 +0530 |
commit | 93c350e6e38f76587966f77b436d73fdec68e00b (patch) | |
tree | f1b7f574cd2915be056a04569b3245662d08556b /components/plugins/lints.rs | |
parent | 0e6304dcf7fd6712f4455151b55a361de857359d (diff) | |
download | servo-93c350e6e38f76587966f77b436d73fdec68e00b.tar.gz servo-93c350e6e38f76587966f77b436d73fdec68e00b.zip |
plugins: Fix transmute lint message
Diffstat (limited to 'components/plugins/lints.rs')
-rw-r--r-- | components/plugins/lints.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/plugins/lints.rs b/components/plugins/lints.rs index d5891cc9c5a..5bb2767a0aa 100644 --- a/components/plugins/lints.rs +++ b/components/plugins/lints.rs @@ -56,7 +56,7 @@ impl LintPass for TransmutePass { && args.len() == 1 { let tcx = cx.tcx(); cx.span_lint(TRANSMUTE_TYPE_LINT, ex.span, - format!("Transmute from {} to {} detected", + format!("Transmute to {} from {} detected", expr_ty(tcx, ex).repr(tcx), expr_ty(tcx, &**args.get(0).unwrap()).repr(tcx) ).as_slice()); |