diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-11-12 15:51:51 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-11-17 11:26:48 -0800 |
| commit | 7213de1c49e448c7c6ad2d30dc3e6b3a13e090df (patch) | |
| tree | 9133e9f7b6f954432eddd947cb74248a1751ea36 /src/libsyntax/ext | |
| parent | 80a2867ea736007397aa2fbaa0e4c539c80e162c (diff) | |
| download | rust-7213de1c49e448c7c6ad2d30dc3e6b3a13e090df.tar.gz rust-7213de1c49e448c7c6ad2d30dc3e6b3a13e090df.zip | |
Fallout from deprecation
This commit handles the fallout from deprecating `_with` and `_equiv` methods.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/format.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/format.rs b/src/libsyntax/ext/format.rs index 9a9724de8fb..f1b92b4d6bc 100644 --- a/src/libsyntax/ext/format.rs +++ b/src/libsyntax/ext/format.rs @@ -144,7 +144,7 @@ fn parse_args(ecx: &mut ExtCtxt, sp: Span, allow_method: bool, let name = interned_name.get(); p.expect(&token::Eq); let e = p.parse_expr(); - match names.find_equiv(name) { + match names.get(name) { None => {} Some(prev) => { ecx.span_err(e.span, @@ -366,7 +366,7 @@ impl<'a, 'b> Context<'a, 'b> { self.ecx.expr_path(path) } parse::CountIsName(n) => { - let i = match self.name_positions.find_equiv(n) { + let i = match self.name_positions.get(n) { Some(&i) => i, None => 0, // error already emitted elsewhere }; @@ -410,7 +410,7 @@ impl<'a, 'b> Context<'a, 'b> { // Named arguments are converted to positional arguments at // the end of the list of arguments parse::ArgumentNamed(n) => { - let i = match self.name_positions.find_equiv(n) { + let i = match self.name_positions.get(n) { Some(&i) => i, None => 0, // error already emitted elsewhere }; |
