@@ -275,25 +275,25 @@ pub enum Res<Id = hir::HirId> {
275
275
/// ```
276
276
/// struct Bar(Box<Self>);
277
277
/// // `Res::SelfTy { trait_: None, alias_of: Some(Bar) }`
278
- ///
278
+ ///
279
279
/// trait Foo {
280
280
/// fn foo() -> Box<Self>;
281
281
/// // `Res::SelfTy { trait_: Some(Foo), alias_of: None }`
282
282
/// }
283
- ///
283
+ ///
284
284
/// impl Bar {
285
285
/// fn blah() {
286
286
/// let _: Self;
287
287
/// // `Res::SelfTy { trait_: None, alias_of: Some(::{impl#0}) }`
288
288
/// }
289
289
/// }
290
- ///
290
+ ///
291
291
/// impl Foo for Bar {
292
292
/// fn foo() -> Box<Self> {
293
293
/// // `Res::SelfTy { trait_: Some(Foo), alias_of: Some(::{impl#1}) }`
294
294
/// let _: Self;
295
295
/// // `Res::SelfTy { trait_: Some(Foo), alias_of: Some(::{impl#1}) }`
296
- ///
296
+ ///
297
297
/// todo!()
298
298
/// }
299
299
/// }
@@ -307,7 +307,7 @@ pub enum Res<Id = hir::HirId> {
307
307
/// any generic parameters to allow the following with `min_const_generics`:
308
308
/// ```
309
309
/// impl Foo { fn test() -> [u8; std::mem::size_of::<Self>()] { todo!() } }
310
- ///
310
+ ///
311
311
/// struct Bar([u8; baz::<Self>()]);
312
312
/// const fn baz<T>() -> usize { 10 }
313
313
/// ```
@@ -323,7 +323,7 @@ pub enum Res<Id = hir::HirId> {
323
323
/// The trait this `Self` is a generic arg for.
324
324
trait_ : Option < DefId > ,
325
325
/// The item introducing the `Self` type alias. Can be used in the `type_of` query
326
- /// to get the underlying type. Additionally whether the `Self` type is disallowed
326
+ /// to get the underlying type. Additionally whether the `Self` type is disallowed
327
327
/// from mentioning generics (i.e. when used in an anonymous constant).
328
328
alias_to : Option < ( DefId , bool ) > ,
329
329
} ,
0 commit comments