From afdd468ab8f4b028ef2eb024b9f724e2feeac72f Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Thu, 21 Sep 2023 18:25:13 +0200 Subject: [PATCH] tests/ui: Fix large_moves attribute cfg We only want the attribute for the attribute revision. --- tests/ui/async-await/large_moves.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/async-await/large_moves.rs b/tests/ui/async-await/large_moves.rs index 62b12104694..485ca92fb89 100644 --- a/tests/ui/async-await/large_moves.rs +++ b/tests/ui/async-await/large_moves.rs @@ -1,5 +1,5 @@ #![deny(large_assignments)] -#![feature(large_assignments)] +#![cfg_attr(attribute, feature(large_assignments))] #![cfg_attr(attribute, move_size_limit = "1000")] // build-fail // only-x86_64