tests: prefer max-llvm-major-version over open LLVM ranges - #159499
Conversation
|
Some changes occurred in src/tools/compiletest cc @jieyouxu
|
|
Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
Why was this reviewer chosen?The reviewer was selected based on:
|
|
Presuming my grep isn't broken, there don't seem to be many version range directives... I'm wondering if we can restrict to known versions of some kind in the syntax? Or maybe switch to e.g. Rust range syntax ( |
This should just be I almost feel like these should just be Ditto on For the LLVM versioning, we can probably re-use the rust/src/tools/compiletest/src/directives.rs Line 1288 in 234c31c However I'm not actually convinced the |
|
Thanks. Happy to change approach if preferred. Options I’m seeing:
Which direction should this PR take? @Mark-Simulacrum @jieyouxu |
|
I think option 3 is probably where I lean but r? @jieyouxu, I think you've thought more deeply about this space. |
|
The approach I'd suggest is option 3 as well. I'm somewhat wary of trying to use the |
283e662 to
20ac212
Compare
|
Updated for option 3. Left gdb ranges alone for now (CI still uses older gdb). Happy to change if preferred. @rustbot review |
There was a problem hiding this comment.
Thanks. I think these tests probably need revisiting by the target maintainers, but that's orthogonal to the usages here.
@bors r+ rollup
tests: prefer max-llvm-major-version over open LLVM ranges Per review, take option 3: replace open `ignore-llvm-version` ranges with `max-llvm-major-version`. Left gdb `X - 99.0` ranges alone so CI's older gdb still runs those tests. Fixes rust-lang#159338.
tests: prefer max-llvm-major-version over open LLVM ranges Per review, take option 3: replace open `ignore-llvm-version` ranges with `max-llvm-major-version`. Left gdb `X - 99.0` ranges alone so CI's older gdb still runs those tests. Fixes rust-lang#159338.
tests: prefer max-llvm-major-version over open LLVM ranges Per review, take option 3: replace open `ignore-llvm-version` ranges with `max-llvm-major-version`. Left gdb `X - 99.0` ranges alone so CI's older gdb still runs those tests. Fixes rust-lang#159338.
…uwer Rollup of 12 pull requests Successful merges: - #159906 (Semantic check of `mut` restrictions) - #156527 (Move `std::io` tests to `alloctests` & add prelude) - #159525 (Stabilize passing 128-bit integers via vector registers with `asm!` on x86) - #160342 (Specialize `advance_by` method of `Fuse`) - #160358 (borrowck: Simplify deps to build compiler 30s faster) - #160375 (miri subtree update) - #106643 (Allow only implementing `Read::read_buf`) - #159499 (tests: prefer max-llvm-major-version over open LLVM ranges) - #159729 (allocations are allowed to grow (but not shrink)) - #159881 (fix: Do not stop `visible_parent_map` breadth-first search reaching children of `#[doc(hidden)]` modules) - #160189 (Move codegen_stmt_debuginfo to debuginfo.rs) - #160356 (Add more tests for `must_implement_one_of`)
Rollup merge of #159499 - AayushMainali-Github:main, r=jieyouxu tests: prefer max-llvm-major-version over open LLVM ranges Per review, take option 3: replace open `ignore-llvm-version` ranges with `max-llvm-major-version`. Left gdb `X - 99.0` ranges alone so CI's older gdb still runs those tests. Fixes #159338.
…uwer Rollup of 12 pull requests Successful merges: - rust-lang/rust#159906 (Semantic check of `mut` restrictions) - rust-lang/rust#156527 (Move `std::io` tests to `alloctests` & add prelude) - rust-lang/rust#159525 (Stabilize passing 128-bit integers via vector registers with `asm!` on x86) - rust-lang/rust#160342 (Specialize `advance_by` method of `Fuse`) - rust-lang/rust#160358 (borrowck: Simplify deps to build compiler 30s faster) - rust-lang/rust#160375 (miri subtree update) - rust-lang/rust#106643 (Allow only implementing `Read::read_buf`) - rust-lang/rust#159499 (tests: prefer max-llvm-major-version over open LLVM ranges) - rust-lang/rust#159729 (allocations are allowed to grow (but not shrink)) - rust-lang/rust#159881 (fix: Do not stop `visible_parent_map` breadth-first search reaching children of `#[doc(hidden)]` modules) - rust-lang/rust#160189 (Move codegen_stmt_debuginfo to debuginfo.rs) - rust-lang/rust#160356 (Add more tests for `must_implement_one_of`)
Per review, take option 3: replace open
ignore-llvm-versionranges withmax-llvm-major-version. Left gdbX - 99.0ranges alone so CI's older gdb still runs those tests.Fixes #159338.