Skip to content

Commit

Permalink
Tweak misleading comment
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors authored Feb 2, 2023
1 parent 64f5293 commit 745d60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/print/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ pub trait PrettyPrinter<'tcx>:
match self.tcx().def_kind(parent) {
DefKind::TyAlias | DefKind::AssocTy => {
// NOTE: I know we should check for NO_QUERIES here, but it's alright.
// `type_of` on a TAIT should never cause a cycle.
// `type_of` on a type alias or assoc type should never cause a cycle.
if let ty::Alias(ty::Opaque, ty::AliasTy { def_id: d, .. }) =
*self.tcx().type_of(parent).kind()
{
Expand Down

0 comments on commit 745d60c

Please sign in to comment.