We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f5293 commit 745d60cCopy full SHA for 745d60c
compiler/rustc_middle/src/ty/print/pretty.rs
@@ -751,7 +751,7 @@ pub trait PrettyPrinter<'tcx>:
751
match self.tcx().def_kind(parent) {
752
DefKind::TyAlias | DefKind::AssocTy => {
753
// 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.
+ // `type_of` on a type alias or assoc type should never cause a cycle.
755
if let ty::Alias(ty::Opaque, ty::AliasTy { def_id: d, .. }) =
756
*self.tcx().type_of(parent).kind()
757
{
0 commit comments