1

Delay a good path bug on drop for `TypeErrCtxt` (instead of a regular delayed bu...

 1 year ago
source link: https://github.com/rust-lang/rust/pull/110476
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Member

r? @lcnr
Perhaps we should just delete the Drop impl altogether though?

Fixes rust-lang/rust-clippy#10645

@matthiaskrgr: I don't know how to make a clippy test for this. Any idea? Clippy's UI tests run with -D warnings and I have no idea how to switch it off to make a test that triggers this ICE in the clippy test suite rofl

rustbot

added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

labels

Apr 18, 2023

This comment has been minimized.

Member

Does it work if you explicitly #![allow(clippy::whatever)] whatever is triggering inside the test and then warn(clippy::thelint) the lint? thinking

Need to check after work.

Member

Author

No, I tried a bunch of combinations and they all seem to not work lol...

Contributor

lcnr

commented

Apr 18, 2023

edited

r=me with or without a clippy test shrug don't have an opinion on whether we should instead completely remove the Drop impl

Member

oh I see, so the ice happens AFTER the lint is emitted, and since we default to errors, compilation just stops and we simply don't hit the ICE in the tests, weird :/

compiler-errors reacted with thumbs up emoji

Member

ok it's a bit dirty but you force the test to warn via // compile-flags: --cap-lints=warn and that will reproduce the ice :3

Member

If you cherry-pick matthiaskrgr@b1d6e8f into your branch it should work I think :)

Collaborator

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

Member

Author

Thanks @matthiaskrgr for the test!

@bors r=lcnr

Contributor

pushpin Commit c5e6ccb has been approved by lcnr

It is now in the queue for this repository.

bors

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

Apr 18, 2023

bors

merged commit f20da94 into

rust-lang:master

Apr 19, 2023

11 checks passed

rust-timer

added a commit to rust-lang-ci/rust that referenced this pull request

Apr 19, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

lcnr

Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects

None yet

Milestone

1.71.0

Development

Successfully merging this pull request may close these issues.

ICE: delay_span_bug: used a TypeErrCtxt without failing compilation: future-not-send`

6 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK