Skip to content

Commit c963596

Browse files
committed
Rename "Associated*" to "Assoc*"
modify pretty.rs which recently added "Associated*"
1 parent 46b9ed4 commit c963596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/print/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ pub trait PrettyPrinter<'gcx: 'tcx, 'tcx>:
823823
match self.tcx().def_kind(did) {
824824
| Some(DefKind::Static)
825825
| Some(DefKind::Const)
826-
| Some(DefKind::AssociatedConst) => p!(print_value_path(did, substs)),
826+
| Some(DefKind::AssocConst) => p!(print_value_path(did, substs)),
827827
_ => if did.is_local() {
828828
let span = self.tcx().def_span(did);
829829
if let Ok(snip) = self.tcx().sess.source_map().span_to_snippet(span) {

0 commit comments

Comments
 (0)