diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-04-09 09:10:11 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-04-09 09:10:11 -0400 |
| commit | f67103b9b26f9e8dfea1c6f144cc003e380060a5 (patch) | |
| tree | a93c9a5afde6018ebc54530b608789b54533944c | |
| parent | 40ca3521ad1b0b42980ff16d5b9d1d3d8b68a50e (diff) | |
| download | rust-f67103b9b26f9e8dfea1c6f144cc003e380060a5.tar.gz rust-f67103b9b26f9e8dfea1c6f144cc003e380060a5.zip | |
Add back missing trait test
Rustdoc has been able to deal with `impl trait` for almost a year now.
| -rw-r--r-- | src/test/rustdoc-ui/coverage/traits.rs | 13 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/coverage/traits.stdout | 4 |
2 files changed, 8 insertions, 9 deletions
diff --git a/src/test/rustdoc-ui/coverage/traits.rs b/src/test/rustdoc-ui/coverage/traits.rs index 2bcb50aea77..2a108dac2a5 100644 --- a/src/test/rustdoc-ui/coverage/traits.rs +++ b/src/test/rustdoc-ui/coverage/traits.rs @@ -2,6 +2,7 @@ // check-pass #![feature(trait_alias)] +#![feature(min_type_alias_impl_trait)] /// look at this trait right here pub trait ThisTrait { @@ -30,10 +31,8 @@ impl ThisTrait for SomeStruct { /// but what about those aliases? i hear they're pretty exotic pub trait MyAlias = ThisTrait + Send + Sync; -// FIXME(58624): once rustdoc can process opaque `impl Trait` types, -// we need to make sure they're counted -// /// woah, getting all opaque in here -// pub type ThisExists = impl ThisTrait; -// -// /// why don't we get a little more concrete -// pub fn defines() -> ThisExists { SomeStruct {} } +/// woah, getting all opaque in here +pub type ThisExists = impl ThisTrait; + +/// why don't we get a little more concrete +pub fn defines() -> ThisExists { SomeStruct {} } diff --git a/src/test/rustdoc-ui/coverage/traits.stdout b/src/test/rustdoc-ui/coverage/traits.stdout index e04d48b4980..5053d02090c 100644 --- a/src/test/rustdoc-ui/coverage/traits.stdout +++ b/src/test/rustdoc-ui/coverage/traits.stdout @@ -1,7 +1,7 @@ +-------------------------------------+------------+------------+------------+------------+ | File | Documented | Percentage | Examples | Percentage | +-------------------------------------+------------+------------+------------+------------+ -| ...st/rustdoc-ui/coverage/traits.rs | 6 | 85.7% | 0 | 0.0% | +| ...st/rustdoc-ui/coverage/traits.rs | 8 | 88.9% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ -| Total | 6 | 85.7% | 0 | 0.0% | +| Total | 8 | 88.9% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ |
