You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#73379 - pnkfelix:issue-70819-disallow-override-forbid-in-same-scope, r=petrochenkov
Disallow later override of forbid lint in same scope
Fixrust-lang#70819
When building lint specs map for a given scope, check if forbid present on each insert.
Drive-by changes:
1. make `LintLevelsBuilder::push` private to the crate.
2. Add methods to `LintSource` for extracting its name symbol or its span.
3. Rewrote old test so that its use of lint attributes are consistent with what we want in the language. (Note that the fact this test existed is a slight sign that we may need a crater run on this bugfix...)
0 commit comments