We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e23cc4 commit fdbe4ceCopy full SHA for fdbe4ce
compiler/rustc_resolve/src/late.rs
@@ -385,6 +385,8 @@ struct DiagnosticMetadata<'ast> {
385
/// Used to detect possible `if let` written without `let` and to provide structured suggestion.
386
in_if_condition: Option<&'ast Expr>,
387
388
+ /// If we are currently in a trait object definition. Used to point at the bounds when
389
+ /// encountering a struct or enum.
390
current_trait_object: Option<&'ast [ast::GenericBound]>,
391
392
/// Given `where <T as Bar>::Baz: String`, suggest `where T: Bar<Baz = String>`.
0 commit comments