Unnamed repository; edit this file 'description' to name the repository.
Rollup merge of #150385 - fix-expr-can-have-side-effects, r=jdonszelmann,samueltardieu
fix `Expr::can_have_side_effects` for `[x; N]` style array literal and binary expressions AFAIK `[0; 3]` is basically a syntax sugar for `[0, 0, 0]` so it should return whether the repeat's element can have side effects, like what it does on arrays. And it seems that the rule for unary operators and indexings can be applied to binary operators as well.
Guillaume Gomez 4 months ago
parent 3eef439 · parent fe2cf3f · commit 17f8248
0 files changed, 0 insertions, 0 deletions