2018-08-08 14:28:26 +02:00
|
|
|
error: unnecessary qualification
|
2024-03-11 22:39:02 +08:00
|
|
|
--> $DIR/lint-qualification.rs:12:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo::bar();
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2023-07-18 09:10:45 +08:00
|
|
|
--> $DIR/lint-qualification.rs:2:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_qualifications)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2023-07-18 09:10:45 +08:00
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
|
|
|
|
LL - foo::bar();
|
|
|
|
LL + bar();
|
2023-06-17 15:06:48 +08:00
|
|
|
|
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2024-02-23 17:00:50 +00:00
|
|
|
error: unnecessary qualification
|
2024-03-11 22:39:02 +08:00
|
|
|
--> $DIR/lint-qualification.rs:13:5
|
2024-02-23 17:00:50 +00:00
|
|
|
|
|
|
|
|
LL | crate::foo::bar();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
|
|
|
|
LL - crate::foo::bar();
|
|
|
|
LL + bar();
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary qualification
|
2024-03-11 22:39:02 +08:00
|
|
|
--> $DIR/lint-qualification.rs:18:13
|
2024-02-23 17:00:50 +00:00
|
|
|
|
|
|
|
|
LL | let _ = std::string::String::new();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
|
|
|
|
LL - let _ = std::string::String::new();
|
|
|
|
LL + let _ = String::new();
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary qualification
|
2024-03-15 14:59:05 +00:00
|
|
|
--> $DIR/lint-qualification.rs:20:12
|
2024-02-23 17:00:50 +00:00
|
|
|
|
|
|
|
|
LL | let _: std::vec::Vec<String> = std::vec::Vec::<String>::new();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
|
|
|
|
LL - let _: std::vec::Vec<String> = std::vec::Vec::<String>::new();
|
|
|
|
LL + let _: Vec<String> = std::vec::Vec::<String>::new();
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary qualification
|
2024-03-15 14:59:05 +00:00
|
|
|
--> $DIR/lint-qualification.rs:20:36
|
2024-02-23 17:00:50 +00:00
|
|
|
|
|
|
|
|
LL | let _: std::vec::Vec<String> = std::vec::Vec::<String>::new();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
|
|
|
|
LL - let _: std::vec::Vec<String> = std::vec::Vec::<String>::new();
|
|
|
|
LL + let _: std::vec::Vec<String> = Vec::<String>::new();
|
|
|
|
|
|
|
|
|
|
2024-03-11 22:39:02 +08:00
|
|
|
error: unused import: `std::fmt`
|
2024-03-15 14:59:05 +00:00
|
|
|
--> $DIR/lint-qualification.rs:24:9
|
2024-02-23 17:00:50 +00:00
|
|
|
|
|
2024-03-11 22:39:02 +08:00
|
|
|
LL | use std::fmt;
|
|
|
|
| ^^^^^^^^
|
2024-02-23 17:00:50 +00:00
|
|
|
|
|
2024-03-11 22:39:02 +08:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/lint-qualification.rs:3:9
|
2024-02-23 17:00:50 +00:00
|
|
|
|
|
2024-03-11 22:39:02 +08:00
|
|
|
LL | #![deny(unused_imports)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
2024-02-23 17:00:50 +00:00
|
|
|
|
2024-03-05 18:31:32 +00:00
|
|
|
error: unnecessary qualification
|
2024-03-15 14:59:05 +00:00
|
|
|
--> $DIR/lint-qualification.rs:29:13
|
2024-03-05 18:31:32 +00:00
|
|
|
|
|
2024-03-15 14:59:05 +00:00
|
|
|
LL | let _ = <bool as std::default::Default>::default(); // issue #121999 (modified)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-03-05 18:31:32 +00:00
|
|
|
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
|
2024-03-15 14:59:05 +00:00
|
|
|
LL - let _ = <bool as std::default::Default>::default(); // issue #121999 (modified)
|
|
|
|
LL + let _ = <bool as Default>::default(); // issue #121999 (modified)
|
2024-03-05 18:31:32 +00:00
|
|
|
|
|
|
|
|
|
2024-03-15 14:59:05 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|