about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-25 08:39:44 +0100
committerGitHub <noreply@github.com>2024-01-25 08:39:44 +0100
commitb677c776865be82071d14d52aa5930ecd266f26d (patch)
tree928923c29e262204bc6e9a7d92c42f6b1396e8e9 /compiler/rustc_const_eval/src
parent0cbef470d5e0cd8590236b7a9cbf1b0c3c7fc954 (diff)
parente088016f9d0dd8d69941a2ad2088ff2631706c1c (diff)
downloadrust-b677c776865be82071d14d52aa5930ecd266f26d.tar.gz
rust-b677c776865be82071d14d52aa5930ecd266f26d.zip
Rollup merge of #120317 - Nadrieril:dont-force-slice-of-ty, r=compiler-errors
pattern_analysis: Let `ctor_sub_tys` return any Iterator they want

I noticed that we always `.cloned()` and allocate the output of `TypeCx::ctor_sub_tys` now, so there was no need to force it to return a slice. `ExactSizeIterator` is not super important but saves some manual counting.

r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_const_eval/src')
0 files changed, 0 insertions, 0 deletions