Skip to content

Commit bfef274

Browse files
committed
---
yaml --- r: 102557 b: refs/heads/auto c: e0c1707 h: refs/heads/master i: 102555: 9877894 v: v3
1 parent 0850ec4 commit bfef274

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: f502576fc7a97825ee90b01c724b63a4bd4c85aa
16+
refs/heads/auto: e0c1707560d02bb5805b33cb17e8abfc339eb16b
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/metadata/cstore.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,7 @@ impl CStore {
215215
debug!(" hash[{}]: {}", x.name, x.hash);
216216
}
217217

218-
let mut hashes = ~[];
219-
for ch in result.move_iter() {
220-
let crate_hash {
221-
hash,
222-
..
223-
} = ch;
224-
hashes.push(hash)
225-
}
226-
hashes
218+
result.move_iter().map(|crate_hash { hash, ..}| hash).collect()
227219
}
228220
}
229221

branches/auto/src/librustdoc/clean.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -878,16 +878,13 @@ fn path_to_str(p: &ast::Path) -> ~str {
878878

879879
let mut s = ~"";
880880
let mut first = true;
881-
for i in p.segments.iter().map(|x| {
882-
let string = token::get_ident(x.identifier.name);
883-
string.get().to_str()
884-
}) {
881+
for i in p.segments.iter().map(|x| token::get_ident(x.identifier.name)) {
885882
if !first || p.global {
886883
s.push_str("::");
887884
} else {
888885
first = false;
889886
}
890-
s.push_str(i);
887+
s.push_str(i.get());
891888
}
892889
s
893890
}

branches/auto/src/libsyntax/parse/token.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -554,13 +554,6 @@ pub struct InternedString {
554554
priv string: RcStr,
555555
}
556556

557-
#[unsafe_destructor]
558-
impl Drop for InternedString {
559-
fn drop(&mut self) {
560-
// No-op just to make this not implicitly copyable.
561-
}
562-
}
563-
564557
impl InternedString {
565558
#[inline]
566559
pub fn new(string: &'static str) -> InternedString {

0 commit comments

Comments
 (0)