diff --git a/tests/ui/crashes/used_underscore_binding_macro.rs b/tests/ui/crashes/used_underscore_binding_macro.rs index 7e4e9dce8bce..265017c51d92 100644 --- a/tests/ui/crashes/used_underscore_binding_macro.rs +++ b/tests/ui/crashes/used_underscore_binding_macro.rs @@ -1,7 +1,5 @@ // run-pass -// FIXME(#4108) -/* #![allow(clippy::useless_attribute)] //issue #2910 #[macro_use] @@ -19,6 +17,5 @@ struct MacroAttributesTest { fn macro_attributes_test() { let _ = MacroAttributesTest { _foo: 0 }; } -*/ fn main() {} diff --git a/tests/ui/serde.rs b/tests/ui/serde.rs index 2b56195df874..5843344eba89 100644 --- a/tests/ui/serde.rs +++ b/tests/ui/serde.rs @@ -1,6 +1,3 @@ -// FIXME(#4108) - -/* #![warn(clippy::serde_api_misuse)] #![allow(dead_code)] @@ -46,5 +43,5 @@ impl<'de> serde::de::Visitor<'de> for B { unimplemented!() } } -*/ + fn main() {} diff --git a/tests/ui/serde.stderr b/tests/ui/serde.stderr index e69de29bb2d1..760c9c9908a6 100644 --- a/tests/ui/serde.stderr +++ b/tests/ui/serde.stderr @@ -0,0 +1,15 @@ +error: you should not implement `visit_string` without also implementing `visit_str` + --> $DIR/serde.rs:39:5 + | +LL | / fn visit_string(self, _v: String) -> Result +LL | | where +LL | | E: serde::de::Error, +LL | | { +LL | | unimplemented!() +LL | | } + | |_____^ + | + = note: `-D clippy::serde-api-misuse` implied by `-D warnings` + +error: aborting due to previous error +