Skip to content

Commit f6720e2

Browse files
nikomatsakispietroalbini
authored andcommitted
add some debug! into lowering
1 parent 069ce5f commit f6720e2

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
@@ -1867,6 +1867,10 @@ impl<'a> LoweringContext<'a> {
18671867
} else {
18681868
self.lower_node_id(segment.id)
18691869
};
1870+
debug!(
1871+
"lower_path_segment: ident={:?} original-id={:?} new-id={:?}",
1872+
segment.ident, segment.id, id,
1873+
);
18701874

18711875
hir::PathSegment::new(
18721876
segment.ident,
@@ -2953,6 +2957,9 @@ impl<'a> LoweringContext<'a> {
29532957
name: &mut Name,
29542958
attrs: &hir::HirVec<Attribute>,
29552959
) -> hir::ItemKind {
2960+
debug!("lower_use_tree(tree={:?})", tree);
2961+
debug!("lower_use_tree: vis = {:?}", vis);
2962+
29562963
let path = &tree.prefix;
29572964
let segments = prefix
29582965
.segments
@@ -4538,6 +4545,7 @@ impl<'a> LoweringContext<'a> {
45384545
VisibilityKind::Public => hir::VisibilityKind::Public,
45394546
VisibilityKind::Crate(sugar) => hir::VisibilityKind::Crate(sugar),
45404547
VisibilityKind::Restricted { ref path, id } => {
4548+
debug!("lower_visibility: restricted path id = {:?}", id);
45414549
let lowered_id = if let Some(owner) = explicit_owner {
45424550
self.lower_node_id_with_owner(id, owner)
45434551
} else {

0 commit comments

Comments
 (0)