diff options
| author | Irina Popa <irinagpopa@gmail.com> | 2018-02-05 21:07:20 +0200 |
|---|---|---|
| committer | Irina Popa <irinagpopa@gmail.com> | 2018-04-26 16:50:28 +0300 |
| commit | 7a5147616b16b78a65d80f13b85c3010131d3b7a (patch) | |
| tree | 09ff196592e7e2a7ca43bc2dc37e205396e4ffc8 /src/librustc_target | |
| parent | 3bd7efadae490bcf3434719dc97e649f93645901 (diff) | |
| download | rust-7a5147616b16b78a65d80f13b85c3010131d3b7a.tar.gz rust-7a5147616b16b78a65d80f13b85c3010131d3b7a.zip | |
rustc_target: move LayoutOf's type parameter to an associated type.
Diffstat (limited to 'src/librustc_target')
| -rw-r--r-- | src/librustc_target/abi/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/librustc_target/abi/mod.rs b/src/librustc_target/abi/mod.rs index 8cdc34db2df..b0a53445659 100644 --- a/src/librustc_target/abi/mod.rs +++ b/src/librustc_target/abi/mod.rs @@ -757,8 +757,9 @@ impl LayoutDetails { } } -pub trait LayoutOf<T> { +pub trait LayoutOf { + type Ty; type TyLayout; - fn layout_of(self, ty: T) -> Self::TyLayout; -} \ No newline at end of file + fn layout_of(self, ty: Self::Ty) -> Self::TyLayout; +} |
