Remove some unintended changes to imports
This commit is contained in:
parent
2e4a0e37e6
commit
c8457e60e8
4 changed files with 13 additions and 10 deletions
|
@ -8,10 +8,10 @@ use rustc_ast::ast::ParamKindOrd;
|
|||
use rustc_errors::{
|
||||
codes::*, struct_span_code_err, Applicability, Diag, ErrorGuaranteed, MultiSpan,
|
||||
};
|
||||
use rustc_hir as hir;
|
||||
use rustc_hir::def::{DefKind, Res};
|
||||
use rustc_hir::def_id::DefId;
|
||||
use rustc_hir::{self as hir};
|
||||
use rustc_hir::{ConstArgKind, GenericArg};
|
||||
use rustc_hir::GenericArg;
|
||||
use rustc_middle::ty::{
|
||||
self, GenericArgsRef, GenericParamDef, GenericParamDefKind, IsSuggestable, Ty,
|
||||
};
|
||||
|
@ -115,7 +115,7 @@ fn generic_arg_mismatch_err(
|
|||
(GenericArg::Const(cnst), GenericParamDefKind::Type { .. }) => {
|
||||
// FIXME(min_generic_const_args): once ConstArgKind::Path is used for non-params too,
|
||||
// this should match against that instead of ::Anon
|
||||
if let ConstArgKind::Anon(anon) = cnst.kind
|
||||
if let hir::ConstArgKind::Anon(anon) = cnst.kind
|
||||
&& let body = tcx.hir().body(anon.body)
|
||||
&& let rustc_hir::ExprKind::Path(rustc_hir::QPath::Resolved(_, path)) =
|
||||
body.value.kind
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue