Skip to content

Commit 745d60c

Browse files
Tweak misleading comment
1 parent 64f5293 commit 745d60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/print/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ pub trait PrettyPrinter<'tcx>:
751751
match self.tcx().def_kind(parent) {
752752
DefKind::TyAlias | DefKind::AssocTy => {
753753
// NOTE: I know we should check for NO_QUERIES here, but it's alright.
754-
// `type_of` on a TAIT should never cause a cycle.
754+
// `type_of` on a type alias or assoc type should never cause a cycle.
755755
if let ty::Alias(ty::Opaque, ty::AliasTy { def_id: d, .. }) =
756756
*self.tcx().type_of(parent).kind()
757757
{

0 commit comments

Comments
 (0)