auto merge of #4489 : Manishearth/servo/transmute-lint-fix, r=Ms2ger

This commit is contained in:
bors-servo 2014-12-27 09:10:02 -07:00
commit b139574cdc

View file

@ -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());