mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 13:43:04 +00:00
Merge pull request #982 from Manishearth/fix-swap
Fix wrong suggestion in `MANUAL_SWAP`
This commit is contained in:
commit
d325775468
@ -85,7 +85,7 @@ fn check_manual_swap(cx: &LateContext, block: &Block) {
|
||||
("".to_owned(), "".to_owned(), "".to_owned())
|
||||
};
|
||||
|
||||
let span = mk_sp(tmp.span.lo, second.span.hi);
|
||||
let span = mk_sp(w[0].span.lo, second.span.hi);
|
||||
|
||||
span_lint_and_then(cx,
|
||||
MANUAL_SWAP,
|
||||
|
Loading…
Reference in New Issue
Block a user