Treat safe target_feature functions as unsafe by default
This commit is contained in:
@@ -2424,6 +2424,10 @@ impl<'a> State<'a> {
|
||||
self.print_constness(header.constness);
|
||||
|
||||
let safety = match header.safety {
|
||||
hir::HeaderSafety::SafeTargetFeatures => {
|
||||
self.word_nbsp("#[target_feature]");
|
||||
hir::Safety::Safe
|
||||
}
|
||||
hir::HeaderSafety::Normal(safety) => safety,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user