diff options
| author | bors <bors@rust-lang.org> | 2013-09-17 07:15:42 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-17 07:15:42 -0700 |
| commit | 29cdf58861b1054c899c911343ccd8b1af28151a (patch) | |
| tree | e468dd34991279fcc562dda8af85a05a289c56ef /src/libsyntax/parse | |
| parent | f45c6406bcd5b9cea75203031f91653ed98d8865 (diff) | |
| parent | 4e161a4d401224507513bfbf33b22f0b72f8ba81 (diff) | |
| download | rust-29cdf58861b1054c899c911343ccd8b1af28151a.tar.gz rust-29cdf58861b1054c899c911343ccd8b1af28151a.zip | |
auto merge of #9244 : thestinger/rust/drop, r=catamorphism
This doesn't close any bugs as the goal is to convert the parameter to by-value, but this is a step towards being able to make guarantees about `&T` pointers (where T is Freeze) to LLVM.
Diffstat (limited to 'src/libsyntax/parse')
| -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 f05452bb6c5..4aad5c24d0f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -341,7 +341,7 @@ pub struct Parser { #[unsafe_destructor] impl Drop for Parser { /* do not copy the parser; its state is tied to outside state */ - fn drop(&self) {} + fn drop(&mut self) {} } fn is_plain_ident_or_underscore(t: &token::Token) -> bool { |
