From 4194e92a7d9f233b6d225a2afcc7c203e7c7b631 Mon Sep 17 00:00:00 2001 From: Matt Gathu Date: Mon, 14 Sep 2020 05:43:55 +0200 Subject: [PATCH] Use rustversion to pin tests to rustc 1.42 --- actix-web-codegen/Cargo.toml | 1 + actix-web-codegen/tests/trybuild.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/actix-web-codegen/Cargo.toml b/actix-web-codegen/Cargo.toml index 1bf78f997..da37b8de6 100644 --- a/actix-web-codegen/Cargo.toml +++ b/actix-web-codegen/Cargo.toml @@ -23,3 +23,4 @@ actix-rt = "1.0.0" actix-web = "3.0.0" futures-util = { version = "0.3.5", default-features = false } trybuild = "1" +rustversion = "1" diff --git a/actix-web-codegen/tests/trybuild.rs b/actix-web-codegen/tests/trybuild.rs index 3bdc616da..36e70ff26 100644 --- a/actix-web-codegen/tests/trybuild.rs +++ b/actix-web-codegen/tests/trybuild.rs @@ -1,4 +1,5 @@ #[test] +#[rustversion::stable(1.42)] fn compile_macros() { let t = trybuild::TestCases::new();