File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ pub enum Res<Id = hir::HirId> {
308
308
///
309
309
/// **Belongs to the type namespace.**
310
310
PrimTy ( hir:: PrimTy ) ,
311
+
311
312
/// The `Self` type, optionally with the [`DefId`] of the trait it belongs to and
312
313
/// optionally with the [`DefId`] of the item introducing the `Self` type alias.
313
314
///
@@ -355,7 +356,8 @@ pub enum Res<Id = hir::HirId> {
355
356
/// const fn baz<T>() -> usize { 10 }
356
357
/// ```
357
358
/// We do however allow `Self` in repeat expression even if it is generic to not break code
358
- /// which already works on stable while causing the `const_evaluatable_unchecked` future compat lint:
359
+ /// which already works on stable while causing the `const_evaluatable_unchecked` future compat
360
+ /// lint:
359
361
/// ```
360
362
/// fn foo<T>() {
361
363
/// let _bar = [1_u8; std::mem::size_of::<*mut T>()];
@@ -370,6 +372,7 @@ pub enum Res<Id = hir::HirId> {
370
372
/// from mentioning generics (i.e. when used in an anonymous constant).
371
373
alias_to : Option < ( DefId , bool ) > ,
372
374
} ,
375
+
373
376
/// A tool attribute module; e.g., the `rustfmt` in `#[rustfmt::skip]`.
374
377
///
375
378
/// **Belongs to the type namespace.**
@@ -383,6 +386,7 @@ pub enum Res<Id = hir::HirId> {
383
386
///
384
387
/// *See also [`Res::SelfTy`].*
385
388
SelfCtor ( DefId ) ,
389
+
386
390
/// A local variable or function parameter.
387
391
///
388
392
/// **Belongs to the value namespace.**
You can’t perform that action at this time.
0 commit comments