-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Quick and dirty fix of the unused_braces lint #71517
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Sounds good! I considered doing the same in the next few days as I was unable to fix the underlying problem. We may want to backport this to beta IMO. |
547b545
to
485f199
Compare
@rust-lang/compiler Maybe a candidate for a beta backport. This crashed a few CIs including Clippy's |
@bors r+ p=1 this is blocking tools and very annoying to users. Merging this so we have time to come up with a nice fix. |
📌 Commit 485f199 has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#71364 (Ignore -Zprofile when building compiler_builtins) - rust-lang#71494 (Fix span of while (let) expressions after lowering) - rust-lang#71517 ( Quick and dirty fix of the unused_braces lint) - rust-lang#71523 (Take a single root node in range_search) - rust-lang#71533 (Revert PR 70566 for const validation fix) Failed merges: r? @ghost
discussed in T-compiler meeting. beta backport approved. |
…ulacrum [beta] backports This backport rollup includes the following: * [beta] Update cargo rust-lang#71967 * Backport 1.43.1 release notes to master rust-lang#71914 * Update the `cc` crate rust-lang#71882 * resolve: Relax fresh binding disambiguation slightly to fix regression rust-lang#71846 * Do not try to find binop method on RHS `TyErr` rust-lang#71810 * Quick and dirty fix of the unused_braces lint rust-lang#71517 * Update stdarch submodule rust-lang#71495 * normalize field projection ty to fix broken MIR issue rust-lang#71488 * Update openssl-src to 1.1.1g rust-lang#71430 * fix error code in E0751.md rust-lang#71426 * Don't fuse Chain in its second iterator rust-lang#71404 * Remove some `Vec` allocations to improve performance rust-lang#71268 * [CI] Use the latest Python available on Windows rust-lang#71995 It also switches the bootstrap compiler to 1.43.1.
cc @lcnr
Adresses #70814
This at least prevents lint output, if no span is available. Even though this also prevents the
unused_parens
lint from emitting, when theDUMMY_SP
is used there, but I think that should be ok, since error messages without a span are quite useless anyway.Clippy CI is currently blocked on this bug. If this quick and dirty fix should be rejected, I could try to work around this in Clippy.
r? @shepmaster