From 314da73797ede5da3ed658208aa31d6aab9cfbf0 Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Mon, 9 Mar 2020 10:12:44 +0100 Subject: [PATCH] discrimant test must not be inlined! --- src/test/ui/consts/const_discriminant.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/ui/consts/const_discriminant.rs b/src/test/ui/consts/const_discriminant.rs index c67be3c3713..55e2918c85f 100644 --- a/src/test/ui/consts/const_discriminant.rs +++ b/src/test/ui/consts/const_discriminant.rs @@ -4,6 +4,7 @@ use std::mem::{discriminant, Discriminant}; +#[inline(never)] fn identity(x: T) -> T { x } enum Test {