From 8e96a9cdf3e3e138d41701ce68c6455dff526684 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Sun, 27 Oct 2024 10:32:12 +1100 Subject: [PATCH] (DO NOT MERGE) Check that this fails in `x86_64-gnu` --- compiler/rustc_macros/src/try_from.rs | 2 +- src/ci/github-actions/jobs.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_macros/src/try_from.rs b/compiler/rustc_macros/src/try_from.rs index 7b8b5c888c621..fde7c8f620400 100644 --- a/compiler/rustc_macros/src/try_from.rs +++ b/compiler/rustc_macros/src/try_from.rs @@ -40,7 +40,7 @@ pub(crate) fn try_from_u32(s: Structure<'_>) -> TokenStream { use ::core::primitive::u32; use ::core::result::Result::{self, Ok, Err}; - r#gen impl TryFrom for @Self { + gen impl TryFrom for @Self { type Error = u32; #[allow(deprecated)] // Don't warn about deprecated variants. diff --git a/src/ci/github-actions/jobs.yml b/src/ci/github-actions/jobs.yml index a401092a3a73f..d4aeb8f38dcf3 100644 --- a/src/ci/github-actions/jobs.yml +++ b/src/ci/github-actions/jobs.yml @@ -102,6 +102,8 @@ pr: <<: *job-linux-16c - image: x86_64-gnu-tools <<: *job-linux-16c + - image: x86_64-gnu + <<: *job-linux-4c # Jobs that run when you perform a try build (@bors try) # These jobs automatically inherit envs.try, to avoid repeating