-
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
Rollup of 7 pull requests #105667
Rollup of 7 pull requests #105667
Conversation
This is handled similar to closures
The closure handling code is changed slightly to avoid allocation when THIR building failed.
MIR unsafety checking requires this to be valid
All bodies are unsafe checked anyway. Current MIR unsafeck also just returns for closures.
… of relying on the span making it obvious
Synthesize a more accurate span and use verbose suggestion output to make the message clearer.
…i-obk Allow unsafe through inline const Handle similar to closures. Address rust-lang#104087 (comment) Note that this PR does not fix the issue for `unsafe { [0; function_requiring_unsafe()] }`. This is fundamentally unfixable for MIR unsafeck IMO. This PR also does not fix unsafety checking for inline const in pattern position. It actually breaks it, allowing unsafe functions to be used in inline const in pattern position without unsafe blocks. Inline const in pattern position is not visible in MIR so ignored by MIR unsafety checking (currently it is also not checked by borrow checker, which is the reason why it's considered an incomplete feature). `@rustbot` label: +T-lang +F-inline_const
@bors r+ rollup=never p=7 |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR: previous master: 0f529f0f49 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (21ee03e): comparison URL. Overall result: ❌ regressions - 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. |
This seems largely due to noisy benchmarks. |
Successful merges:
rustc_hir_analysis::collect
->rustc_codegen_ssa
#105438 (Move some codegen-y methods fromrustc_hir_analysis::collect
->rustc_codegen_ssa
)MaybeStorageLive
#105659 (Don't require owned data inMaybeStorageLive
)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup