about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-08 14:38:19 +0200
committerGitHub <noreply@github.com>2022-10-08 14:38:19 +0200
commit2f2664923be3cb47b88dfa69054f20b87c2eb1e1 (patch)
treea44b1049eabcbbbfbee9a823845d9ce48d666037 /src/librustdoc/html/static/js/source-script.js
parentc731646d6aea3969cc4a0eb343c73cac9389c75d (diff)
parentfc83427066f0370aa13e0fd425b36eeddb90f4fa (diff)
downloadrust-2f2664923be3cb47b88dfa69054f20b87c2eb1e1.tar.gz
rust-2f2664923be3cb47b88dfa69054f20b87c2eb1e1.zip
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.
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions