We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc766ef commit 83cdae6Copy full SHA for 83cdae6
src/libsyntax/parse/parser.rs
@@ -340,13 +340,10 @@ pub struct Parser {
340
mod_path_stack: @mut ~[@str],
341
/// Stack of spans of open delimiters. Used for error message.
342
open_braces: @mut ~[Span]
343
+ /// removed empty drop function and added a priv new_field of type std::util::NonCopyable
344
+ priv new_field: util::NonCopyable
345
}
346
-#[unsafe_destructor]
-impl Drop for Parser {
347
- /* do not copy the parser; its state is tied to outside state */
348
- fn drop(&mut self) {}
349
-}
350
351
fn is_plain_ident_or_underscore(t: &token::Token) -> bool {
352
is_plain_ident(t) || *t == token::UNDERSCORE
0 commit comments