Skip to content

Commit

Permalink
Rename "Associated*" to "Assoc*"
Browse files Browse the repository at this point in the history
modify pretty.rs which recently added "Associated*"
  • Loading branch information
agnxy committed May 26, 2019
1 parent 46b9ed4 commit c963596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/ty/print/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ pub trait PrettyPrinter<'gcx: 'tcx, 'tcx>:
match self.tcx().def_kind(did) {
| Some(DefKind::Static)
| Some(DefKind::Const)
| Some(DefKind::AssociatedConst) => p!(print_value_path(did, substs)),
| Some(DefKind::AssocConst) => p!(print_value_path(did, substs)),
_ => if did.is_local() {
let span = self.tcx().def_span(did);
if let Ok(snip) = self.tcx().sess.source_map().span_to_snippet(span) {
Expand Down

0 comments on commit c963596

Please sign in to comment.