Skip to content

Commit 49b9057

Browse files
committed
Add some blank lines to the definition of Res.
To make the spacing consistent. Also shorten an overly long comment line.
1 parent 0ebd3ab commit 49b9057

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/rustc_hir/src/def.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ pub enum Res<Id = hir::HirId> {
308308
///
309309
/// **Belongs to the type namespace.**
310310
PrimTy(hir::PrimTy),
311+
311312
/// The `Self` type, optionally with the [`DefId`] of the trait it belongs to and
312313
/// optionally with the [`DefId`] of the item introducing the `Self` type alias.
313314
///
@@ -355,7 +356,8 @@ pub enum Res<Id = hir::HirId> {
355356
/// const fn baz<T>() -> usize { 10 }
356357
/// ```
357358
/// 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:
359361
/// ```
360362
/// fn foo<T>() {
361363
/// let _bar = [1_u8; std::mem::size_of::<*mut T>()];
@@ -370,6 +372,7 @@ pub enum Res<Id = hir::HirId> {
370372
/// from mentioning generics (i.e. when used in an anonymous constant).
371373
alias_to: Option<(DefId, bool)>,
372374
},
375+
373376
/// A tool attribute module; e.g., the `rustfmt` in `#[rustfmt::skip]`.
374377
///
375378
/// **Belongs to the type namespace.**
@@ -383,6 +386,7 @@ pub enum Res<Id = hir::HirId> {
383386
///
384387
/// *See also [`Res::SelfTy`].*
385388
SelfCtor(DefId),
389+
386390
/// A local variable or function parameter.
387391
///
388392
/// **Belongs to the value namespace.**

0 commit comments

Comments
 (0)