Skip to content

Commit 1504977

Browse files
authored
Remove outdated warning
1 parent a92be0f commit 1504977

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: src/expressions/array-expr.md

-7
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ When the repeat operand is a constant item, it is evaluated the length operand's
2929
If that value is `0`, then the constant item is not evaluated at all.
3030
For expressions that are not a constant item, it is evaluated exactly once, and then the result is copied the length operand's value times.
3131

32-
<div class="warning">
33-
34-
Warning: In the case where the length operand is 0, and the repeat operand is a non-constant item, there is currently a bug in `rustc` where the value `a` is evaluated but not dropped, thus causing a leak.
35-
See [issue #74836](https://github.com/rust-lang/rust/issues/74836).
36-
37-
</div>
38-
3932
```rust
4033
[1, 2, 3, 4];
4134
["a", "b", "c", "d"];

0 commit comments

Comments
 (0)