diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-03-01 01:20:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-01 01:20:23 +0100 |
| commit | 24551850a9435826ed2717fd35de4789b1b32601 (patch) | |
| tree | 803d2745528ac2e3b90bad8c75b4670f98be645a /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 371904bba6be19d023f3073205e67169a93f54e7 (diff) | |
| parent | 22b65fc27594d5f95195ea098bfb0a60d21225d2 (diff) | |
| download | rust-24551850a9435826ed2717fd35de4789b1b32601.tar.gz rust-24551850a9435826ed2717fd35de4789b1b32601.zip | |
Rollup merge of #108531 - Coca162:rustdoc-repeat-const-array, r=thomcc
rustdoc: Show that repeated expression arrays can be made with constant values The [rust reference](https://doc.rust-lang.org/reference/expressions/array-expr.html) currently says that repeated values for arrays can be constant or `Copy` > repeat operand is [Copy](https://doc.rust-lang.org/reference/special-types-and-traits.html#copy) or that it must be a [path](https://doc.rust-lang.org/reference/expressions/path-expr.html) to a constant item This updates the rust documentation on primitive arrays to reflect what the rust reference says (and also compiler suggestions if you do not use a `const` item)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
