File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
branches/snap-stage3/src/rustdoc Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: cb4a3839222a0501a8f54f3c31dbf8ffa2c2945d
4
+ refs/heads/snap-stage3: c77579812460c2b3bf473bd560a1beed32d5fdf5
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -235,3 +235,12 @@ fn should_prune_unexported_resources() {
235
235
let doc = run ( srv, doc) ;
236
236
assert vec:: is_empty ( doc. topmod . mods ( ) [ 0 ] . resources ( ) ) ;
237
237
}
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
+ }
You can’t perform that action at this time.
0 commit comments