-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
delete [allow(unused_unsafe)] from issue #74838 #111362
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
it would be nice to track down when this changed so we know whether or not to close #111288. do you have time to do that? |
Do you mean to track down when the lint from #111288 regressed or when the |
When the allow stopped being necessary. I'm trying to find out if #111288 is still an issue or not. Another (maybe easier?) way would be to write a small program that shouldn't lint about unsafe but does and that would confirm it's still an issue. |
Ok gotcha I will look into it |
@jyn514 it looks like commit e1d7dec558d is the one that made the |
@mj10021 it makes sense, but it doesn't actually help narrow this down much - that commit includes all the changes between 1.64 beta and 1.65 beta, so the change in the lint could have happened any time in those 6 weeks. |
Sorry, I've been confused this whole time. I meant to say which change made 74838 not warn any more, not 111288. |
ah ok gotcha I will try and narrow it down, and np I kind of assumed you meant #74838 |
I got the following from cargo-bisect-rustc:
It's not obvious to me why any of the commits affect the |
Nevermind! I think it's this: #100081 |
hey @jyn514 just following up here, is there anything else that I should do for this pr? |
r? libs |
There are a few more allows around thread locals -- can they all be removed?
rust/library/std/src/sys/common/thread_local/os_local.rs Lines 62 to 65 in 114fb86
rust/library/std/src/sys/common/thread_local/static_local.rs Lines 46 to 49 in 114fb86
|
44b94bc
to
7ee811f
Compare
ah good point, I took out all of the |
7ee811f
to
db43036
Compare
Thanks! @bors r+ |
📌 Commit db43036424e60025f26a90c1cb94e97fcd6fe720 has been approved by It is now in the queue for this repository. |
⌛ Testing commit db43036424e60025f26a90c1cb94e97fcd6fe720 with merge aea349ee63c905a9f24e2364eecd9968245e7f31... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
db43036
to
69588b1
Compare
I am assuming the |
You can add temporarily add it to the |
69588b1
to
d7478e4
Compare
since it passes the CI should i just remove the last commit and push again? |
Yeah, and can you also squash the 3rd commit, so we don't have commits removing and adding the same line? In case you don't know how, |
yeah np on it rn |
d7478e4
to
db4a153
Compare
OK, let's try it! @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (1821920): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 650.065s -> 652.747s (0.41%) |
One tiny regression; this is fine. @rustbot label: +perf-regression-triaged |
While looking into issue #111288 I noticed the following
#[allow(...)]
with aFIXME
asking for it to be removed. Deleting the#[allow(...)]
does not seem to break anything, it seems like the lint has been updated for unsafe blocks in macros?