Rename "Associated*" to "Assoc*"
modify pretty.rs which recently added "Associated*"
This commit is contained in:
parent
46b9ed4fa1
commit
c963596c03
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue