summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/reasons.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/reasons.rs')
-rw-r--r--src/test/ui/lint/reasons.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/test/ui/lint/reasons.rs b/src/test/ui/lint/reasons.rs
deleted file mode 100644
index da1c740c4..000000000
--- a/src/test/ui/lint/reasons.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-// check-pass
-
-#![feature(lint_reasons)]
-#![warn(elided_lifetimes_in_paths,
- //~^ NOTE the lint level is defined here
- reason = "explicit anonymous lifetimes aid reasoning about ownership")]
-#![warn(
- nonstandard_style,
- //~^ NOTE the lint level is defined here
- reason = r#"people shouldn't have to change their usual style habits
-to contribute to our project"#
-)]
-#![allow(unused, reason = "unused code has never killed anypony")]
-
-use std::fmt;
-
-pub struct CheaterDetectionMechanism {}
-
-impl fmt::Debug for CheaterDetectionMechanism {
- fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
- //~^ WARN hidden lifetime parameters in types are deprecated
- //~| NOTE expected lifetime parameter
- //~| NOTE explicit anonymous lifetimes aid
- //~| HELP indicate the anonymous lifetime
- fmt.debug_struct("CheaterDetectionMechanism").finish()
- }
-}
-
-fn main() {
- let Social_exchange_psychology = CheaterDetectionMechanism {};
- //~^ WARN should have a snake case name
- //~| NOTE #[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]
- //~| NOTE people shouldn't have to change their usual style habits
- //~| HELP convert the identifier to snake case
-}