diff options
| author | bors <bors@rust-lang.org> | 2024-10-28 12:53:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-28 12:53:06 +0000 |
| commit | a529c44ecadfaa6cfb60f1301bbf01e27941048f (patch) | |
| tree | 641c203b5aea3b63e85017b28144ba612f27cff7 /compiler/rustc_codegen_llvm/src | |
| parent | 73bad368f2277511659969f4dc40dff1a6db2df8 (diff) | |
| parent | d0b15f157cc3bd56bcfd93f05ac0cdf2343a6c77 (diff) | |
| download | rust-a529c44ecadfaa6cfb60f1301bbf01e27941048f.tar.gz rust-a529c44ecadfaa6cfb60f1301bbf01e27941048f.zip | |
Auto merge of #13472 - GnomedDev:smaller-msrv, r=Jarcho
Optimise Msrv for common one item case Currently, `Msrv` is cloned around a lot in order to handle the `#[clippy::msrv]` attribute. This attribute, however, means `RustcVersion` will be heap allocated if there is only one source of an msrv (eg: `rust-version` in `Cargo.toml`). This PR optimizes for said case, while keeping the external interface the same by swapping the internal representation to `SmallVec<[RustcVersion; 2]>`. changelog: none
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
