about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 32cd45c86cb..3e1a008f6ca 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -4038,12 +4038,12 @@ impl Parser {
                 let stack = &self.sess.included_mod_stack;
                 let mut err = ~"circular modules: ";
                 for p in stack.slice(i, stack.len()).iter() {
-                    do p.with_display_str |s| {
+                    do p.display().with_str |s| {
                         err.push_str(s);
                     }
                     err.push_str(" -> ");
                 }
-                do path.with_display_str |s| {
+                do path.display().with_str |s| {
                     err.push_str(s);
                 }
                 self.span_fatal(id_sp, err);