diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-30 22:22:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 22:22:04 +0800 |
| commit | c22832fdbef4c7aa16440476dec00d159d0567ce (patch) | |
| tree | 2e4d62b55029f0dac5727ba7bdeb6291faa60611 /tests/rustdoc-js-std/parser-errors.js | |
| parent | a864e30269091791af5d45f0895dab2e2493e95c (diff) | |
| parent | e419b3d1ec234d428a00c9d6a8527ec4f6dc7e1a (diff) | |
| download | rust-c22832fdbef4c7aa16440476dec00d159d0567ce.tar.gz rust-c22832fdbef4c7aa16440476dec00d159d0567ce.zip | |
Rollup merge of #132315 - jieyouxu:extract-llvm-version, r=onur-ozkan
compiletest: improve robustness of LLVM version handling Previously, `extract_llvm_versions` did some gymnastics for llvm versions by combining `(major, minor, patch)` into a combined version integer, but that is not very robust and made it difficult to add `max-llvm-major-version`. This PR tries to: - Improve llvm version handling robustness by parsing and representing the version as a semver. We intentionally deviate from strict semver standards by allowing omission of minor and patch versions. They default to `0` when absent. This is for convenience to allow the user to write e.g. `//@ min-llvm-version: 18` instead of having to spell out the full `major.minor.patch` semver string `//@ min-llvm-verison: 18.0.0`. - Adjust some panic messages to include a bit more context about *why* the version string was rejected. Prerequisite for #132310. r? bootstrap (or compiler)
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
