about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-10-30 22:22:04 +0800
committerGitHub <noreply@github.com>2024-10-30 22:22:04 +0800
commitc22832fdbef4c7aa16440476dec00d159d0567ce (patch)
tree2e4d62b55029f0dac5727ba7bdeb6291faa60611 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parenta864e30269091791af5d45f0895dab2e2493e95c (diff)
parente419b3d1ec234d428a00c9d6a8527ec4f6dc7e1a (diff)
downloadrust-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/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions