summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lints-in-foreign-macros.stderr
blob: f20e16287af0fce7c01c4dfd1f68d243762183af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
warning: unused import: `std::string::ToString`
  --> $DIR/lints-in-foreign-macros.rs:11:16
   |
LL |     () => {use std::string::ToString;}
   |                ^^^^^^^^^^^^^^^^^^^^^
...
LL | mod a { foo!(); }
   |         ------ in this macro invocation
   |
note: the lint level is defined here
  --> $DIR/lints-in-foreign-macros.rs:4:9
   |
LL | #![warn(unused_imports)]
   |         ^^^^^^^^^^^^^^
   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: unused import: `std::string::ToString`
  --> $DIR/lints-in-foreign-macros.rs:16:18
   |
LL | mod c { baz!(use std::string::ToString;); }
   |                  ^^^^^^^^^^^^^^^^^^^^^

warning: unused import: `std::string::ToString`
  --> $DIR/lints-in-foreign-macros.rs:17:19
   |
LL | mod d { baz2!(use std::string::ToString;); }
   |                   ^^^^^^^^^^^^^^^^^^^^^

warning: missing documentation for the crate
  --> $DIR/lints-in-foreign-macros.rs:4:1
   |
LL | / #![warn(unused_imports)]
LL | | #![warn(missing_docs)]
LL | |
LL | | #[macro_use]
...  |
LL | |
LL | | fn main() {}
   | |____________^
   |
note: the lint level is defined here
  --> $DIR/lints-in-foreign-macros.rs:5:9
   |
LL | #![warn(missing_docs)]
   |         ^^^^^^^^^^^^

warning: missing documentation for a function
  --> $DIR/lints-in-foreign-macros.rs:18:6
   |
LL | baz!(pub fn undocumented() {});
   |      ^^^^^^^^^^^^^^^^^^^^^

warning: missing documentation for a function
  --> $DIR/lints-in-foreign-macros.rs:19:7
   |
LL | baz2!(pub fn undocumented2() {});
   |       ^^^^^^^^^^^^^^^^^^^^^^

warning: 6 warnings emitted