about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-25 21:33:44 +0200
committerGitHub <noreply@github.com>2024-06-25 21:33:44 +0200
commit7e1489cf63b15dd12c34801ae434d3933c8ecb84 (patch)
tree9a0e1baf289f66ab30bf14bdad76428403d00320 /compiler/rustc_errors/src
parent3795c56bd1ba32f99ccefb89f8b6111f89f5e87d (diff)
parentc2f1072e013c3b58febab160b7f8759a21aaaf79 (diff)
downloadrust-7e1489cf63b15dd12c34801ae434d3933c8ecb84.tar.gz
rust-7e1489cf63b15dd12c34801ae434d3933c8ecb84.zip
Rollup merge of #126932 - Zalathar:flat-pat, r=Nadrieril
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.

---

I've also included some semi-related comments that I made while trying to navigate this code.
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions