Skip to content

Commit

Permalink
Replaced empty destructors with NonCopyable #7427
Browse files Browse the repository at this point in the history
closes #7427
  • Loading branch information
reedlepee123 committed Oct 29, 2013
1 parent fc766ef commit 83cdae6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/libsyntax/parse/parser.rs
Expand Up @@ -340,13 +340,10 @@ pub struct Parser {
mod_path_stack: @mut ~[@str],
/// Stack of spans of open delimiters. Used for error message.
open_braces: @mut ~[Span]
/// removed empty drop function and added a priv new_field of type std::util::NonCopyable
priv new_field: util::NonCopyable
}

#[unsafe_destructor]
impl Drop for Parser {
/* do not copy the parser; its state is tied to outside state */
fn drop(&mut self) {}
}

fn is_plain_ident_or_underscore(t: &token::Token) -> bool {
is_plain_ident(t) || *t == token::UNDERSCORE
Expand Down

0 comments on commit 83cdae6

Please sign in to comment.