Skip to content

Commit e515116

Browse files
authored
Rollup merge of #116695 - fee1-dead-contrib:fix-cmt, r=compiler-errors
Fix a comment
2 parents b3da66d + eae6e02 commit e515116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir_analysis/src/collect/predicates_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
180180
//
181181
// default impl Foo for Bar { .. }
182182
//
183-
// we add a default where clause `Foo: Bar`. We do a similar thing for traits
183+
// we add a default where clause `Bar: Foo`. We do a similar thing for traits
184184
// (see below). Recall that a default impl is not itself an impl, but rather a
185185
// set of defaults that can be incorporated into another impl.
186186
if let Some(trait_ref) = is_default_impl_trait {

0 commit comments

Comments
 (0)