-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rollup of 6 pull requests #97372
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
Rollup of 6 pull requests #97372
Conversation
Previously, we were emitting weird name lints (for renamed or unknown lints) before expansion, most importantly before cfg expansion. This meant that the weird name lints would not fire for lint attributes hidden inside cfg_attr. The same applied for lint level specifications of those lints. By moving the lints for the lint names to the post-expansion phase, these issues are resolved.
This format was causing every line in the code examples to have a space at the start.
document expectations for Waker::wake fixes rust-lang#93961 Opened PR for a discussion on the precise wording.
Make weird name lints trigger behind cfg_attr The weird name lints (`unknown_lints`, `renamed_and_removed_lints`), the lints that lint the linting, were previously not firing for lint level declarations behind `cfg_attr`, as they were only running before expansion. Now, this will give a `unknown_lints` warning: ```Rust #[cfg_attr(all(), allow(this_lint_does_not_exist))] fn foo() {} ``` Lint level declarations behind a `cfg_attr` whose condition is not applying are still ignored. So this still won't give a warning: ```Rust #[cfg_attr(any(), allow(this_lint_does_not_exist))] fn foo() {} ``` Furthermore, this PR also makes the weird name lints respect level delcarations for *them* that were hidden by `cfg_attr`, making them consistent to other lints. So this will now not issue a warning: ```Rust #[cfg_attr(all(), allow(unknown_lints))] mod foo { #[allow(does_not_exist)] fn foo() { } } ``` Fixes rust-lang#97094
…n-DPC Remove unused brush image r? `@notriddle`
…ylan-DPC Update minifier-rs version to 0.1.0 It fixes a bug with regex parsing. r? `@notriddle`
…nTitor Fix a small mistake in `SliceIndex`'s documentation Originally, it said "`get_(mut_)unchecked`," but the method's actual name is `get_unchecked_mut`.
…itor Fix weird indentation in continue_keyword docs This format was causing every line in the code examples to have a space at the start.
@bors r+ rollup=never p=6 |
📌 Commit c3fea09 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (f80e454): comparison url. Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Successful merges:
SliceIndex
's documentation #97363 (Fix a small mistake inSliceIndex
's documentation)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup