Auto merge of #96825 - kckeiks:remove-item-like-visitor-trait, r=cjgillot
Retire `ItemLikeVisitor` trait Issue #95004 cc `@cjgillot`
This commit is contained in:
commit
7355d971a9
29 changed files with 640 additions and 791 deletions
|
@ -1995,7 +1995,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
}
|
||||
|
||||
/// Look up the name of a definition across crates. This does not look at HIR.
|
||||
fn opt_item_name(self, def_id: DefId) -> Option<Symbol> {
|
||||
pub fn opt_item_name(self, def_id: DefId) -> Option<Symbol> {
|
||||
if let Some(cnum) = def_id.as_crate_root() {
|
||||
Some(self.crate_name(cnum))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue