mirror of
https://github.com/servo/servo.git
synced 2025-06-12 18:34:39 +00:00
plugins: Fix transmute lint message
This commit is contained in:
parent
0e6304dcf7
commit
93c350e6e3
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue