From 2b66bb65d5116de6dfd0c7c31cb38fbec9cd35ed Mon Sep 17 00:00:00 2001 From: The 8472 Date: Thu, 10 Oct 2024 00:29:58 +0200 Subject: [PATCH] llvm18 doesn't have range attributes in arguments --- tests/codegen/function-arguments.rs | 1 + tests/codegen/slice-as_chunks.rs | 1 + tests/codegen/slice-ref-equality.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/codegen/function-arguments.rs b/tests/codegen/function-arguments.rs index 99103808b358c..623fba5362ec0 100644 --- a/tests/codegen/function-arguments.rs +++ b/tests/codegen/function-arguments.rs @@ -1,4 +1,5 @@ //@ compile-flags: -O -C no-prepopulate-passes +//@ min-llvm-version: 19 #![crate_type = "lib"] #![feature(dyn_star)] #![feature(allocator_api)] diff --git a/tests/codegen/slice-as_chunks.rs b/tests/codegen/slice-as_chunks.rs index d142dc4d00cf9..c2a2c98c6ee46 100644 --- a/tests/codegen/slice-as_chunks.rs +++ b/tests/codegen/slice-as_chunks.rs @@ -1,4 +1,5 @@ //@ compile-flags: -O +//@ min-llvm-version: 19 //@ only-64bit (because the LLVM type of i64 for usize shows up) #![crate_type = "lib"] diff --git a/tests/codegen/slice-ref-equality.rs b/tests/codegen/slice-ref-equality.rs index 9ca41ebc2ea16..9896673708099 100644 --- a/tests/codegen/slice-ref-equality.rs +++ b/tests/codegen/slice-ref-equality.rs @@ -1,4 +1,5 @@ //@ compile-flags: -O -Zmerge-functions=disabled +//@ min-llvm-version: 19 #![crate_type = "lib"] use std::num::NonZero;