Skip to content

Commit f67103b

Browse files
committed
Add back missing trait test
Rustdoc has been able to deal with `impl trait` for almost a year now.
1 parent 40ca352 commit f67103b

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/test/rustdoc-ui/coverage/traits.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// check-pass
33

44
#![feature(trait_alias)]
5+
#![feature(min_type_alias_impl_trait)]
56

67
/// look at this trait right here
78
pub trait ThisTrait {
@@ -30,10 +31,8 @@ impl ThisTrait for SomeStruct {
3031
/// but what about those aliases? i hear they're pretty exotic
3132
pub trait MyAlias = ThisTrait + Send + Sync;
3233

33-
// FIXME(58624): once rustdoc can process opaque `impl Trait` types,
34-
// we need to make sure they're counted
35-
// /// woah, getting all opaque in here
36-
// pub type ThisExists = impl ThisTrait;
37-
//
38-
// /// why don't we get a little more concrete
39-
// pub fn defines() -> ThisExists { SomeStruct {} }
34+
/// woah, getting all opaque in here
35+
pub type ThisExists = impl ThisTrait;
36+
37+
/// why don't we get a little more concrete
38+
pub fn defines() -> ThisExists { SomeStruct {} }
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+-------------------------------------+------------+------------+------------+------------+
22
| File | Documented | Percentage | Examples | Percentage |
33
+-------------------------------------+------------+------------+------------+------------+
4-
| ...st/rustdoc-ui/coverage/traits.rs | 6 | 85.7% | 0 | 0.0% |
4+
| ...st/rustdoc-ui/coverage/traits.rs | 8 | 88.9% | 0 | 0.0% |
55
+-------------------------------------+------------+------------+------------+------------+
6-
| Total | 6 | 85.7% | 0 | 0.0% |
6+
| Total | 8 | 88.9% | 0 | 0.0% |
77
+-------------------------------------+------------+------------+------------+------------+

0 commit comments

Comments
 (0)