Skip to content

Commit 288cd0f

Browse files
committed
---
yaml --- r: 13912 b: refs/heads/try c: c775798 h: refs/heads/master v: v3
1 parent 3e0cde9 commit 288cd0f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: cb4a3839222a0501a8f54f3c31dbf8ffa2c2945d
5+
refs/heads/try: c77579812460c2b3bf473bd560a1beed32d5fdf5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustdoc/prune_unexported_pass.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,12 @@ fn should_prune_unexported_resources() {
235235
let doc = run(srv, doc);
236236
assert vec::is_empty(doc.topmod.mods()[0].resources());
237237
}
238+
239+
#[test]
240+
fn should_prune_unexported_ifaces_from_top_mod() {
241+
let source = "export a; mod a { } iface b { fn c(); }";
242+
let srv = astsrv::mk_srv_from_str(source);
243+
let doc = extract::from_srv(srv, "");
244+
let doc = run(srv, doc);
245+
assert vec::is_empty(doc.topmod.ifaces());
246+
}

0 commit comments

Comments
 (0)