Skip to content

Commit 40f8094

Browse files
committed
add some debug! into lowering
1 parent d0a174d commit 40f8094

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustc/hir/lowering.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,6 +1866,10 @@ impl<'a> LoweringContext<'a> {
18661866
} else {
18671867
self.lower_node_id(segment.id)
18681868
};
1869+
debug!(
1870+
"lower_path_segment: ident={:?} original-id={:?} new-id={:?}",
1871+
segment.ident, segment.id, id,
1872+
);
18691873

18701874
hir::PathSegment::new(
18711875
segment.ident,
@@ -2955,6 +2959,9 @@ impl<'a> LoweringContext<'a> {
29552959
name: &mut Name,
29562960
attrs: &hir::HirVec<Attribute>,
29572961
) -> hir::ItemKind {
2962+
debug!("lower_use_tree(tree={:?})", tree);
2963+
debug!("lower_use_tree: vis = {:?}", vis);
2964+
29582965
let path = &tree.prefix;
29592966
let segments = prefix
29602967
.segments
@@ -4540,6 +4547,7 @@ impl<'a> LoweringContext<'a> {
45404547
VisibilityKind::Public => hir::VisibilityKind::Public,
45414548
VisibilityKind::Crate(sugar) => hir::VisibilityKind::Crate(sugar),
45424549
VisibilityKind::Restricted { ref path, id } => {
4550+
debug!("lower_visibility: restricted path id = {:?}", id);
45434551
let lowered_id = if let Some(owner) = explicit_owner {
45444552
self.lower_node_id_with_owner(id, owner)
45454553
} else {

0 commit comments

Comments
 (0)