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