diff options
| author | bors <bors@rust-lang.org> | 2025-08-02 23:49:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-08-02 23:49:08 +0000 |
| commit | 5b9564a18950db64c5aee8ba19d55a97b2e8d1cf (patch) | |
| tree | 7025239244d0c2063e7ecb195a056fba7ae20bab /tests/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff | |
| parent | a65b04d7c9a1eaf02b62667da1c203c8a07976d9 (diff) | |
| parent | 0fcfb8bee761b616bc36c88d2d48786a2789efba (diff) | |
| download | rust-5b9564a18950db64c5aee8ba19d55a97b2e8d1cf.tar.gz rust-5b9564a18950db64c5aee8ba19d55a97b2e8d1cf.zip | |
Auto merge of #144814 - samueltardieu:rollup-qyum1hj, r=samueltardieu
Rollup of 17 pull requests Successful merges: - rust-lang/rust#132748 (get rid of some false negatives in rustdoc::broken_intra_doc_links) - rust-lang/rust#143360 (loop match: error on `#[const_continue]` outside `#[loop_match]`) - rust-lang/rust#143662 ([rustdoc] Display unsafe attrs with edition 2024 `unsafe()` wrappers.) - rust-lang/rust#143771 (Constify some more `Result` functions) - rust-lang/rust#144185 (Document guarantees of poisoning) - rust-lang/rust#144395 (update fortanix tests) - rust-lang/rust#144478 (Improve formatting of doc code blocks) - rust-lang/rust#144614 (Fortify RemoveUnneededDrops test.) - rust-lang/rust#144703 ([test][AIX] ignore extern_weak linkage test) - rust-lang/rust#144747 (compiletest: Improve diagnostics for line annotation mismatches 2) - rust-lang/rust#144756 (detect infinite recursion with tail calls in ctfe) - rust-lang/rust#144766 (Add human readable name "Cygwin") - rust-lang/rust#144782 (Properly pass path to staged `rustc` to `compiletest` self-tests) - rust-lang/rust#144786 (Cleanup the definition of `group_type`) - rust-lang/rust#144796 (Add my previous commit name to .mailmap) - rust-lang/rust#144797 (Update safety comment for new_unchecked in niche_types) - rust-lang/rust#144803 (rustc-dev-guide subtree update) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff')
| -rw-r--r-- | tests/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff b/tests/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff new file mode 100644 index 00000000000..52832e73905 --- /dev/null +++ b/tests/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff @@ -0,0 +1,15 @@ +- // MIR for `cannot_opt_generic` before RemoveUnneededDrops ++ // MIR for `cannot_opt_generic` after RemoveUnneededDrops + + fn cannot_opt_generic(_1: T) -> () { + let mut _0: (); + + bb0: { + drop(_1) -> [return: bb1, unwind unreachable]; + } + + bb1: { + return; + } + } + |
