Skip to content

Finishing touches for #[expect] (RFC 2383) - #98507

Merged
bors merged 3 commits into
rust-lang:masterfrom
xFrednet:rfc-2383-manual-expectation-magic
Jul 7, 2022
Merged

Finishing touches for #[expect] (RFC 2383)#98507
bors merged 3 commits into
rust-lang:masterfrom
xFrednet:rfc-2383-manual-expectation-magic

Conversation

@xFrednet

Copy link
Copy Markdown
Contributor

This PR adds documentation and some functionality to rustc's lint passes, to manually fulfill expectations. This is needed for some lints in Clippy. Hopefully, it should be one of the last things before we can move forward with stabilizing this feature.

As part of this PR, I've also updated clippy::duplicate_mod to showcase how this new functionality can be used and to ensure that it works correctly.


changelog: [duplicate_mod]: Fixed lint attribute interaction

r? @wesleywiser

cc: #97660, #85549

And I guess that's it. Here have a magical unicorn 🦄

@rust-highfive

Copy link
Copy Markdown
Contributor

Some changes occurred in src/tools/clippy.

cc @rust-lang/clippy

@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 25, 2022
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 25, 2022
@xFrednetxFrednet added the F-lint_reasons `#![feature(lint_reasons)]` label Jun 25, 2022
@xFrednet
xFrednetforce-pushed the rfc-2383-manual-expectation-magic branch from 5a131dc to d655b1dCompareJune 25, 2022 22:14
@xFrednet
xFrednetforce-pushed the rfc-2383-manual-expectation-magic branch from d655b1d to 2bb6f91CompareJune 26, 2022 10:44
Comment threadsrc/tools/clippy/tests/ui-cargo/duplicate_mod/fail/src/main.rs Outdated

@wesleywiserwesleywiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me 🙂

Comment threadcompiler/rustc_lint_defs/src/builtin.rs Outdated
@xFrednet
xFrednetforce-pushed the rfc-2383-manual-expectation-magic branch from 2bb6f91 to a2810cdCompareJuly 6, 2022 20:01
@rustbot

This comment was marked as off-topic.

@xFrednet

xFrednet commented Jul 6, 2022

Copy link
Copy Markdown
ContributorAuthor

Sir Bors, I hereby formally declare this PR as r+ed by lord wesleywiser.

@bors

bors commented Jul 6, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit a2810cd has been approved by wesleywiser

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 6, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Jul 7, 2022
…n-magic, r=wesleywiser
Finishing touches for `#[expect]` (RFC 2383)
This PR adds documentation and some functionality to rustc's lint passes, to manually fulfill expectations. This is needed for some lints in Clippy. Hopefully, it should be one of the last things before we can move forward with stabilizing this feature.
As part of this PR, I've also updated `clippy::duplicate_mod` to showcase how this new functionality can be used and to ensure that it works correctly.
---
changelog: [`duplicate_mod`]: Fixed lint attribute interaction
r? `@wesleywiser`
cc: rust-lang#97660, rust-lang#85549
And I guess that's it. Here have a magical unicorn 🦄
@Dylan-DPCDylan-DPC mentioned this pull request Jul 7, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Jul 7, 2022
…n-magic, r=wesleywiser
Finishing touches for `#[expect]` (RFC 2383)
This PR adds documentation and some functionality to rustc's lint passes, to manually fulfill expectations. This is needed for some lints in Clippy. Hopefully, it should be one of the last things before we can move forward with stabilizing this feature.
As part of this PR, I've also updated `clippy::duplicate_mod` to showcase how this new functionality can be used and to ensure that it works correctly.
---
changelog: [`duplicate_mod`]: Fixed lint attribute interaction
r? ``@wesleywiser``
cc: rust-lang#97660, rust-lang#85549
And I guess that's it. Here have a magical unicorn 🦄
@Dylan-DPCDylan-DPC mentioned this pull request Jul 7, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Jul 7, 2022
…n-magic, r=wesleywiser
Finishing touches for `#[expect]` (RFC 2383)
This PR adds documentation and some functionality to rustc's lint passes, to manually fulfill expectations. This is needed for some lints in Clippy. Hopefully, it should be one of the last things before we can move forward with stabilizing this feature.
As part of this PR, I've also updated `clippy::duplicate_mod` to showcase how this new functionality can be used and to ensure that it works correctly.
---
changelog: [`duplicate_mod`]: Fixed lint attribute interaction
r? ```@wesleywiser```
cc: rust-lang#97660, rust-lang#85549
And I guess that's it. Here have a magical unicorn 🦄
@Dylan-DPCDylan-DPC mentioned this pull request Jul 7, 2022
@Dylan-DPCDylan-DPC mentioned this pull request Jul 7, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 7, 2022
Rollup of 8 pull requests
Successful merges:
- rust-lang#96856 (Fix ProjectionElem validation)
- rust-lang#97711 (Improve soundness of rustc_arena)
- rust-lang#98507 (Finishing touches for `#[expect]` (RFC 2383))
- rust-lang#98692 (rustdoc: Cleanup more FIXMEs)
- rust-lang#98901 (incr: cache dwarf objects in work products)
- rust-lang#98930 (Make MIR basic blocks field public)
- rust-lang#98973 (Remove (unused) inherent impl anchors)
- rust-lang#98981 ( Edit `rustc_mir_dataflow::framework` documentation )
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit c815fef into rust-lang:masterJul 7, 2022
@rustbotrustbot added this to the 1.64.0 milestone Jul 7, 2022
@xFrednet
xFrednet deleted the rfc-2383-manual-expectation-magic branch July 7, 2022 20:10
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 18, 2022
…n-magic, r=wesleywiser
Finishing touches for `#[expect]` (RFC 2383)
This PR adds documentation and some functionality to rustc's lint passes, to manually fulfill expectations. This is needed for some lints in Clippy. Hopefully, it should be one of the last things before we can move forward with stabilizing this feature.
As part of this PR, I've also updated `clippy::duplicate_mod` to showcase how this new functionality can be used and to ensure that it works correctly.
---
changelog: [`duplicate_mod`]: Fixed lint attribute interaction
r? `@wesleywiser`
cc: rust-lang#97660, rust-lang#85549
And I guess that's it. Here have a magical unicorn 🦄
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-lint_reasons`#![feature(lint_reasons)]`S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@xFrednet@rust-highfive@rustbot@bors@wesleywiser@flip1995