Rollup merge of #96887 - notriddle:notriddle/as-raw-fd, r=jsha
rustdoc: correct path to type alias methods Fixes #83991
This commit is contained in:
commit
ed9faeedda
4 changed files with 37 additions and 8 deletions
|
|
@ -288,14 +288,7 @@ impl<'a, 'tcx> DocFolder for CacheBuilder<'a, 'tcx> {
|
|||
// for where the type was defined. On the other
|
||||
// hand, `paths` always has the right
|
||||
// information if present.
|
||||
Some(&(
|
||||
ref fqp,
|
||||
ItemType::Trait
|
||||
| ItemType::Struct
|
||||
| ItemType::Union
|
||||
| ItemType::Enum,
|
||||
)) => Some(&fqp[..fqp.len() - 1]),
|
||||
Some(..) => Some(&*self.cache.stack),
|
||||
Some(&(ref fqp, _)) => Some(&fqp[..fqp.len() - 1]),
|
||||
None => None,
|
||||
};
|
||||
((Some(*last), path), true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue