diff options
| author | Ellen <supbscripter@gmail.com> | 2022-02-12 11:48:58 +0000 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2022-02-12 11:48:58 +0000 |
| commit | 5e0e7ff0681a679d1115015e358d4b2c4bec8240 (patch) | |
| tree | 90b16c48dbf1b272e7da1336108cdfb579cf3749 | |
| parent | 9130af2e4d5c42f5a4d980e8d9071bde613e12c1 (diff) | |
| download | rust-5e0e7ff0681a679d1115015e358d4b2c4bec8240.tar.gz rust-5e0e7ff0681a679d1115015e358d4b2c4bec8240.zip | |
trailing whitespace
| -rw-r--r-- | compiler/rustc_hir/src/def.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_hir/src/def.rs b/compiler/rustc_hir/src/def.rs index 9f58693cf05..e99f61d034f 100644 --- a/compiler/rustc_hir/src/def.rs +++ b/compiler/rustc_hir/src/def.rs @@ -275,25 +275,25 @@ pub enum Res<Id = hir::HirId> { /// ``` /// struct Bar(Box<Self>); /// // `Res::SelfTy { trait_: None, alias_of: Some(Bar) }` - /// + /// /// trait Foo { /// fn foo() -> Box<Self>; /// // `Res::SelfTy { trait_: Some(Foo), alias_of: None }` /// } - /// + /// /// impl Bar { /// fn blah() { /// let _: Self; /// // `Res::SelfTy { trait_: None, alias_of: Some(::{impl#0}) }` /// } /// } - /// + /// /// impl Foo for Bar { /// fn foo() -> Box<Self> { /// // `Res::SelfTy { trait_: Some(Foo), alias_of: Some(::{impl#1}) }` /// let _: Self; /// // `Res::SelfTy { trait_: Some(Foo), alias_of: Some(::{impl#1}) }` - /// + /// /// todo!() /// } /// } @@ -307,7 +307,7 @@ pub enum Res<Id = hir::HirId> { /// any generic parameters to allow the following with `min_const_generics`: /// ``` /// impl Foo { fn test() -> [u8; std::mem::size_of::<Self>()] { todo!() } } - /// + /// /// struct Bar([u8; baz::<Self>()]); /// const fn baz<T>() -> usize { 10 } /// ``` @@ -323,7 +323,7 @@ pub enum Res<Id = hir::HirId> { /// The trait this `Self` is a generic arg for. trait_: Option<DefId>, /// The item introducing the `Self` type alias. Can be used in the `type_of` query - /// to get the underlying type. Additionally whether the `Self` type is disallowed + /// to get the underlying type. Additionally whether the `Self` type is disallowed /// from mentioning generics (i.e. when used in an anonymous constant). alias_to: Option<(DefId, bool)>, }, |
