Skip to content

Commit f0bcdea

Browse files
committed
Hide implicit target features from diagnostics when possible
1 parent 2e1d51d commit f0bcdea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
7575
let function_features = codegen_fn_attrs
7676
.target_features
7777
.iter()
78-
.map(|features| features.as_str())
78+
.map(|features| features.name.as_str())
7979
.collect::<Vec<&str>>();
8080

8181
if let Some(features) = check_tied_features(

0 commit comments

Comments
 (0)