Skip to content

Commit fdbe4ce

Browse files
committed
Add docstring
1 parent 5e23cc4 commit fdbe4ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_resolve/src/late.rs

+2
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ struct DiagnosticMetadata<'ast> {
385385
/// Used to detect possible `if let` written without `let` and to provide structured suggestion.
386386
in_if_condition: Option<&'ast Expr>,
387387

388+
/// If we are currently in a trait object definition. Used to point at the bounds when
389+
/// encountering a struct or enum.
388390
current_trait_object: Option<&'ast [ast::GenericBound]>,
389391

390392
/// Given `where <T as Bar>::Baz: String`, suggest `where T: Bar<Baz = String>`.

0 commit comments

Comments
 (0)