diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-05-04 19:18:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 19:18:21 +0200 |
commit | c0ca84b006d86cfb76c9bc6c5e2c3805de073f5f (patch) | |
tree | cd25aedff57518a7334034d32795c5f7137a9b81 /tests/rustdoc-js-std/parser-errors.js | |
parent | ea0b6504faa95dd4bfb0666cbcb5dfcfe0591313 (diff) | |
parent | 7d9130f3b948400780fd8386e73d201df88d9ea9 (diff) | |
download | rust-c0ca84b006d86cfb76c9bc6c5e2c3805de073f5f.tar.gz |
Rollup merge of #111100 - BoxyUwU:array_repeat_expr_wf, r=compiler-errors
check array type of repeat exprs is wf
Fixes #111091
Also makes sure that we actually renumber regions in the length of repeat exprs which we previously weren't doing and would cause ICEs in `adt_const_params` + `generic_const_exprs` from attempting to prove the wf goals when the length was an unevaluated constant with `'erased` in the `ty` field of `Const`
The duplicate errors are caused by the fact that `const_arg_to_const`/`array_len_to_const` in `FnCtxt` adds a `WellFormed` goal for the created `Const` which is also checked by the added `WellFormed(array_ty)`. I don't want to change this to just emit a `T: Sized` goal for the element type since that would ignore `ConstArgHasType` wf requirements and generally uncomfortable with the idea of trying to sync up `wf::obligations` for arrays and the code in hir typeck for repeat exprs.
r? `@compiler-errors`
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions