Skip to content

Commit b6a6b7a

Browse files
committed
---
yaml --- r: 277275 b: refs/heads/try c: ce99a5e h: refs/heads/master i: 277273: aa834a5 277271: 4c0f260
1 parent c897f80 commit b6a6b7a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: deaa2fe7536e395a890f910019a820b36f2cd992
4+
refs/heads/try: ce99a5e5d8ead9140bb9b48c01f1a200950f8ea3
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_driver/target_features.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ pub fn add_configuration(cfg: &mut ast::CrateConfig, sess: &Session) {
5454

5555
let tf = InternedString::new("target_feature");
5656
for feat in whitelist {
57+
assert_eq!(feat.chars().last(), Some('\0'));
5758
if unsafe { LLVMRustHasFeature(target_machine, feat.as_ptr() as *const c_char) } {
5859
cfg.push(attr::mk_name_value_item_str(tf.clone(), intern(&feat[..feat.len()-1])))
5960
}

0 commit comments

Comments
 (0)