fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.6 KiB60 linesraw
1warning: unused import: `std::string::ToString`
2  --> $DIR/lints-in-foreign-macros.rs:11:16
3   |
4LL |     () => {use std::string::ToString;}
5   |                ^^^^^^^^^^^^^^^^^^^^^
6...
7LL | mod a { foo!(); }
8   |         ------- in this macro invocation
9   |
10note: the lint level is defined here
11  --> $DIR/lints-in-foreign-macros.rs:4:9
12   |
13LL | #![warn(unused_imports)]
14   |         ^^^^^^^^^^^^^^
15   = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
16
17warning: unused import: `std::string::ToString`
18  --> $DIR/lints-in-foreign-macros.rs:16:18
19   |
20LL | mod c { baz!(use std::string::ToString;); }
21   |                  ^^^^^^^^^^^^^^^^^^^^^
22
23warning: unused import: `std::string::ToString`
24  --> $DIR/lints-in-foreign-macros.rs:17:19
25   |
26LL | mod d { baz2!(use std::string::ToString;); }
27   |                   ^^^^^^^^^^^^^^^^^^^^^
28
29warning: missing documentation for the crate
30  --> $DIR/lints-in-foreign-macros.rs:4:1
31   |
32LL | / #![warn(unused_imports)]
33LL | | #![warn(missing_docs)]
34LL | |
35LL | | #[macro_use]
36...  |
37LL | |
38LL | | fn main() {}
39   | |____________^
40   |
41note: the lint level is defined here
42  --> $DIR/lints-in-foreign-macros.rs:5:9
43   |
44LL | #![warn(missing_docs)]
45   |         ^^^^^^^^^^^^
46
47warning: missing documentation for a function
48  --> $DIR/lints-in-foreign-macros.rs:18:6
49   |
50LL | baz!(pub fn undocumented() {});
51   |      ^^^^^^^^^^^^^^^^^^^^^
52
53warning: missing documentation for a function
54  --> $DIR/lints-in-foreign-macros.rs:19:7
55   |
56LL | baz2!(pub fn undocumented2() {});
57   |       ^^^^^^^^^^^^^^^^^^^^^^
58
59warning: 6 warnings emitted
60