Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 10 pull requests #84501

Merged
merged 27 commits into from
Apr 24, 2021
Merged
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
37a5b51
implement TrustedRandomAccess for Take iterator adapter
the8472 Apr 8, 2021
4873271
bootstrap: use bash on illumos to run install scripts
jclulow Apr 16, 2021
569096c
rustdoc: use details tag for trait implementors
jsha Apr 18, 2021
1a46b26
Make a few functions private
jyn514 Apr 22, 2021
60ff298
Document From implementations for Waker and RawWaker
notriddle Apr 22, 2021
f435f71
Remove unnecessary `crate_name` parameter to `after_krate`
jyn514 Apr 22, 2021
68db586
Remove unnecessary `diag` parameter to `after_krate`
jyn514 Apr 22, 2021
640cc74
Remove unnecessary `edition` parameter to renderer
jyn514 Apr 22, 2021
423963c
Remove unnecessary `edition` field on SharedContext
jyn514 Apr 22, 2021
7f6d540
Remove unnecessary `item_name` parameter to `mod_item_out`
jyn514 Apr 22, 2021
edb60a9
Remove unnecessary item_name parameter to `mod_item_in`
jyn514 Apr 22, 2021
8f41de5
Add test for issue #83017
marmeladema Apr 23, 2021
3b96dfe
Add test for issue #81193
marmeladema Apr 23, 2021
21b3b27
Mention FusedIterator case in Iterator::fuse doc
amorison Apr 23, 2021
7c50b82
rustdoc: Remove unnecessary dummy span
jyn514 Apr 23, 2021
a657e17
Add test for issue #33017
marmeladema Apr 23, 2021
9b430df
Add test for issue #51892
marmeladema Apr 23, 2021
c00439f
Rollup merge of #83990 - the8472:take-trusted-len, r=dtolnay
JohnTitor Apr 24, 2021
5321f95
Rollup merge of #84250 - jclulow:illumos-bash-bootstrap, r=Mark-Simul…
JohnTitor Apr 24, 2021
b454469
Rollup merge of #84320 - jsha:details-implementors, r=Manishearth,Nem…
JohnTitor Apr 24, 2021
570eed7
Rollup merge of #84436 - jyn514:private, r=petrochenkov
JohnTitor Apr 24, 2021
ed5646b
Rollup merge of #84453 - notriddle:waker-from-docs, r=cramertj
JohnTitor Apr 24, 2021
8d75898
Rollup merge of #84458 - jyn514:cleanup-after-krate, r=GuillaumeGomez
JohnTitor Apr 24, 2021
740e1f4
Rollup merge of #84485 - marmeladema:trait-tests, r=jackh726
JohnTitor Apr 24, 2021
ed991a3
Rollup merge of #84489 - amorison:issue-83969-fix, r=yaahc
JohnTitor Apr 24, 2021
aae871d
Rollup merge of #84492 - jyn514:span, r=camelid
JohnTitor Apr 24, 2021
ec61abf
Rollup merge of #84496 - marmeladema:specialization-test, r=JohnTitor
JohnTitor Apr 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/librustdoc/visit_ast.rs
Original file line number Diff line number Diff line change
@@ -71,9 +71,10 @@ impl<'a, 'tcx> RustdocVisitor<'a, '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(
krate.item.inner,
&Spanned { span: rustc_span::DUMMY_SP, node: hir::VisibilityKind::Public },
span,
&Spanned { span, node: hir::VisibilityKind::Public },
hir::CRATE_HIR_ID,
&krate.item,
self.cx.tcx.crate_name,
@@ -130,7 +131,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
fn visit_mod_contents(
&mut self,
span: Span,
vis: &'tcx hir::Visibility<'_>,
vis: &hir::Visibility<'_>,
id: hir::HirId,
m: &'tcx hir::Mod<'tcx>,
name: Symbol,