-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 8 pull requests #137143
Rollup of 8 pull requests #137143
Conversation
These functions were changed to be safe in rust-lang#127763, but this particular UWP version was missed. Otherwise this causes unnecessary unsafe block warnings/errors.
This should give us some performance improvements as we won't need to do the lookup for the _currently_ 287 targets we have.
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Apply unsafe_op_in_unsafe_fn to the standard library This applies unsafe_op_in_unsafe_fn to the standard library in preparation for updating to Rust 2024. Closes rust-lang#127747 (I think?) cc ``@workingjubilee`` I have been testing a variety of targets, and I feel like they are all pretty much covered. I'll continue doing some testing async, but I don't expect to catch any more.
…-test-cc-detect, r=onur-ozkan add docs and ut for bootstrap util cc-detect This PR adds doc and unit test for bootstrap utils/cc-detect module
…nce, r=Noratrieb Load all builtin targets at once instead of one by one in check-cfg This PR adds a method on `rustc_target::Target` to load all the builtin targets at once, and then uses that method when constructing the `target_*` values in check-cfg instead of load loading each target one by one by their name, which requires a lookup and was more of a hack anyway. This may give us some performance improvements as we won't need to do the lookup for the _currently_ 287 targets we have.
…li-obk Rework `name_regions` to not rely on reverse scc graph for non-member-constrain usages Fixes rust-lang#137015 Splits the `name_regions` into two versions: One meant for member region constraint error reporting (which I've renamed to `name_regions_for_member_constraint`), and one meant *just* to replace region vids with an external region. Use the latter in the usage sites I added in rust-lang#136559, since the regions returned by `name_regions_for_member_constraint` are also not *totally* accurate (which is fine for how they're used for member region constraint error reporting -- they're intentionally returning overapproximated universal regions so that we have something to name in `+ use<'a>` suggestions, because opaques can only capture universal regions and since member region constraints don't insert any edges into the region graph, the error region is probably gonna be shorter than a universal region) and because that function requires the reverse scc graph to have been computed which isn't done for our usages in rust-lang#136559.
…ct, r=oli-obk Don't project into `NonNull` when dropping a `Box` Another step towards banning these projections. Tracking Issue rust-lang#133652
Add an example for `std::error::Error` There is currently no example provided for `std::error::Error` so let's fix that.
…oratrieb Fix test that relies on error language We shouldn't care about the OS error message text in this test.
…ouxu fix broken `x {doc, build} core` Fixes rust-lang#137115
@bors r+ rollup=never p=5 |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR:
previous master: 5bc6231454 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (d1fb81e): comparison URL. Overall result: ❌✅ regressions and improvements - no action needed@rustbot label: -perf-regression Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (secondary 4.7%)This 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.
CyclesResults (secondary 2.6%)This 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.
Binary sizeResults (primary -0.0%)This 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.
Bootstrap: 790.255s -> 789.602s (-0.08%) |
Successful merges:
name_regions
to not rely on reverse scc graph for non-member-constrain usages #137102 (Reworkname_regions
to not rely on reverse scc graph for non-member-constrain usages)NonNull
when dropping aBox
#137112 (Don't project intoNonNull
when dropping aBox
)std::error::Error
#137114 (Add an example forstd::error::Error
)x {doc, build} core
#137119 (fix brokenx {doc, build} core
)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup