Skip to content

Commit f8bc0c1

Browse files
committed
---
yaml --- r: 134163 b: refs/heads/master c: 3e8ad53 h: refs/heads/master i: 134161: 28a24e7 134159: 1893d48 v: v3
1 parent 393fc38 commit f8bc0c1

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 80014b28566ac5af5ee9093ee90b07c588514641
2+
refs/heads/master: 3e8ad539397743045cb0b4337afc79c37b77ca65
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 437179ed8bf7f7672f84b19265df1ce569e70490
55
refs/heads/try: 777654cfccbfa39bc7f671d8e9629018ed8ca12d

trunk/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)