From: Andrew Xu Date: Sun, 26 May 2019 03:23:50 +0000 (+0800) Subject: Rename "Associated*" to "Assoc*" X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c963596c03e96f96dead6c545011106f59ae1933;p=rust.git Rename "Associated*" to "Assoc*" modify pretty.rs which recently added "Associated*" --- diff --git a/src/librustc/ty/print/pretty.rs b/src/librustc/ty/print/pretty.rs index 67265633318..4b4dd5d88d9 100644 --- a/src/librustc/ty/print/pretty.rs +++ b/src/librustc/ty/print/pretty.rs @@ -823,7 +823,7 @@ fn pretty_print_const( 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) {