diff options
| author | bors <bors@rust-lang.org> | 2021-09-30 08:19:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-30 08:19:58 +0000 |
| commit | ab99eec15f322eb06ddc0ff235e3c7fbac96e541 (patch) | |
| tree | 490006362922b301c4f4a0a7d0713cfec721c64d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 984d4661c7ea776a6ef7044e69666ef056bd5000 (diff) | |
| parent | a3d373551551bc1bd5a993d586f42144f0f4542a (diff) | |
| download | rust-ab99eec15f322eb06ddc0ff235e3c7fbac96e541.tar.gz rust-ab99eec15f322eb06ddc0ff235e3c7fbac96e541.zip | |
Auto merge of #7684 - surechen:solve_derivable_impls, r=flip1995
fix for issue #7683 Fixes #7683. For Repeat [x; y] (x is the type and y is the times to repeat) . When y > 32, the compiler will report an error: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=7148558162685e91056e0550797ea74c Because https://github.com/rust-lang/rust/blob/6cdd42f9f8dd4e5e5ba0aa816bc4c99ab8b102f9/library/std/src/primitive_docs.rs#L538 /// Arrays of sizes from 0 to 32 (inclusive) implement [`Default`] trait /// if the element type allows it. As a stopgap, trait implementations are /// statically generated up to size 32. So here to detect this situation. changelog: [`derivable_impls`]: No longer lints when arrays bigger than 32 elements are involved
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
