about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2013-10-06 18:51:49 -0700
committerKevin Ballard <kevin@sb.org>2013-10-15 22:19:53 -0700
commitc01a97b7a981fb5ae008be7e06df4bf6a85eba4f (patch)
treec7cba306ad49ecb103ac9674dfeb71025746a7c2 /src/libsyntax
parentd6d9b926836b1f1c2b8b3fe4ab35dc63bec7ffcd (diff)
downloadrust-c01a97b7a981fb5ae008be7e06df4bf6a85eba4f.tar.gz
rust-c01a97b7a981fb5ae008be7e06df4bf6a85eba4f.zip
path2: Remove .with_display_str and friends
Rewrite these methods as methods on Display and FilenameDisplay. This
turns

  do path.with_display_str |s| { ... }

into

  do path.display().with_str |s| { ... }
Diffstat (limited to 'src/libsyntax')
-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);