about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-01 01:20:23 +0100
committerGitHub <noreply@github.com>2023-03-01 01:20:23 +0100
commit24551850a9435826ed2717fd35de4789b1b32601 (patch)
tree803d2745528ac2e3b90bad8c75b4670f98be645a /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent371904bba6be19d023f3073205e67169a93f54e7 (diff)
parent22b65fc27594d5f95195ea098bfb0a60d21225d2 (diff)
downloadrust-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