File tree 4 files changed +5
-6
lines changed
closures/2229_closure_analysis/migrations
4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#![deny(rust_2021_incompatible_closure_captures)]
5
5
//~^ NOTE: the lint level is defined here
6
- // ignore-wasm32-bare compiled with panic=abort by default
7
6
#![feature(fn_traits)]
8
7
#![feature(never_type)]
9
8
Original file line number Diff line number Diff line change 1
1
error: 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
3
3
|
4
4
LL | let result = panic::catch_unwind(move || {
5
5
| ^^^^^^^
Original file line number Diff line number Diff line change 1
1
error[E0259]: the name `core` is defined multiple times
2
- --> $DIR/weak-lang-item.rs:9 :1
2
+ --> $DIR/weak-lang-item.rs:8 :1
3
3
|
4
4
LL | extern crate core;
5
5
| ^^^^^^^^^^^^^^^^^^ `core` reimported here
Original file line number Diff line number Diff line change 1
1
warning: 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
3
3
|
4
4
LL | unsafe { foo(); }
5
5
| ^^^^^ call to foreign function with FFI-unwind ABI
6
6
|
7
7
note: the lint level is defined here
8
- --> $DIR/ffi-unwind-calls-lint.rs:6 :9
8
+ --> $DIR/ffi-unwind-calls-lint.rs:5 :9
9
9
|
10
10
LL | #![warn(ffi_unwind_calls)]
11
11
| ^^^^^^^^^^^^^^^^
12
12
13
13
warning: 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
15
15
|
16
16
LL | ptr();
17
17
| ^^^^^ call to function pointer with FFI-unwind ABI
You can’t perform that action at this time.
0 commit comments