diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-18 14:31:55 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-18 14:31:55 -0800 |
| commit | c07ec507e26ed5ecde63bf7138b09592d9001fb2 (patch) | |
| tree | 25b5b50cf3c9a1b73455e3cc629acd6abb3be990 /src/libsyntax/ext/base.rs | |
| parent | c5fddd81ab47ddbfd5525210fb1536472de399b8 (diff) | |
| parent | d2f54e663400b98c368710669ad9a966fa950803 (diff) | |
| download | rust-c07ec507e26ed5ecde63bf7138b09592d9001fb2.tar.gz rust-c07ec507e26ed5ecde63bf7138b09592d9001fb2.zip | |
rollup merge of #22287: Ryman/purge_carthographers
This overlaps with #22276 (I left make check running overnight) but covers a number of additional cases and has a few rewrites where the clones are not even necessary. This also implements `RandomAccessIterator` for `iter::Cloned` cc @steveklabnik, you may want to glance at this before #22281 gets the bors treatment
Diffstat (limited to 'src/libsyntax/ext/base.rs')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 8800ffd1e9b..d4ccabbd63b 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -640,7 +640,7 @@ impl<'a> ExtCtxt<'a> { pub fn mod_path(&self) -> Vec<ast::Ident> { let mut v = Vec::new(); v.push(token::str_to_ident(&self.ecfg.crate_name[])); - v.extend(self.mod_path.iter().map(|a| *a)); + v.extend(self.mod_path.iter().cloned()); return v; } pub fn bt_push(&mut self, ei: ExpnInfo) { |
