diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_map.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index 90c23a54426..5db353b7262 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -68,7 +68,7 @@ impl<'a> Iterator<PathElem> for LinkedPath<'a> { #[deriving(Clone)] pub struct Values<'a, T>(slice::Items<'a, T>); -impl<'a, T: Pod> Iterator<T> for Values<'a, T> { +impl<'a, T: Copy> Iterator<T> for Values<'a, T> { fn next(&mut self) -> Option<T> { let &Values(ref mut items) = self; items.next().map(|&x| x) diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d6ccea7331d..0ae43db8315 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -306,7 +306,7 @@ pub fn Parser<'a>(sess: &'a ParseSess, cfg: ast::CrateConfig, rdr: ~Reader:) obsolete_set: HashSet::new(), mod_path_stack: Vec::new(), open_braces: Vec::new(), - nopod: marker::NoPod + nocopy: marker::NoCopy } } @@ -337,7 +337,7 @@ pub struct Parser<'a> { /// Stack of spans of open delimiters. Used for error message. open_braces: Vec<Span> , /* do not copy the parser; its state is tied to outside state */ - priv nopod: marker::NoPod + priv nocopy: marker::NoCopy } fn is_plain_ident_or_underscore(t: &token::Token) -> bool { |
