diff options
| author | Boxy <supbscripter@gmail.com> | 2023-04-27 07:52:17 +0100 |
|---|---|---|
| committer | Boxy <supbscripter@gmail.com> | 2023-04-27 08:35:19 +0100 |
| commit | 842419712a9ed7be166bfdac2d5588356191dabb (patch) | |
| tree | 0afe598d0f7ac4d14ec023a1235b95e42331a3db /compiler/rustc_lint/src | |
| parent | f04b8fe0af291a444ecfcf774337966a5cc9d7db (diff) | |
| download | rust-842419712a9ed7be166bfdac2d5588356191dabb.tar.gz rust-842419712a9ed7be166bfdac2d5588356191dabb.zip | |
rename `needs_subst` to `has_param`
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/enum_intrinsics_non_enums.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/enum_intrinsics_non_enums.rs b/compiler/rustc_lint/src/enum_intrinsics_non_enums.rs index f1ba192f2bc..2ce28f3a049 100644 --- a/compiler/rustc_lint/src/enum_intrinsics_non_enums.rs +++ b/compiler/rustc_lint/src/enum_intrinsics_non_enums.rs @@ -42,7 +42,7 @@ declare_lint_pass!(EnumIntrinsicsNonEnums => [ENUM_INTRINSICS_NON_ENUMS]); /// Returns `true` if we know for sure that the given type is not an enum. Note that for cases where /// the type is generic, we can't be certain if it will be an enum so we have to assume that it is. fn is_non_enum(t: Ty<'_>) -> bool { - !t.is_enum() && !t.needs_subst() + !t.is_enum() && !t.has_param() } fn enforce_mem_discriminant( |
