зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #4489 - plugins: Fix transmute lint message (from Manishearth:transmute-lint-fix); r=Ms2ger
Source-Repo: https://github.com/servo/servo Source-Revision: b139574cdc3ce622568253e0ff9d2e1750128b26
This commit is contained in:
Родитель
905ce805f5
Коммит
5748bfcbf9
|
@ -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());
|
||||
|
|
Загрузка…
Ссылка в новой задаче