We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fc5d27 commit f942c28Copy full SHA for f942c28
src/librustc_driver/target_features.rs
@@ -49,7 +49,7 @@ pub fn add_configuration(cfg: &mut ast::CrateConfig, sess: &Session) {
49
let tf = InternedString::new("target_feature");
50
for feat in whitelist {
51
if unsafe { LLVMRustHasFeature(target_machine, feat.as_ptr() as *const c_char) } {
52
- cfg.push(attr::mk_name_value_item_str(tf.clone(), intern(feat)))
+ cfg.push(attr::mk_name_value_item_str(tf.clone(), intern(&feat[..feat.len()-1])))
53
}
54
55
0 commit comments