Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
fdbf109
std: use random HashMap keys on Hermit
joboet Feb 26, 2023
8e56c2c
Suggest ..= when someone tries to create an overflowing range
mu001999 Mar 24, 2023
6034b2f
Use independent suggestions
mu001999 Mar 24, 2023
7f89c7c
Make EvalCtxt's infcx private
compiler-errors Mar 23, 2023
910a5ad
Emits suggestions for expressions with parentheses or not separately
mu001999 Mar 24, 2023
e34ad76
Remove ~const from alloc
workingjubilee Mar 28, 2023
dde26b3
add run-rustfix
mu001999 Mar 29, 2023
5bbaead
Move `mir::Field` → `abi::FieldIdx`
scottmcm Mar 28, 2023
f6bde03
std: use `cvt` to handle errors from `read_entropy` on Hermit
joboet Mar 29, 2023
71ff7ef
Don't strip crate module
GuillaumeGomez Mar 29, 2023
cdc4fa4
Add regression test for #109695
GuillaumeGomez Mar 29, 2023
d62238d
Do not consider elaborated projection predicates for objects in new s…
compiler-errors Mar 27, 2023
a61616a
Move canonicalization code around
compiler-errors Mar 24, 2023
979c265
Check for escape sequences in Fluent resources
clubby789 Mar 29, 2023
57f1d11
Rollup merge of #107387 - joboet:hermit_random, r=ChrisDenton
matthiaskrgr Mar 29, 2023
9f28c98
Rollup merge of #109511 - compiler-errors:eval-ctxt-infcx-private, r=…
matthiaskrgr Mar 29, 2023
83573a3
Rollup merge of #109554 - MU001999:master, r=WaffleLapkin
matthiaskrgr Mar 29, 2023
80e988d
Rollup merge of #109675 - compiler-errors:object-heck, r=lcnr
matthiaskrgr Mar 29, 2023
c62bb46
Rollup merge of #109693 - workingjubilee:maybe-unconstify-alloc, r=fe…
matthiaskrgr Mar 29, 2023
5937ec1
Rollup merge of #109700 - clubby789:tidy-fluent-escape, r=compiler-er…
matthiaskrgr Mar 29, 2023
85c3845
Rollup merge of #109716 - scottmcm:field-to-fieldidx, r=oli-obk
matthiaskrgr Mar 29, 2023
02cb4da
Rollup merge of #109726 - GuillaumeGomez:doc-hidden-crate, r=notriddle
matthiaskrgr Mar 29, 2023
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
9 changes: 7 additions & 2 deletions src/librustdoc/passes/strip_hidden.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,14 @@ impl<'a, 'tcx> DocFolder for Stripper<'a, 'tcx> {
// strip things like impl methods but when doing so
// we must not add any items to the `retained` set.
let old = mem::replace(&mut self.update_retained, false);
let ret = strip_item(self.set_is_in_hidden_item_and_fold(true, i));
let ret = self.set_is_in_hidden_item_and_fold(true, i);
self.update_retained = old;
Some(ret)
if ret.is_crate() {
// We don't strip the crate, even if it has `#[doc(hidden)]`.
Some(ret)
} else {
Some(strip_item(ret))
}
}
_ => {
let ret = self.set_is_in_hidden_item_and_fold(true, i);
Expand Down
8 changes: 8 additions & 0 deletions tests/rustdoc/issue-109695-crate-doc-hidden.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This test ensures that even if the crate module is `#[doc(hidden)]`, the file
// is generated.

// @has 'foo/index.html'
// @has 'foo/all.html'

#![crate_name = "foo"]
#![doc(hidden)]