rustdoc: Rename expect_real
to expect_def_id
, remove Item::is_fake
This commit is contained in:
parent
43e1cdbaf9
commit
acd4dc2d0c
13 changed files with 103 additions and 105 deletions
|
@ -1191,7 +1191,7 @@ impl clean::Visibility {
|
|||
// FIXME(camelid): This may not work correctly if `item_did` is a module.
|
||||
// However, rustdoc currently never displays a module's
|
||||
// visibility, so it shouldn't matter.
|
||||
let parent_module = find_nearest_parent_module(cx.tcx(), item_did.expect_real());
|
||||
let parent_module = find_nearest_parent_module(cx.tcx(), item_did.expect_def_id());
|
||||
|
||||
if vis_did.index == CRATE_DEF_INDEX {
|
||||
"pub(crate) ".to_owned()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue