about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-03-01 05:49:50 +0100
committerGitHub <noreply@github.com>2025-03-01 05:49:50 +0100
commit91eb721cbc11755b459330718785f79e8dd45ff8 (patch)
treeba7484fa27a7a4f3f15b44f250c0cacf79b9ac89 /compiler/rustc_codegen_llvm/src
parent30508faeb3248d399079513b6e0107af30a43948 (diff)
parent6c3243f0086c0f6a77b4a66fdfcf7f55c36f94a1 (diff)
downloadrust-91eb721cbc11755b459330718785f79e8dd45ff8.tar.gz
rust-91eb721cbc11755b459330718785f79e8dd45ff8.zip
Rollup merge of #137045 - BoxyUwU:defer_repeat_expr_checks, r=compiler-errors
Defer repeat expr `Copy` checks to end of type checking

Fixes #110443

Defers repeat expr checks that the element type is `Copy` when the length is > 1 (or generic) to end of typeck so that under `generic_arg_infer` repeat exprs are able to have an inferred count, e.g. `let a: [_; 1] = [String::new(); _];`.

Currently the deferring is gated under `generic_arg_infer` though I intend to separately types FCP deferring the checks even outside of `generic_arg_infer` if we wind up not going with an alternative.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions