fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
943 B28 linesraw
1warning: lint `private_no_mangle_fns` has been removed: `no longer a warning, `#[no_mangle]` functions always exported`
2   |
3   = note: requested on the command line with `-F private_no_mangle_fns`
4
5warning: lint `private_no_mangle_statics` has been removed: `no longer a warning, `#[no_mangle]` statics always exported`
6   |
7   = note: requested on the command line with `-F private_no_mangle_statics`
8
9error: const items should never be `#[no_mangle]`
10  --> $DIR/lint-unexported-no-mangle.rs:9:1
11   |
12LL | const FOO: u64 = 1;
13   | -----^^^^^^^^^^^^^^
14   | |
15   | help: try a static value: `pub static`
16   |
17   = note: requested on the command line with `-F no-mangle-const-items`
18
19error: const items should never be `#[no_mangle]`
20  --> $DIR/lint-unexported-no-mangle.rs:12:1
21   |
22LL | pub const PUB_FOO: u64 = 1;
23   | ---------^^^^^^^^^^^^^^^^^^
24   | |
25   | help: try a static value: `pub static`
26
27error: aborting due to 2 previous errors
28