-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Also walk bindings created by if-let guards #119402
Conversation
r? @TaKO8Ki (rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
264fb7f
to
fdec5b6
Compare
This comment has been minimized.
This comment has been minimized.
fdec5b6
to
ab60a7d
Compare
r? compiler-errors @bors r+ rollup |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#119375 (Merge Coroutine lowering functions) - rust-lang#119393 (Use filter instead of filter_map in Parser::expected_one_of_not_found) - rust-lang#119401 (coverage: Avoid a possible query stability hazard in `CoverageCounters`) - rust-lang#119402 (Also walk bindings created by if-let guards) - rust-lang#119404 (Enable profiler in dist-powerpc-linux) r? `@ghost` `@rustbot` modify labels: rollup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me after the test rename
@@ -0,0 +1,9 @@ | |||
#![feature(if_let_guard)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of giving this a meaningless issue number as a name, can we give it a descriptive name like "if-let-guard"?
Oh errs already reviewed it, didn't see that lol. A test rename would still be appreciated as a follow up :) |
Rollup merge of rust-lang#119402 - est31:fix_if_guard_unused, r=compiler-errors Also walk bindings created by if-let guards This change makes the `unused_variables` lint pick up unused bindings created by if-let guards. Fixes rust-lang#119383
…rieb Rename test to be more descriptive As suggested in rust-lang#119402 (comment) r? `@Nilstrieb`
…rieb Rename test to be more descriptive As suggested in rust-lang#119402 (comment) r? ``@Nilstrieb``
Rollup merge of rust-lang#119410 - est31:fix_if_guard_unused, r=Nilstrieb Rename test to be more descriptive As suggested in rust-lang#119402 (comment) r? ``@Nilstrieb``
This change makes the
unused_variables
lint pick up unused bindings created by if-let guards.Fixes #119383