diff options
| author | The 8472 <git@infinite-source.de> | 2024-11-16 02:49:03 +0100 |
|---|---|---|
| committer | The 8472 <git@infinite-source.de> | 2025-01-10 02:22:57 +0100 |
| commit | 8b1de1682fcfaa2f56d6e4b98e1f18eb1bfcee55 (patch) | |
| tree | 10d21d778dc3001149c2d4efc4a1411487dbc3ee /src/tools/rust-analyzer | |
| parent | 56889dd826f0e306fb08c1faa903b35daf59806a (diff) | |
| download | rust-8b1de1682fcfaa2f56d6e4b98e1f18eb1bfcee55.tar.gz rust-8b1de1682fcfaa2f56d6e4b98e1f18eb1bfcee55.zip | |
also initialize Layout field in rust-analyzer
Diffstat (limited to 'src/tools/rust-analyzer')
| -rw-r--r-- | src/tools/rust-analyzer/crates/hir-ty/src/layout.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-ty/src/layout.rs b/src/tools/rust-analyzer/crates/hir-ty/src/layout.rs index 0c1f63880cd..108171586ea 100644 --- a/src/tools/rust-analyzer/crates/hir-ty/src/layout.rs +++ b/src/tools/rust-analyzer/crates/hir-ty/src/layout.rs @@ -197,6 +197,7 @@ fn layout_of_simd_ty( align, max_repr_align: None, unadjusted_abi_align: align.abi, + randomization_seed: 0, })) } @@ -313,6 +314,7 @@ pub fn layout_of_ty_query( size, max_repr_align: None, unadjusted_abi_align: element.align.abi, + randomization_seed: 0, } } TyKind::Slice(element) => { @@ -326,6 +328,7 @@ pub fn layout_of_ty_query( size: Size::ZERO, max_repr_align: None, unadjusted_abi_align: element.align.abi, + randomization_seed: 0, } } TyKind::Str => Layout { @@ -337,6 +340,7 @@ pub fn layout_of_ty_query( size: Size::ZERO, max_repr_align: None, unadjusted_abi_align: dl.i8_align.abi, + randomization_seed: 0, }, // Potentially-wide pointers. TyKind::Ref(_, _, pointee) | TyKind::Raw(_, pointee) => { |
