Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 15450b1

Browse files
committedMar 1, 2023
Fix the ffi_unwind_calls lint documentation
1 parent c6cba68 commit 15450b1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
 

‎compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3967,14 +3967,9 @@ declare_lint! {
39673967
///
39683968
/// ### Example
39693969
///
3970-
/// ```rust,ignore (need FFI)
3971-
/// #![feature(ffi_unwind_calls)]
3970+
/// ```rust
39723971
/// #![feature(c_unwind)]
3973-
///
3974-
/// # mod impl {
3975-
/// # #[no_mangle]
3976-
/// # pub fn "C-unwind" fn foo() {}
3977-
/// # }
3972+
/// #![warn(ffi_unwind_calls)]
39783973
///
39793974
/// extern "C-unwind" {
39803975
/// fn foo();

0 commit comments

Comments
 (0)
Please sign in to comment.