diff options
| author | Miguel Guarniz <mi9uel9@gmail.com> | 2022-05-04 16:43:36 -0400 |
|---|---|---|
| committer | Miguel Guarniz <mi9uel9@gmail.com> | 2022-05-13 11:46:05 -0400 |
| commit | eea16de9f70738e1ee19d6d73f0c74bc746a9633 (patch) | |
| tree | 100c4386eb8c66285db858c27176d9f873a09c27 /compiler/rustc_passes/src/check_const.rs | |
| parent | 90685c633357054dac6a91ecd0c14cbfc7a726a7 (diff) | |
| download | rust-eea16de9f70738e1ee19d6d73f0c74bc746a9633.tar.gz rust-eea16de9f70738e1ee19d6d73f0c74bc746a9633.zip | |
replace hir().def_kind for def_kind query in rustc_passes
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
Diffstat (limited to 'compiler/rustc_passes/src/check_const.rs')
| -rw-r--r-- | compiler/rustc_passes/src/check_const.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_const.rs b/compiler/rustc_passes/src/check_const.rs index 7567fb075cc..0e4df831f3f 100644 --- a/compiler/rustc_passes/src/check_const.rs +++ b/compiler/rustc_passes/src/check_const.rs @@ -88,7 +88,7 @@ pub(crate) fn provide(providers: &mut Providers) { fn check_item<'tcx>(tcx: TyCtxt<'tcx>, id: hir::ItemId) { let _: Option<_> = try { - if !matches!(tcx.hir().def_kind(id.def_id), DefKind::Impl) { + if !matches!(tcx.def_kind(id.def_id), DefKind::Impl) { None? } |
