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.
tests/codegen/try_question_mark_nop.rshas a hack likewe should allow the test writer to specify a
//@ only-llvm-major-version: 19which will only run the test if the llvm's major version matches19. Instead of having to hack this by usingmin-llvm-version+ignore-llvm-version.