8000 Perform unused assignment and unused variables lints on MIR. by cjgillot · Pull Request #101500 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Perform unused assignment and unused variables lints on MIR. #101500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Swallow unused assignment warning.
  • Loading branch information
cjgillot committed Apr 7, 2024
commit 96be3ff01daf22c3b26cbed9e238f3755b25839d
2 changes: 2 additions & 0 deletions src/tools/rust-analyzer/crates/test-fixture/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ impl ChangeFixture {
}
}

let _ = file_id;

let root = match current_source_root_kind {
SourceRootKind::Local => SourceRoot::new_local(mem::take(&mut file_set)),
SourceRootKind::Library => SourceRoot::new_library(mem::take(&mut file_set)),
Expand Down
0