about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorflip1995 <uwdkn@student.kit.edu>2018-04-17 15:33:39 +0200
committerflip1995 <uwdkn@student.kit.edu>2018-05-02 12:05:13 +0200
commit121abd0599f6fd056dca84fe1df724fb7822b355 (patch)
treeac94e33099b35abc0bd5e7302419c4f2391793cd /src/libsyntax/print
parent24a6284fcd1d40c0d8f8b58d29a672ec78cfa94b (diff)
downloadrust-121abd0599f6fd056dca84fe1df724fb7822b355.tar.gz
rust-121abd0599f6fd056dca84fe1df724fb7822b355.zip
make it compile again
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 96f7caf165c..f78e3f3084b 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -719,12 +719,12 @@ pub trait PrintState<'a> {
             if i > 0 {
                 self.writer().word("::")?
             }
-            if segment.identifier.name != keywords::CrateRoot.name() &&
-               segment.identifier.name != keywords::DollarCrate.name()
+            if segment.ident.name != keywords::CrateRoot.name() &&
+               segment.ident.name != keywords::DollarCrate.name()
             {
-                self.writer().word(&segment.identifier.name.as_str())?;
-            } else if segment.identifier.name == keywords::DollarCrate.name() {
-                self.print_dollar_crate(segment.identifier.ctxt)?;
+                self.writer().word(&segment.ident.name.as_str())?;
+            } else if segment.ident.name == keywords::DollarCrate.name() {
+                self.print_dollar_crate(segment.ident.span.ctxt())?;
             }
         }
         Ok(())
@@ -773,15 +773,15 @@ pub trait PrintState<'a> {
     fn print_meta_item(&mut self, item: &ast::MetaItem) -> io::Result<()> {
         self.ibox(INDENT_UNIT)?;
         match item.node {
-            ast::MetaItemKind::Word => self.print_attribute_path(&item.name)?,
+            ast::MetaItemKind::Word => self.print_attribute_path(&item.ident)?,
             ast::MetaItemKind::NameValue(ref value) => {
-                self.print_attribute_path(&item.name)?;
+                self.print_attribute_path(&item.ident)?;
                 self.writer().space()?;
                 self.word_space("=")?;
                 self.print_literal(value)?;
             }
             ast::MetaItemKind::List(ref items) => {
-                self.print_attribute_path(&item.name)?;
+                self.print_attribute_path(&item.ident)?;
                 self.popen()?;
                 self.commasep(Consistent,
                               &items[..],