]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-unexported-no-mangle.stderr
Rollup merge of #85501 - jyn514:invalid-doc-attrs, r=varkor
[rust.git] / src / test / 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 warning: lint `private_no_mangle_fns` has been removed: no longer a warning, `#[no_mangle]` functions always exported
26    |
27    = note: requested on the command line with `-F private_no_mangle_fns`
28
29 warning: lint `private_no_mangle_statics` has been removed: no longer a warning, `#[no_mangle]` statics always exported
30    |
31    = note: requested on the command line with `-F private_no_mangle_statics`
32
33 error: const items should never be `#[no_mangle]`
34   --> $DIR/lint-unexported-no-mangle.rs:9:1
35    |
36 LL | const FOO: u64 = 1;
37    | -----^^^^^^^^^^^^^^
38    | |
39    | help: try a static value: `pub static`
40    |
41    = note: requested on the command line with `-F no-mangle-const-items`
42
43 error: const items should never be `#[no_mangle]`
44   --> $DIR/lint-unexported-no-mangle.rs:12:1
45    |
46 LL | pub const PUB_FOO: u64 = 1;
47    | ---------^^^^^^^^^^^^^^^^^^
48    | |
49    | help: try a static value: `pub static`
50
51 error: aborting due to 2 previous errors; 8 warnings emitted
52