We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d50a8 commit 3f7aeb3Copy full SHA for 3f7aeb3
compiler/rustc_middle/src/ty/print/pretty.rs
@@ -704,7 +704,11 @@ pub trait PrettyPrinter<'tcx>:
704
ty::BoundTyKind::Anon(bv) => {
705
self.pretty_print_bound_var(debruijn, ty::BoundVar::from_u32(bv))?
706
}
707
- ty::BoundTyKind::Param(_, s) => p!(write("{}", s)),
+ ty::BoundTyKind::Param(_, s) => match self.should_print_verbose() {
708
+ true if debruijn == ty::INNERMOST => p!(write("^{}", s)),
709
+ true => p!(write("^{}_{}", debruijn.index(), s)),
710
+ false => p!(write("{}", s)),
711
+ },
712
},
713
ty::Adt(def, substs) => {
714
p!(print_def_path(def.did(), substs));
0 commit comments