diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-07-29 16:30:39 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-08-04 11:02:00 +0200 |
| commit | 8301081c906b733576b15ee3125f23ff6d60c560 (patch) | |
| tree | 109fab06bc57bc9f0c7f199db7cf68d9ff9a06ef /src/test/rustdoc | |
| parent | 4aba7de2a77a95e2032eaf438e2e11b8e1a5eb82 (diff) | |
| download | rust-8301081c906b733576b15ee3125f23ff6d60c560.tar.gz rust-8301081c906b733576b15ee3125f23ff6d60c560.zip | |
Fix primitive blanket impls not showing up
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/primitive-generic-impl.rs | 18 | ||||
| -rw-r--r-- | src/test/rustdoc/primitive/primitive-generic-impl.rs | 13 |
2 files changed, 31 insertions, 0 deletions
diff --git a/src/test/rustdoc/primitive-generic-impl.rs b/src/test/rustdoc/primitive-generic-impl.rs new file mode 100644 index 00000000000..b4351b8268c --- /dev/null +++ b/src/test/rustdoc/primitive-generic-impl.rs @@ -0,0 +1,18 @@ +// 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"] + +// we need to reexport something from libstd so that `all_trait_implementations` is called. +pub use std::string::String; + +include!("primitive/primitive-generic-impl.rs"); + +// @has foo/primitive.i32.html '//h3[@id="impl-ToString"]//code' 'impl<T> ToString for T' diff --git a/src/test/rustdoc/primitive/primitive-generic-impl.rs b/src/test/rustdoc/primitive/primitive-generic-impl.rs new file mode 100644 index 00000000000..1ac1fc95338 --- /dev/null +++ b/src/test/rustdoc/primitive/primitive-generic-impl.rs @@ -0,0 +1,13 @@ +// 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. + +#[doc(primitive = "i32")] +/// Some useless docs, wouhou! +mod i32 {} |
