]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-unexported-no-mangle.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / lint-unexported-no-mangle.stderr
1 warning: 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
5 warning: 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
9 warning: lint `private_no_mangle_fns` has been removed: no longer a warning, `#[no_mangle]` functions always exported
10    |
11    = note: requested on the command line with `-F private_no_mangle_fns`
12
13 warning: lint `private_no_mangle_statics` has been removed: no longer a warning, `#[no_mangle]` statics always exported
14    |
15    = note: requested on the command line with `-F private_no_mangle_statics`
16
17 warning: lint `private_no_mangle_fns` has been removed: no longer a warning, `#[no_mangle]` functions always exported
18    |
19    = note: requested on the command line with `-F private_no_mangle_fns`
20
21 warning: lint `private_no_mangle_statics` has been removed: no longer a warning, `#[no_mangle]` statics always exported
22    |
23    = note: requested on the command line with `-F private_no_mangle_statics`
24
25 error: const items should never be `#[no_mangle]`
26   --> $DIR/lint-unexported-no-mangle.rs:9:1
27    |
28 LL | const FOO: u64 = 1;
29    | -----^^^^^^^^^^^^^^
30    | |
31    | help: try a static value: `pub static`
32    |
33    = note: requested on the command line with `-F no-mangle-const-items`
34
35 error: const items should never be `#[no_mangle]`
36   --> $DIR/lint-unexported-no-mangle.rs:12:1
37    |
38 LL | pub const PUB_FOO: u64 = 1;
39    | ---------^^^^^^^^^^^^^^^^^^
40    | |
41    | help: try a static value: `pub static`
42
43 error: aborting due to 2 previous errors; 6 warnings emitted
44