refactor(rustc_middle): Substs -> GenericArg
This commit is contained in:
parent
660ef4ffe8
commit
fdb2e363d3
94 changed files with 307 additions and 307 deletions
|
|
@ -51,8 +51,8 @@ impl LateLintPass<'_> for ZeroSizedMapValues {
|
|||
if !in_trait_impl(cx, hir_ty.hir_id);
|
||||
let ty = ty_from_hir_ty(cx, hir_ty);
|
||||
if is_type_diagnostic_item(cx, ty, sym::HashMap) || is_type_diagnostic_item(cx, ty, sym::BTreeMap);
|
||||
if let Adt(_, substs) = ty.kind();
|
||||
let ty = substs.type_at(1);
|
||||
if let Adt(_, args) = ty.kind();
|
||||
let ty = args.type_at(1);
|
||||
// Fixes https://github.com/rust-lang/rust-clippy/issues/7447 because of
|
||||
// https://github.com/rust-lang/rust/blob/master/compiler/rustc_middle/src/ty/sty.rs#L968
|
||||
if !ty.has_escaping_bound_vars();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue