Fix the ffi_unwind_calls lint documentation
This commit is contained in:
parent
c6cba68c16
commit
15450b1b21
1 changed files with 2 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue