Skip to content

Commit 2fd8222

Browse files
committed
terminology: #[feature] *enables* a feature (instead of "declaring" or "activating" it)
1 parent 1d0dad5 commit 2fd8222

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clippy_lints/src/manual_div_ceil.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,7 @@ fn check_int_ty_and_feature(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
111111
let expr_ty = cx.typeck_results().expr_ty(expr);
112112
match expr_ty.peel_refs().kind() {
113113
ty::Uint(_) => true,
114-
ty::Int(_) => cx
115-
.tcx
116-
.features()
117-
.declared_features
118-
.contains(&Symbol::intern("int_roundings")),
114+
ty::Int(_) => cx.tcx.features().enabled(Symbol::intern("int_roundings")),
119115

120116
_ => false,
121117
}

0 commit comments

Comments
 (0)