mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 15:41:10 +00:00
terminology: #[feature] *enables* a feature (instead of "declaring" or "activating" it)
This commit is contained in:
parent
1d0dad5eb3
commit
2fd8222bd4
1 changed files with 1 additions and 5 deletions
|
@ -111,11 +111,7 @@ fn check_int_ty_and_feature(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
|
|||
let expr_ty = cx.typeck_results().expr_ty(expr);
|
||||
match expr_ty.peel_refs().kind() {
|
||||
ty::Uint(_) => true,
|
||||
ty::Int(_) => cx
|
||||
.tcx
|
||||
.features()
|
||||
.declared_features
|
||||
.contains(&Symbol::intern("int_roundings")),
|
||||
ty::Int(_) => cx.tcx.features().enabled(Symbol::intern("int_roundings")),
|
||||
|
||||
_ => false,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue