Rollup merge of #84492 - jyn514:span, r=camelid
rustdoc: Remove unnecessary dummy span Follow-up to https://github.com/rust-lang/rust/pull/84460#discussion_r619447655. r? `@camelid`
This commit is contained in:
commit
aae871d6e3
1 changed files with 4 additions and 3 deletions
|
@ -71,9 +71,10 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
|
||||||
}
|
}
|
||||||
|
|
||||||
crate fn visit(mut self, krate: &'tcx hir::Crate<'_>) -> Module<'tcx> {
|
crate fn visit(mut self, krate: &'tcx hir::Crate<'_>) -> Module<'tcx> {
|
||||||
|
let span = krate.item.inner;
|
||||||
let mut top_level_module = self.visit_mod_contents(
|
let mut top_level_module = self.visit_mod_contents(
|
||||||
krate.item.inner,
|
span,
|
||||||
&Spanned { span: rustc_span::DUMMY_SP, node: hir::VisibilityKind::Public },
|
&Spanned { span, node: hir::VisibilityKind::Public },
|
||||||
hir::CRATE_HIR_ID,
|
hir::CRATE_HIR_ID,
|
||||||
&krate.item,
|
&krate.item,
|
||||||
self.cx.tcx.crate_name,
|
self.cx.tcx.crate_name,
|
||||||
|
@ -130,7 +131,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
|
||||||
fn visit_mod_contents(
|
fn visit_mod_contents(
|
||||||
&mut self,
|
&mut self,
|
||||||
span: Span,
|
span: Span,
|
||||||
vis: &'tcx hir::Visibility<'_>,
|
vis: &hir::Visibility<'_>,
|
||||||
id: hir::HirId,
|
id: hir::HirId,
|
||||||
m: &'tcx hir::Mod<'tcx>,
|
m: &'tcx hir::Mod<'tcx>,
|
||||||
name: Symbol,
|
name: Symbol,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue