mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
c053e8939b
As the comment says, this lint "is mostly historical, and not particularly useful". It's not worth keeping it around.
29 lines
1.3 KiB
Rust
29 lines
1.3 KiB
Rust
//@ compile-flags: -Zdeduplicate-diagnostics=yes
|
|
|
|
#![warn(absolute_paths_not_starting_with_crate, reason = 0)]
|
|
//~^ ERROR malformed lint attribute
|
|
//~| NOTE reason must be a string literal
|
|
#![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
|
|
//~^ ERROR malformed lint attribute
|
|
//~| NOTE reason must be a string literal
|
|
#![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
|
|
//~^ ERROR malformed lint attribute
|
|
//~| NOTE bad attribute argument
|
|
#![warn(unsafe_code, blerp = "or in league with robbers have reversed the signposts")]
|
|
//~^ ERROR malformed lint attribute
|
|
//~| NOTE bad attribute argument
|
|
#![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
|
|
//~^ ERROR malformed lint attribute
|
|
//~| NOTE bad attribute argument
|
|
#![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
|
|
//~^ ERROR malformed lint attribute
|
|
//~| NOTE reason in lint attribute must come last
|
|
#![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
|
|
//~^ ERROR malformed lint attribute
|
|
//~| NOTE reason in lint attribute must come last
|
|
#![warn(missing_copy_implementations, reason)]
|
|
//~^ WARN unknown lint
|
|
//~| NOTE `#[warn(unknown_lints)]` on by default
|
|
|
|
fn main() {}
|