Skip to content

Commit 93c9b0a

Browse files
committed
---
yaml --- r: 7956 b: refs/heads/snap-stage3 c: c218b65 h: refs/heads/master v: v3
1 parent a20aac0 commit 93c9b0a

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

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