From c01a97b7a981fb5ae008be7e06df4bf6a85eba4f Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Sun, 6 Oct 2013 18:51:49 -0700 Subject: 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| { ... } --- src/libsyntax/parse/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse/parser.rs') 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); -- cgit 1.4.1-3-g733a5