rust/src/test
Matthias Krüger 2f2664923b
Rollup merge of #102778 - nbdd0121:mir, r=tmiasko
Fix MIR inlining of asm_unwind

The MIR inlining currently doesn't handle inline asm's unwind edge correctly.

This code will cause ICE:
```rust
struct D;

impl Drop for D {
    fn drop(&mut self) {}
}

#[inline(always)]
fn foo() {
    let _d = D;
    unsafe { std::arch::asm!("", options(may_unwind)) };
}

pub fn main() {
    foo();
}
```

This PR fixes this issue. I also take the opportunity to extract common code into a method.
2022-10-08 14:38:19 +02:00
..
assembly Enable inline stack probes on X86 with LLVM 16 2022-09-29 19:49:23 -07:00
auxiliary
codegen Auto merge of #102503 - cuviper:x86-stack-probes, r=nagisa 2022-10-03 02:09:05 +00:00
codegen-units Bless cgu test. 2022-09-23 18:42:14 +02:00
debuginfo Auto merge of #99556 - davidtwco:collapse-debuginfo, r=wesleywiser 2022-09-13 01:19:05 +00:00
incremental Stabilize bench_black_box 2022-09-27 17:38:51 +02:00
mir-opt Rollup merge of #102778 - nbdd0121:mir, r=tmiasko 2022-10-08 14:38:19 +02:00
pretty address review 2022-09-26 14:21:39 +02:00
run-make resolve error when attempting to link a universal library on macOS 2022-10-04 07:39:51 -04:00
run-make-fulldeps rustdoc: give .line-number / .line-numbers meaningful names 2022-09-26 11:48:03 -07:00
run-pass-valgrind Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
rustdoc rustdoc: remove unused HTML class="item-list" 2022-10-06 10:55:33 -07:00
rustdoc-gui rustdoc: remove unused CSS class in-band 2022-10-05 16:56:07 -07:00
rustdoc-js
rustdoc-js-std Update asrawfd.js. 2022-08-29 08:31:42 -07:00
rustdoc-json Rustdoc-Json: List impls for primitives 2022-09-26 18:06:48 +01:00
rustdoc-ui Rollup merge of #102725 - nnethercote:rm-Z-time, r=davidtwco 2022-10-06 16:29:45 +02:00
ui Rollup merge of #101520 - oli-obk:transmute_lifetimes, r=compiler-errors 2022-10-08 14:38:18 +02:00
ui-fulldeps errors: rename typeck.ftl to hir_analysis.ftl 2022-10-03 13:52:17 +01:00
COMPILER_TESTS.md