Skip to content

Commit 2cd520f

Browse files
committed
---
yaml --- r: 13942 b: refs/heads/try c: c218b65 h: refs/heads/master v: v3
1 parent f207331 commit 2cd520f

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
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: 7d6cf37a8d813bc4231e833f27e6242ac9c88a87
5+
refs/heads/try: c218b65fd870e69c70a8d4221fc4196d5d93f6a1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustdoc/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl util for itemtag {
184184
doc::enumtag({name, _}) { name }
185185
doc::restag({name, _}) { name }
186186
doc::ifacetag({name, _}) { name }
187-
_ { fail }
187+
doc::impltag({name, _}) { name }
188188
}
189189
}
190190
}

branches/try/src/rustdoc/prune_unexported_pass.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,12 @@ fn should_prune_unexported_ifaces_from_top_mod() {
248248
let doc = run(srv, doc);
249249
assert vec::is_empty(doc.topmod.ifaces());
250250
}
251+
252+
#[test]
253+
fn should_prune_unexported_impls_from_top_mod() {
254+
let source = "export a; mod a { } impl b for int { fn c() { } }";
255+
let srv = astsrv::mk_srv_from_str(source);
256+
let doc = extract::from_srv(srv, "");
257+
let doc = run(srv, doc);
258+
assert vec::is_empty(doc.topmod.impls())
259+
}

0 commit comments

Comments
 (0)