Skip to content

Commit 3536359

Browse files
committed
Further fixes.
1 parent 54b096a commit 3536359

File tree

2 files changed

+3
-3
lines changed
  • src
    • librustc_privacy
    • test/run-pass/issue-50865-private-impl-trait

2 files changed

+3
-3
lines changed

src/librustc_privacy/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl<'a, 'tcx> Visitor<'tcx> for EmbargoVisitor<'a, 'tcx> {
150150
}
151151

152152
fn visit_item(&mut self, item: &'tcx hir::Item) {
153-
debug!("Walked item {:?}", item);
153+
debug!("visit_item({:?})", item);
154154
let inherited_item_level = match item.node {
155155
// Impls inherit level from their types and traits
156156
hir::ItemKind::Impl(..) => {
@@ -184,7 +184,7 @@ impl<'a, 'tcx> Visitor<'tcx> for EmbargoVisitor<'a, 'tcx> {
184184
// Update level of the item itself
185185
let item_level = self.update(item.id, inherited_item_level);
186186

187-
debug!("Its privacy is believed to be: {:?}", item_level);
187+
debug!("item_level = {:?}", item_level);
188188

189189
// Update levels of nested things
190190
match item.node {

src/test/run-pass/issue-50865-private-impl-trait/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// function which references another private item, `foo` (in this case)
1717
// wouldn't be codegenned until main.rs used `bar`, as with impl Trait
1818
// it is not cast to `fn()` automatically to satisfy e.g.
19-
// `fn foo() -> fn() { ... }`.
19+
// `fn foo() -> fn() { ... }`.
2020

2121
extern crate lib;
2222

0 commit comments

Comments
 (0)