diff --git a/core/codegen_next/tests/responder.rs b/core/codegen_next/tests/responder.rs index 7204e534..81868372 100644 --- a/core/codegen_next/tests/responder.rs +++ b/core/codegen_next/tests/responder.rs @@ -1,5 +1,3 @@ -#![feature(attr_literals)] - #[macro_use] extern crate rocket; use rocket::local::Client; diff --git a/core/codegen_next/tests/ui-fail/responder-types.rs b/core/codegen_next/tests/ui-fail/responder-types.rs index 204a406e..c6eb14dd 100644 --- a/core/codegen_next/tests/ui-fail/responder-types.rs +++ b/core/codegen_next/tests/ui-fail/responder-types.rs @@ -1,8 +1,6 @@ // normalize-stderr-test: "<(.*) as (.*)>" -> "$1 as $$TRAIT" // normalize-stderr-test: "and \d+ others" -> "and $$N others" -#![feature(attr_literals)] - #[macro_use] extern crate rocket; #[derive(Responder)] diff --git a/core/codegen_next/tests/ui-fail/responder-types.stderr b/core/codegen_next/tests/ui-fail/responder-types.stderr index 37094fa2..884153e5 100644 --- a/core/codegen_next/tests/ui-fail/responder-types.stderr +++ b/core/codegen_next/tests/ui-fail/responder-types.stderr @@ -1,15 +1,15 @@ error[E0277]: the trait bound `u8: rocket::response::Responder<'_>` is not satisfied - --> $DIR/responder-types.rs:10:5 - | -10 | thing: u8, - | ^^^^^^^^^ the trait `rocket::response::Responder<'_>` is not implemented for `u8` - | - = note: required by `rocket::response::Responder::respond_to` + --> $DIR/responder-types.rs:8:5 + | +8 | thing: u8, + | ^^^^^^^^^ the trait `rocket::response::Responder<'_>` is not implemented for `u8` + | + = note: required by `rocket::response::Responder::respond_to` error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From` is not satisfied - --> $DIR/responder-types.rs:17:5 + --> $DIR/responder-types.rs:15:5 | -17 | other: u8, +15 | other: u8, | ^^^^^^^^^ the trait `std::convert::From` is not implemented for `rocket::http::Header<'_>` | = help: the following implementations were found: @@ -21,17 +21,17 @@ error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From` = note: required because of the requirements on the impl of `std::convert::Into>` for `u8` error[E0277]: the trait bound `u8: rocket::response::Responder<'_>` is not satisfied - --> $DIR/responder-types.rs:23:5 + --> $DIR/responder-types.rs:21:5 | -23 | thing: u8, +21 | thing: u8, | ^^^^^^^^^ the trait `rocket::response::Responder<'_>` is not implemented for `u8` | = note: required by `rocket::response::Responder::respond_to` error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From` is not satisfied - --> $DIR/responder-types.rs:25:5 + --> $DIR/responder-types.rs:23:5 | -25 | other: u8, +23 | other: u8, | ^^^^^^^^^ the trait `std::convert::From` is not implemented for `rocket::http::Header<'_>` | = help: the following implementations were found: @@ -43,9 +43,9 @@ error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From` = note: required because of the requirements on the impl of `std::convert::Into>` for `u8` error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From` is not satisfied - --> $DIR/responder-types.rs:33:5 + --> $DIR/responder-types.rs:31:5 | -33 | then: String, +31 | then: String, | ^^^^^^^^^^^^ the trait `std::convert::From` is not implemented for `rocket::http::Header<'_>` | = help: the following implementations were found: