We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0422745 commit 0ffa2daCopy full SHA for 0ffa2da
compiler/rustc_typeck/src/collect/type_of.rs
@@ -42,7 +42,7 @@ pub(super) fn opt_const_param_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<
42
Node::Ty(hir_ty @ Ty { kind: TyKind::Path(QPath::TypeRelative(_, segment)), .. }) => {
43
// Walk up from the parent_node to find an item so that
44
// we can resolve the relative path to an actual associated type.
45
- // For the code example above this item would be the Foo trait.
+ // For the code example above, this item would be the Foo trait.
46
let item_hir_id = tcx
47
.hir()
48
.parent_iter(hir_id)
0 commit comments