-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Report unsafe for overriding link sections #97086
Conversation
r? @davidtwco (rust-highfive has picked a reviewer for you, use r? to override) |
This presumably will require a crater run to see how many things this breaks. I'd be surprised if there were that many crates that both forbid unsafe_code explicitly and set a link_section. |
A check-only crater run is sufficient for this, right? |
Yep, just running |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@bors try |
⌛ Trying commit a42a7a3 with merge 89681135fd92d7dee32c3e562b052ee82f97008c... |
☀️ Try build successful - checks-actions |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
Got back home and got a chance to look at these in detail, and yeah, they're all unrelated random failures, no crate actually overrides a link section and forbids unsafe code. No idea what is up with https://crater-reports.s3.amazonaws.com/pr-97086/try%2389681135fd92d7dee32c3e562b052ee82f97008c/gh/jackson1992121.solana-messengerapp/log.txt failing to link, but it looks unrelated? Not sure why that'd be getting killed with a |
@bors r+ |
📌 Commit a42a7a3 has been approved by |
☀️ Test successful - checks-actions |
Overriding the link section is very typical for embedded code (which I can't imagine being part of the crate run). Not sure how common it is to forbid unsafe code though... |
Finished benchmarking commit (79b6bad): 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 |
@therealprof I've got embedded code which overrides the link section on things and which is in public repos (so i assume crater sees it and builds it). I'm definitely not the only one. |
I thought crater would only pick up crates which can be built natively and tested on the builders... |
In my case (GBA) a I don't really know how crater works, but I hope it's able to try a cargo check on its own. |
I'm not too sure about the lint wording here, but I couldn't think of anything better.