Uh oh!
There was an error while loading. Please reload this page.
Simplify ExprUseVisitor - #64874
Conversation
eddyb
commented
Sep 28, 2019
I just noticed the old |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
can you check whether clippy still works after your PR? We use this visitor a lot.
There was a problem hiding this comment.
Oh... anything using EUV should've transitioned a long time ago to being based on MIR, IMO. I wish I brought this up to clippy people earlier :/
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Feels like this crate is becoming quite pointless.
There was a problem hiding this comment.
We could split them out to a crate for each pass. :)
There was a problem hiding this comment.
They are tiny though... a bunch of them belong in rustc::hir which could become a crate (with only the data types remaining in rustc).
There was a problem hiding this comment.
Whatever we do, let's please not inflate the size of the rustc crate. :)
There was a problem hiding this comment.
Is this the only user left? Can its reliance on MC be simplified too?
matthewjasper
commented
Sep 28, 2019
The old Notes for anyone trying to update Clippy after this lands:
|
e18bf4b to
c83e8a6Comparebors
commented
Sep 30, 2019
☔ The latest upstream changes (presumably #64778) made this pull request unmergeable. Please resolve the merge conflicts. |
c83e8a6 to
b4ad612Compare
eddyb
left a comment
There was a problem hiding this comment.
LGTM, r=me if you don't want to change more due to #64874 (comment)
matthewjasper
commented
Oct 3, 2019
@bors r=eddyb |
bors
commented
Oct 3, 2019
📌 Commit b4ad612 has been approved by |
nikomatsakis
left a comment
There was a problem hiding this comment.
Nice cleanup, @matthewjasper!
Simplify ExprUseVisitor * Remove HIR const qualification * Remove parts of ExprUseVisitor that aren't being used r? @eddyb
Rollup of 5 pull requests Successful merges: - #64749 (Fix most remaining Polonius test differences) - #64817 (Replace ClosureSubsts with SubstsRef) - #64874 (Simplify ExprUseVisitor) - #65026 (metadata: Some crate loading cleanup) - #65073 (Remove `borrowck_graphviz_postflow` from test) Failed merges: r? @ghost
Episode 1 - The simple cases
Episode 1 - The simple cases
Rustup to rust-lang/rust#64874 TODO: - [x] replace `rvalue_promotable_map` in [1] - [ ] ~~fix [2] according to this comment rust-lang/rust#64874 (comment) this should be merged with `consume`, but I didn't figure out how to merge them, yet.~~ - [ ] ~~fix [3]; What to do with `LoanCause`?~~ [2]+[3] probably have to be resolved by a rewrite of the lint. #4628 (comment) [1] https://github.com/rust-lang/rust-clippy/blob/54bf4ffd626970e831bb80c037f804a3b3450835/clippy_lints/src/methods/mod.rs#L1292-L1299 [2] https://github.com/rust-lang/rust-clippy/blob/54bf4ffd626970e831bb80c037f804a3b3450835/clippy_lints/src/escape.rs#L126 [3] https://github.com/rust-lang/rust-clippy/blob/54bf4ffd626970e831bb80c037f804a3b3450835/clippy_lints/src/escape.rs#L166-L176 I could need some help with [1]. The purpose of this is to "don't lint for constant values". cc @matthewjasper For now I see what I can do with [2]. changelog: Temporary break `boxed_local` lint.
r? @eddyb