File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
closures/2229_closure_analysis/migrations Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 33
44#![deny(rust_2021_incompatible_closure_captures)]
55//~^ NOTE: the lint level is defined here
6- // ignore-wasm32-bare compiled with panic=abort by default
76#![feature(fn_traits)]
87#![feature(never_type)]
98
Original file line number Diff line number Diff line change 11error: changes to closure capture in Rust 2021 will affect which traits the closure implements
2- --> $DIR/mir_calls_to_shims.rs:21 :38
2+ --> $DIR/mir_calls_to_shims.rs:20 :38
33 |
44LL | let result = panic::catch_unwind(move || {
55 | ^^^^^^^
Original file line number Diff line number Diff line change 11error[E0259]: the name `core` is defined multiple times
2- --> $DIR/weak-lang-item.rs:9 :1
2+ --> $DIR/weak-lang-item.rs:8 :1
33 |
44LL | extern crate core;
55 | ^^^^^^^^^^^^^^^^^^ `core` reimported here
Original file line number Diff line number Diff line change 11warning: call to foreign function with FFI-unwind ABI
2- --> $DIR/ffi-unwind-calls-lint.rs:21 :14
2+ --> $DIR/ffi-unwind-calls-lint.rs:20 :14
33 |
44LL | unsafe { foo(); }
55 | ^^^^^ call to foreign function with FFI-unwind ABI
66 |
77note: the lint level is defined here
8- --> $DIR/ffi-unwind-calls-lint.rs:6 :9
8+ --> $DIR/ffi-unwind-calls-lint.rs:5 :9
99 |
1010LL | #![warn(ffi_unwind_calls)]
1111 | ^^^^^^^^^^^^^^^^
1212
1313warning: call to function pointer with FFI-unwind ABI
14- --> $DIR/ffi-unwind-calls-lint.rs:25 :5
14+ --> $DIR/ffi-unwind-calls-lint.rs:24 :5
1515 |
1616LL | ptr();
1717 | ^^^^^ call to function pointer with FFI-unwind ABI
You can’t perform that action at this time.
0 commit comments