diff options
| author | Eric Huss <eric@huss.org> | 2023-02-28 18:22:05 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2023-02-28 19:58:57 -0800 |
| commit | 15450b1b213d568c83bf1ba71618ddba6979e1d7 (patch) | |
| tree | 7094e37f1c6d2f477f7cd6566dc1bdc6136b3dc0 | |
| parent | c6cba68c16e2dd9e2d05f3c941d58fdbebd0d1a0 (diff) | |
| download | rust-15450b1b213d568c83bf1ba71618ddba6979e1d7.tar.gz rust-15450b1b213d568c83bf1ba71618ddba6979e1d7.zip | |
Fix the ffi_unwind_calls lint documentation
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 46ec1a2dca1..9090ecac9e3 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -3967,14 +3967,9 @@ declare_lint! { /// /// ### Example /// - /// ```rust,ignore (need FFI) - /// #![feature(ffi_unwind_calls)] + /// ```rust /// #![feature(c_unwind)] - /// - /// # mod impl { - /// # #[no_mangle] - /// # pub fn "C-unwind" fn foo() {} - /// # } + /// #![warn(ffi_unwind_calls)] /// /// extern "C-unwind" { /// fn foo(); |
