diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-06-25 16:33:51 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-06-25 17:46:35 +1000 |
| commit | c2f1072e013c3b58febab160b7f8759a21aaaf79 (patch) | |
| tree | 6a8cd4a5cce950b78fe7a46059a2fb3c4d0ae8a6 /compiler/rustc_codegen_llvm/src | |
| parent | fc555cd832ee743ff5410c35de2b0dd59ec4322e (diff) | |
| download | rust-c2f1072e013c3b58febab160b7f8759a21aaaf79.tar.gz rust-c2f1072e013c3b58febab160b7f8759a21aaaf79.zip | |
Tweak `FlatPat::new` to avoid a temporarily-invalid state
It was somewhat confusing that the old constructor would create a `FlatPat` in a (possibly) non-simplified state, and then simplify its contents in-place. So instead we now create its fields as local variables, perform simplification, and then create the struct afterwards. This doesn't affect correctness, but is less confusing.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
