Skip to content

Commit 15b4788

Browse files
authored
Rollup merge of rust-lang#102102 - GuillaumeGomez:doc-aliases-sized-trait, r=thomcc
Add doc aliases on Sized trait Fixes rust-lang#101267. It adds both `?` and `?Sized` doc aliases for the `Sized` trait. Some screenshots of the result: ![Screenshot from 2022-09-21 16-19-55](https://user-images.githubusercontent.com/3050060/191529854-65a79b75-6c20-4fd4-88c2-56d617d1acff.png) ![Screenshot from 2022-09-21 16-20-04](https://user-images.githubusercontent.com/3050060/191529857-2d11b477-5c5d-4080-9382-0b07950fd7f6.png)
2 parents 9aa3180 + efbde85 commit 15b4788

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/marker.rs

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ impl<T: ?Sized> !Send for *mut T {}
8181
/// ```
8282
///
8383
/// [trait object]: ../../book/ch17-02-trait-objects.html
84+
#[doc(alias = "?", alias = "?Sized")]
8485
#[stable(feature = "rust1", since = "1.0.0")]
8586
#[lang = "sized"]
8687
#[rustc_on_unimplemented(

0 commit comments

Comments
 (0)