Move uninhabited unreachable code lint to rustc_mir_transform#157723
Conversation
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
|
r? @Kivooeo rustbot has assigned @Kivooeo. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors try @rust-timer queue r? saethlin |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Move uninhabited unreachable code lint to rustc_mir_transform
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (832b2b0): comparison URL. Overall result: no relevant changes - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (primary -3.1%, secondary -2.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -2.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 517.006s -> 515.816s (-0.23%) |
|
@bors r=saethlin,Kivooeo rollup |
This comment has been minimized.
This comment has been minimized.
3e5bae6 to
ad797ab
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
ad797ab to
08b1ff1
Compare
|
@bors r=saethlin,Kivooeo rollup |
Rollup of 24 pull requests Successful merges: - #157716 (update Enzyme, June'26) - #149793 (Add inline asm support for amdgpu) - #155299 (make repr_transparent_non_zst_fields a hard error) - #157612 (Add a test where subtyping inhibits coercion.) - #157626 (Autogenerate unstable compiler flag stubs for unstable-book) - #157667 (Rename typing modes to better describe real usage) - #149749 (Make `BorrowedBuf` and `BorrowedCursor` generic over the data) - #155113 (Ensure Send/Sync impl for std::process::CommandArgs) - #156212 (Additionally gate negative bounds behind new `-Zinternal-testing-features`) - #157342 (Reduce verbosity of cycle errors when possible) - #157366 (Add a regression test for an unconstrained TransmuteFrom ICE) - #157459 (rustc_target: callconv: powerpc64: Remove unreachable fallback code path) - #157658 (UnsafeCell: mention shared-ref-to-interior case, fix aliasing model inaccuracy) - #157698 (Remove an unnecessary cloning) - #157699 (Arg splat experiment - hir FnDecl impl) - #157713 (resolve: Remove exported imports from `maybe_unused_trait_imports`) - #157722 (Move create_scope_map to rustc_codegen_ssa.) - #157723 (Move uninhabited unreachable code lint to rustc_mir_transform) - #157725 (Keep generic suggestion for macro-expanded missing-type items) - #157733 (Remove old FIXMEs about nocapture attribute) - #157737 (Reorganize `tests/ui/issues` [7/N]) - #157746 (supports_c_variadic_definitions: extend checklist for new targets) - #157763 (Move unused target expression error to appropriate place and rename it) - #157768 (codegen_ssa: peel trans. wrappers on scalable vecs)
Rollup merge of #157723 - cjgillot:late-uninhabited-lint, r=saethlin,Kivooeo Move uninhabited unreachable code lint to rustc_mir_transform This method is post-processes the built MIR to remove uninhabited function return edges and linting over them. It does not use the rest of the MIR building infrastructure, and does not need to live in the same crate.
This method is post-processes the built MIR to remove uninhabited function return edges and linting over them. It does not use the rest of the MIR building infrastructure, and does not need to live in the same crate.