Further fixes.

This commit is contained in:
Kyle Simpson 2018-08-21 01:50:20 +01:00
parent 54b096a799
commit 3536359ad8
2 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ impl<'a, 'tcx> Visitor<'tcx> for EmbargoVisitor<'a, 'tcx> {
}
fn visit_item(&mut self, item: &'tcx hir::Item) {
debug!("Walked item {:?}", item);
debug!("visit_item({:?})", item);
let inherited_item_level = match item.node {
// Impls inherit level from their types and traits
hir::ItemKind::Impl(..) => {
@ -184,7 +184,7 @@ impl<'a, 'tcx> Visitor<'tcx> for EmbargoVisitor<'a, 'tcx> {
// Update level of the item itself
let item_level = self.update(item.id, inherited_item_level);
debug!("Its privacy is believed to be: {:?}", item_level);
debug!("item_level = {:?}", item_level);
// Update levels of nested things
match item.node {

View File

@ -16,7 +16,7 @@
// function which references another private item, `foo` (in this case)
// wouldn't be codegenned until main.rs used `bar`, as with impl Trait
// it is not cast to `fn()` automatically to satisfy e.g.
// `fn foo() -> fn() { ... }`.
// `fn foo() -> fn() { ... }`.
extern crate lib;