File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -761,8 +761,7 @@ mod private {
761
761
}
762
762
763
763
/// Helper struct for avoiding a gnarly ICE in `rustdoc` when generating
764
- /// documentation for `icrate` iterator helpers (in particular, it fails
765
- /// in generating auto trait implementations).
764
+ /// documentation for auto traits for `Id<T>` where `T: !ClassType`.
766
765
///
767
766
/// See related issues:
768
767
/// - <https://github.com/rust-lang/rust/issues/91380>
@@ -822,6 +821,12 @@ impl<T: ?Sized + RefUnwindSafe> RefUnwindSafe for Id<T> {}
822
821
// TODO: Relax this bound
823
822
impl < T : ?Sized + RefUnwindSafe + UnwindSafe > UnwindSafe for Id < T > { }
824
823
824
+ #[ cfg( doc) ]
825
+ #[ allow( unused) ]
826
+ struct TestDocIdWithNonClassType {
827
+ id : Id < crate :: runtime:: AnyObject > ,
828
+ }
829
+
825
830
#[ cfg( test) ]
826
831
mod tests {
827
832
use core:: mem:: size_of;
You can’t perform that action at this time.
0 commit comments