Skip to content

Commit c96474a

Browse files
committed
---
yaml --- r: 7926 b: refs/heads/snap-stage3 c: c775798 h: refs/heads/master v: v3
1 parent 534225d commit c96474a

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
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: cb4a3839222a0501a8f54f3c31dbf8ffa2c2945d
4+
refs/heads/snap-stage3: c77579812460c2b3bf473bd560a1beed32d5fdf5
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/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)