diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-10-21 20:17:47 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-10-22 13:07:43 -0700 |
| commit | f93cf66507ea87e041144ab9c1b06d2dc549f6bc (patch) | |
| tree | 39389482ed6779eb22a11cec7485c234f8791fb6 /src/librustdoc/formats/cache.rs | |
| parent | 6e3561e149870fc60f27a3035747a0fe14ffd9f5 (diff) | |
| download | rust-f93cf66507ea87e041144ab9c1b06d2dc549f6bc.tar.gz rust-f93cf66507ea87e041144ab9c1b06d2dc549f6bc.zip | |
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.
Diffstat (limited to 'src/librustdoc/formats/cache.rs')
| -rw-r--r-- | src/librustdoc/formats/cache.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/formats/cache.rs b/src/librustdoc/formats/cache.rs index afaeded88b4..54988871f41 100644 --- a/src/librustdoc/formats/cache.rs +++ b/src/librustdoc/formats/cache.rs @@ -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); } } |
