diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-02-20 13:49:54 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-02-20 19:12:52 -0500 |
| commit | a47fd3df89c267829d96748b3bdff305f20d27d5 (patch) | |
| tree | 676d0df0845297a873c5e0a6620f464dea49a642 /src/test/codegen/extern-functions.rs | |
| parent | 27a046e9338fb0455c33b13e8fe28da78212dedc (diff) | |
| download | rust-a47fd3df89c267829d96748b3bdff305f20d27d5.tar.gz rust-a47fd3df89c267829d96748b3bdff305f20d27d5.zip | |
make `#[unwind]` attribute specify expectations more clearly
You can now choose between the following: - `#[unwind(allowed)]` - `#[unwind(aborts)]` Per rust-lang/rust#48251, the default is `#[unwind(allowed)]`, though I think we should change this eventually.
Diffstat (limited to 'src/test/codegen/extern-functions.rs')
| -rw-r--r-- | src/test/codegen/extern-functions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/codegen/extern-functions.rs b/src/test/codegen/extern-functions.rs index 7ee31070b26..90ee0c75680 100644 --- a/src/test/codegen/extern-functions.rs +++ b/src/test/codegen/extern-functions.rs @@ -19,7 +19,7 @@ extern { fn extern_fn(); // CHECK-NOT: Function Attrs: nounwind // CHECK: declare void @unwinding_extern_fn - #[unwind] + #[unwind(allowed)] fn unwinding_extern_fn(); } |
