Make non-local-def lint Allow by default#124950
Make non-local-def lint Allow by default#124950wesleywiser wants to merge 1 commit intorust-lang:masterfrom
non-local-def lint Allow by default#124950Conversation
|
Nominating for beta-backport so it can ride the 1.79 release train with #122747 which marked it Allow by default. |
|
@bors rollup=never When this lint was changed to Warn by default, it triggered a perf regression. Thus, this PR will likely trigger a perf improvement. |
This comment has been minimized.
This comment has been minimized.
22ba917 to
23015b9
Compare
|
Ah, I didn't realize #124396 had been fixed. Then yeah I will retarget this to the beta branch. |
|
Should this PR be closed then (I don't know if you can retarget a PR)? |
I've opened #125183 for other backports -- @wesleywiser do you want to add yours there? |
|
Oh, the conflict is that beta doesn't have the rustdoc test from #124568. I'll just skip that for backport. And since this PR wasn't formally approved yet, I'll switch to my compiler-contributor hat to say |
[beta] backports - Do not ICE on foreign malformed `diagnostic::on_unimplemented` rust-lang#124683 - Fix more ICEs in `diagnostic::on_unimplemented` rust-lang#124875 - rustdoc: use stability, instead of features, to decide what to show rust-lang#124864 - Don't do post-method-probe error reporting steps if we're in a suggestion rust-lang#125100 - Make `non-local-def` lint Allow by default rust-lang#124950 r? cuviper
fmease
left a comment
There was a problem hiding this comment.
And since this PR wasn't formally approved yet, I'll switch to my compiler-contributor hat to say
r=me. :)
Right, sorry about that. I hereby formally approve this PR after the fact ;) Got confused by the backporting story.
|
Thanks @wesleywiser for the fix! Closing this PR then since it got successfully backported to beta in #125183 and since nightly doesn't need be patched. |
Updates the
non-local-deflint to be Allow by default. The lint currently triggers undesirably in a few places and we'd like to see that updated (or at least fully investigated) before this ships to stable Rust.cc #124396
cc #124557
cc #124534
cc #120363
cc @Urgau as discussed in the T-compiler triage meeting today 🙂