We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c44c64d commit ba36142Copy full SHA for ba36142
1 file changed
src/librustdoc/clean/types.rs
@@ -264,8 +264,12 @@ impl Item {
264
}
265
266
crate fn span(&self, tcx: TyCtxt<'_>) -> Span {
267
+ let kind = match &*self.kind {
268
+ ItemKind::StrippedItem(k) => k,
269
+ _ => &*self.kind,
270
+ };
271
if let ItemKind::ModuleItem(Module { span, .. }) | ItemKind::ImplItem(Impl { span, .. }) =
- &*self.kind
272
+ kind
273
{
274
*span
275
} else if self.is_fake() {
0 commit comments