Skip to content

compiletest: allow only running a test if we have a *specific* llvm major version #132348

@jieyouxu

Description

@jieyouxu

tests/codegen/try_question_mark_nop.rs has a hack like

//@ revisions: NINETEEN TWENTY
//@[NINETEEN] min-llvm-version: 19
//@[NINETEEN] ignore-llvm-version: 20-99
//@[TWENTY] min-llvm-version: 20

we should allow the test writer to specify a //@ only-llvm-major-version: 19 which will only run the test if the llvm's major version matches 19. Instead of having to hack this by using min-llvm-version + ignore-llvm-version.

Metadata

Metadata

Assignees

Labels

A-compiletestArea: The compiletest test runnerC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions