diff --git a/juniper/src/parser/lexer.rs b/juniper/src/parser/lexer.rs index c71c7ccf..be76e6ea 100644 --- a/juniper/src/parser/lexer.rs +++ b/juniper/src/parser/lexer.rs @@ -338,7 +338,7 @@ impl<'a> Lexer<'a> { let mut end_idx = loop { if let Some((idx, ch)) = self.peek_char() { - if ch.is_digit(10) || (ch == '-' && last_idx == start_idx) { + if ch.is_ascii_digit() || (ch == '-' && last_idx == start_idx) { if ch == '0' && last_char == '0' && last_idx == start_idx { return Err(Spanning::zero_width( &self.position, @@ -367,7 +367,7 @@ impl<'a> Lexer<'a> { self.next_char(); end_idx = loop { if let Some((idx, ch)) = self.peek_char() { - if ch.is_digit(10) { + if ch.is_ascii_digit() { self.next_char(); } else if last_idx == start_idx { return Err(Spanning::zero_width( @@ -396,7 +396,9 @@ impl<'a> Lexer<'a> { end_idx = loop { if let Some((idx, ch)) = self.peek_char() { - if ch.is_digit(10) || (last_idx == start_idx && (ch == '-' || ch == '+')) { + if ch.is_ascii_digit() + || (last_idx == start_idx && (ch == '-' || ch == '+')) + { self.next_char(); } else if last_idx == start_idx { // 1e is not a valid floating point number diff --git a/juniper/src/types/marker.rs b/juniper/src/types/marker.rs index d1885e3f..c4cc18f5 100644 --- a/juniper/src/types/marker.rs +++ b/juniper/src/types/marker.rs @@ -33,7 +33,7 @@ pub trait GraphQLObject: GraphQLType { fn mark() {} } -impl<'a, S, T> GraphQLObject for &T +impl GraphQLObject for &T where T: GraphQLObject + ?Sized, S: ScalarValue, @@ -90,7 +90,7 @@ pub trait GraphQLInterface: GraphQLType { fn mark() {} } -impl<'a, S, T> GraphQLInterface for &T +impl GraphQLInterface for &T where T: GraphQLInterface + ?Sized, S: ScalarValue, @@ -147,7 +147,7 @@ pub trait GraphQLUnion: GraphQLType { fn mark() {} } -impl<'a, S, T> GraphQLUnion for &T +impl GraphQLUnion for &T where T: GraphQLUnion + ?Sized, S: ScalarValue, @@ -194,7 +194,7 @@ pub trait IsOutputType: GraphQLType { fn mark() {} } -impl<'a, S, T> IsOutputType for &T +impl IsOutputType for &T where T: IsOutputType + ?Sized, S: ScalarValue, @@ -271,7 +271,7 @@ where } } -impl<'a, S> IsOutputType for str where S: ScalarValue {} +impl IsOutputType for str where S: ScalarValue {} /// Marker trait for types which can be used as input types. /// @@ -287,7 +287,7 @@ pub trait IsInputType: GraphQLType { fn mark() {} } -impl<'a, S, T> IsInputType for &T +impl IsInputType for &T where T: IsInputType + ?Sized, S: ScalarValue, @@ -364,4 +364,4 @@ where } } -impl<'a, S> IsInputType for str where S: ScalarValue {} +impl IsInputType for str where S: ScalarValue {} diff --git a/juniper/src/types/pointers.rs b/juniper/src/types/pointers.rs index 0726ef52..17e70679 100644 --- a/juniper/src/types/pointers.rs +++ b/juniper/src/types/pointers.rs @@ -265,7 +265,7 @@ where } } -impl<'e, S, T> GraphQLValueAsync for Arc +impl GraphQLValueAsync for Arc where T: GraphQLValueAsync + Send + ?Sized, T::TypeInfo: Sync, diff --git a/juniper_iron/src/lib.rs b/juniper_iron/src/lib.rs index 6e104ea0..62764227 100644 --- a/juniper_iron/src/lib.rs +++ b/juniper_iron/src/lib.rs @@ -194,8 +194,8 @@ impl PlaygroundHandler { } } -impl<'a, CtxFactory, Query, Mutation, Subscription, CtxT, S> Handler - for GraphQLHandler<'a, CtxFactory, Query, Mutation, Subscription, CtxT, S> +impl Handler + for GraphQLHandler<'static, CtxFactory, Query, Mutation, Subscription, CtxT, S> where S: ScalarValue + Sync + Send + 'static, CtxFactory: Fn(&mut Request) -> IronResult + Send + Sync + 'static, @@ -203,7 +203,6 @@ where Query: GraphQLType + Send + Sync + 'static, Mutation: GraphQLType + Send + Sync + 'static, Subscription: GraphQLType + Send + Sync + 'static, - 'a: 'static, { fn handle(&self, req: &mut Request) -> IronResult { let context = (self.context_factory)(req)?; diff --git a/tests/codegen/fail/interface/struct/attr_missing_field.stderr b/tests/codegen/fail/interface/struct/attr_missing_field.stderr index 37afdb39..3c3d2ccb 100644 --- a/tests/codegen/fail/interface/struct/attr_missing_field.stderr +++ b/tests/codegen/fail/interface/struct/attr_missing_field.stderr @@ -367,23 +367,13 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) -error: any use of this value will cause an error - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - error[E0080]: evaluation of constant value failed --> fail/interface/struct/attr_missing_field.rs:11:5 | 11 | id: String, | ^^ referenced constant has errors | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) error: any use of this value will cause an error --> fail/interface/struct/attr_missing_field.rs:11:5 @@ -413,6 +403,32 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + error: any use of this value will cause an error --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -439,22 +455,6 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - error: any use of this value will cause an error --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -859,86 +859,6 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) -error: any use of this value will cause an error - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: any use of this value will cause an error - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::assert_subtype` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: any use of this value will cause an error - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: any use of this value will cause an error - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/attr_missing_field.rs:11:5 - | -11 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - error[E0080]: evaluation of constant value failed --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -982,3 +902,83 @@ error[E0080]: evaluation of constant value failed | ^^ referenced constant has errors | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::assert_subtype` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests/codegen/fail/interface/struct/derive_missing_field.stderr b/tests/codegen/fail/interface/struct/derive_missing_field.stderr index a9a91ec7..086f4ea0 100644 --- a/tests/codegen/fail/interface/struct/derive_missing_field.stderr +++ b/tests/codegen/fail/interface/struct/derive_missing_field.stderr @@ -367,23 +367,13 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) -error: any use of this value will cause an error - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - error[E0080]: evaluation of constant value failed --> fail/interface/struct/derive_missing_field.rs:12:5 | 12 | id: String, | ^^ referenced constant has errors | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) error: any use of this value will cause an error --> fail/interface/struct/derive_missing_field.rs:12:5 @@ -413,6 +403,32 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + error: any use of this value will cause an error --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -439,22 +455,6 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - error: any use of this value will cause an error --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -859,86 +859,6 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) -error: any use of this value will cause an error - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: any use of this value will cause an error - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::assert_subtype` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: any use of this value will cause an error - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: any use of this value will cause an error - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/struct/derive_missing_field.rs:12:5 - | -12 | id: String, - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - error[E0080]: evaluation of constant value failed --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -982,3 +902,83 @@ error[E0080]: evaluation of constant value failed | ^^ referenced constant has errors | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::assert_subtype` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests/codegen/fail/interface/trait/missing_field.stderr b/tests/codegen/fail/interface/trait/missing_field.stderr index 45913e16..e8c94f94 100644 --- a/tests/codegen/fail/interface/trait/missing_field.stderr +++ b/tests/codegen/fail/interface/trait/missing_field.stderr @@ -367,23 +367,13 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) -error: any use of this value will cause an error - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - error[E0080]: evaluation of constant value failed --> fail/interface/trait/missing_field.rs:11:8 | 11 | fn id(&self) -> &str; | ^^ referenced constant has errors | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) error: any use of this value will cause an error --> fail/interface/trait/missing_field.rs:11:8 @@ -413,6 +403,32 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) +error[E0080]: evaluation of constant value failed + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + error: any use of this value will cause an error --> fail/interface/trait/missing_field.rs:11:8 | @@ -439,22 +455,6 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0080]: evaluation of constant value failed - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - error: any use of this value will cause an error --> fail/interface/trait/missing_field.rs:11:8 | @@ -859,86 +859,6 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) -error: any use of this value will cause an error - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: any use of this value will cause an error - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::assert_subtype` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: any use of this value will cause an error - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error: any use of this value will cause an error - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! - = note: for more information, see issue #71800 - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) - -error[E0080]: evaluation of constant value failed - --> fail/interface/trait/missing_field.rs:11:8 - | -11 | fn id(&self) -> &str; - | ^^ referenced constant has errors - | - = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) - error[E0080]: evaluation of constant value failed --> fail/interface/trait/missing_field.rs:11:8 | @@ -982,3 +902,83 @@ error[E0080]: evaluation of constant value failed | ^^ referenced constant has errors | = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::const_concat` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::assert_subtype` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: any use of this value will cause an error + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #71800 + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0080]: evaluation of constant value failed + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ referenced constant has errors + | + = note: this error originates in the macro `$crate::format_type` (in Nightly builds, run with -Z macro-backtrace for more info)