about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2014-01-26 11:42:46 +0100
committerFlavio Percoco <flaper87@gmail.com>2014-02-04 00:15:27 +0100
commitc6b1bce96f25e785d22e976d1cc41cabdae5ea73 (patch)
tree7becccf629cd6737546e49325a6a8c8a4fd61c50 /src/libsyntax/parse
parentd42521aa92006a3378c535adec80ae2257bff083 (diff)
downloadrust-c6b1bce96f25e785d22e976d1cc41cabdae5ea73.tar.gz
rust-c6b1bce96f25e785d22e976d1cc41cabdae5ea73.zip
Replace NonCopyable usage with NoPod
cc #10834
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index dd7cc3a2314..b80c222d4dc 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -81,6 +81,7 @@ use opt_vec::OptVec;
 
 use std::cell::Cell;
 use std::hashmap::HashSet;
+use std::kinds::marker;
 use std::util;
 use std::vec;
 
@@ -317,7 +318,7 @@ pub fn Parser(sess: @ParseSess, cfg: ast::CrateConfig, rdr: @Reader)
         obsolete_set: HashSet::new(),
         mod_path_stack: ~[],
         open_braces: ~[],
-        non_copyable: util::NonCopyable
+        nopod: marker::NoPod
     }
 }
 
@@ -348,7 +349,7 @@ pub struct Parser {
     /// Stack of spans of open delimiters. Used for error message.
     open_braces: ~[Span],
     /* do not copy the parser; its state is tied to outside state */
-    priv non_copyable: util::NonCopyable
+    priv nopod: marker::NoPod
 }
 
 fn is_plain_ident_or_underscore(t: &token::Token) -> bool {