Closed
Description
I tried this code:
rust/library/core/src/ptr/mod.rs
Lines 1487 to 1492 in 8cc82ee
I expected to see this happen: tcx.hir().parent_module(raw_const_hir_id)
and tcx.parent(raw_const_def_id).unwrap()
are both the module core::ptr
.
Instead, this happened: tcx.hir().parent_module(raw_const_hir_id)
is core
and tcx.parent(raw_const_def_id).unwrap()
is core::ptr
. I think core::ptr
is correct.
Meta
rustc --version
: HEAD (8cc82ee)