Skip to content

Commit f381a3b

Browse files
committed
---
yaml --- r: 155383 b: refs/heads/try2 c: 3e8ad53 h: refs/heads/master i: 155381: 48fc281 155379: bd1532f 155375: 3f1a507 v: v3
1 parent cbc3c16 commit f381a3b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 80014b28566ac5af5ee9093ee90b07c588514641
8+
refs/heads/try2: 3e8ad539397743045cb0b4337afc79c37b77ca65
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,12 +2671,7 @@ fn exported_name(ccx: &CrateContext, id: ast::NodeId,
26712671
}
26722672

26732673
fn contains_null(s: &str) -> bool {
2674-
for b in s.bytes() {
2675-
if b == 0 {
2676-
return true
2677-
}
2678-
}
2679-
false
2674+
s.bytes().any(|b| b == 0)
26802675
}
26812676

26822677
pub fn get_item_val(ccx: &CrateContext, id: ast::NodeId) -> ValueRef {

0 commit comments

Comments
 (0)