about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-29 01:22:04 +0000
committerbors <bors@rust-lang.org>2018-12-29 01:22:04 +0000
commit43d26b1f35401c9341154192db000db456ee5ca2 (patch)
treea48df1c81765c10012451af6768ee0a166a3d254 /src/test/rustdoc
parentd9e3edb74bb52d3d60d48dc956319c68f7f2805c (diff)
parentdbcf68951c564f946ab0021c7699ea1a4bf861d0 (diff)
downloadrust-43d26b1f35401c9341154192db000db456ee5ca2.tar.gz
rust-43d26b1f35401c9341154192db000db456ee5ca2.zip
Auto merge of #57006 - GuillaumeGomez:no-crate-filter, r=QuietMisdreavus
Add no-crate filter option on rustdoc

@onur asked me about it so here it is!

r? @QuietMisdreavus
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/no-crate-filter.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/rustdoc/no-crate-filter.rs b/src/test/rustdoc/no-crate-filter.rs
new file mode 100644
index 00000000000..e49ce9e088e
--- /dev/null
+++ b/src/test/rustdoc/no-crate-filter.rs
@@ -0,0 +1,16 @@
+// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#![crate_name = "foo"]
+
+// compile-flags: -Z unstable-options --disable-per-crate-search
+
+// @!has 'foo/struct.Foo.html' '//*[id="crate-search"]'
+pub struct Foo;