From a5be12ce7e88c1d28de1c98215991127d1e765f0 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 25 Apr 2014 01:08:02 -0700 Subject: Replace most ~exprs with 'box'. #11779 --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 5d8443b64d5..6989ceb0d79 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -751,7 +751,7 @@ impl<'a> Parser<'a> { self.last_span = self.span; // Stash token for error recovery (sometimes; clone is not necessarily cheap). self.last_token = if is_ident_or_path(&self.token) { - Some(~self.token.clone()) + Some(box self.token.clone()) } else { None }; -- cgit 1.4.1-3-g733a5