Skip to content

Commit d31c5e9

Browse files
committed
apply review feedback
1 parent a1374f5 commit d31c5e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gcc_util.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ pub(crate) fn global_gcc_features(sess: &Session, diagnostics: bool) -> Vec<Stri
9595
sess.dcx().emit_warn(unknown_feature);
9696
}
9797
Some((_, stability, _)) => {
98-
if let Err(reason) = stability.compute(&sess.target).allow_toggle() {
98+
if let Err(reason) =
99+
stability.compute_toggleability(&sess.target).allow_toggle()
100+
{
99101
sess.dcx().emit_warn(ForbiddenCTargetFeature { feature, reason });
100102
} else if stability.requires_nightly().is_some() {
101103
// An unstable feature. Warn about using it. (It makes little sense

0 commit comments

Comments
 (0)