1
Fork 0

Rename Type::def_id_full() to Type::def_id()

It should be preferred over `def_id_no_primitives()`, so it should have
a shorter name. I also put it before `def_id_no_primitives()` so that it
shows up first in the docs.
This commit is contained in:
Noah Lev 2021-10-21 20:17:47 -07:00
parent 6e3561e149
commit f93cf66507
7 changed files with 29 additions and 32 deletions

View file

@ -207,7 +207,7 @@ impl<'a, 'tcx> DocFolder for CacheBuilder<'a, 'tcx> {
.as_ref()
.map_or(false, |t| self.cache.masked_crates.contains(&t.def_id().krate))
|| i.for_
.def_id_full(self.cache)
.def_id(self.cache)
.map_or(false, |d| self.cache.masked_crates.contains(&d.krate))
{
return None;
@ -456,7 +456,7 @@ impl<'a, 'tcx> DocFolder for CacheBuilder<'a, 'tcx> {
if let Some(generics) = i.trait_.as_ref().and_then(|t| t.generics()) {
for bound in generics {
if let Some(did) = bound.def_id_full(self.cache) {
if let Some(did) = bound.def_id(self.cache) {
dids.insert(did);
}
}