diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-04-25 01:08:02 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-05-02 23:00:58 -0700 |
| commit | a5be12ce7e88c1d28de1c98215991127d1e765f0 (patch) | |
| tree | 30f160f43a354c79a6795c638c3302d234ec0b52 /src/libsyntax/parse/parser.rs | |
| parent | a67307e2a56b0d6bc57c3dc18f58e79744e98434 (diff) | |
| download | rust-a5be12ce7e88c1d28de1c98215991127d1e765f0.tar.gz rust-a5be12ce7e88c1d28de1c98215991127d1e765f0.zip | |
Replace most ~exprs with 'box'. #11779
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 }; |
