Skip to content

Commit f3c31a0

Browse files
committed
rustdoc: Fix exports for new regime
1 parent 298ab6f commit f3c31a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rustdoc/prune_private_pass.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Prune things that are private
22
3+
#[legacy_exports];
4+
35
export mk_pass;
46

57
fn mk_pass() -> Pass {
@@ -55,7 +57,7 @@ fn should_prune_items_without_pub_modifier() {
5557

5658
#[cfg(test)]
5759
mod test {
58-
fn mk_doc(source: ~str) -> doc::Doc {
60+
pub fn mk_doc(source: ~str) -> doc::Doc {
5961
do astsrv::from_str(source) |srv| {
6062
let doc = extract::from_srv(srv, ~"");
6163
run(srv, doc)

0 commit comments

Comments
 (0)