]> git.lizzy.rs Git - rust.git/commitdiff
Rename "Associated*" to "Assoc*"
authorAndrew Xu <andrewxuyuan@gmail.com>
Sun, 26 May 2019 03:23:50 +0000 (11:23 +0800)
committerAndrew Xu <andrewxuyuan@gmail.com>
Sun, 26 May 2019 09:49:02 +0000 (17:49 +0800)
modify pretty.rs which recently added "Associated*"

src/librustc/ty/print/pretty.rs

index 67265633318440182714337883b35b3891ba8b88..4b4dd5d88d93add28055afb84bd9b0a7272af36a 100644 (file)
@@ -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) {