File tree 1 file changed +4
-7
lines changed 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,8 @@ pub fn Parser(sess: @mut ParseSess,
309
309
quote_depth : @mut 0 ,
310
310
obsolete_set : @mut HashSet :: new ( ) ,
311
311
mod_path_stack : @mut ~[ ] ,
312
- open_braces : @mut ~[ ]
312
+ open_braces : @mut ~[ ] ,
313
+ non_copyable : util:: NonCopyable
313
314
}
314
315
}
315
316
@@ -339,13 +340,9 @@ pub struct Parser {
339
340
/// Used to determine the path to externally loaded source files
340
341
mod_path_stack : @mut ~[ @str ] ,
341
342
/// Stack of spans of open delimiters. Used for error message.
342
- open_braces : @mut ~[ Span ]
343
- }
344
-
345
- #[ unsafe_destructor]
346
- impl Drop for Parser {
343
+ open_braces : @mut ~[ Span ] ,
347
344
/* do not copy the parser; its state is tied to outside state */
348
- fn drop ( & mut self ) { }
345
+ priv non_copyable : util :: NonCopyable
349
346
}
350
347
351
348
fn is_plain_ident_or_underscore ( t : & token:: Token ) -> bool {
You can’t perform that action at this time.
0 commit comments