From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- compiler/rustc_middle/src/tests.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 compiler/rustc_middle/src/tests.rs (limited to 'compiler/rustc_middle/src/tests.rs') diff --git a/compiler/rustc_middle/src/tests.rs b/compiler/rustc_middle/src/tests.rs new file mode 100644 index 000000000..757e0bd3b --- /dev/null +++ b/compiler/rustc_middle/src/tests.rs @@ -0,0 +1,13 @@ +use super::*; + +// FIXME(#27438): right now the unit tests of librustc_middle don't refer to any actual +// functions generated in librustc_data_structures (all +// references are through generic functions), but statics are +// referenced from time to time. Due to this bug we won't +// actually correctly link in the statics unless we also +// reference a function, so be sure to reference a dummy +// function. +#[test] +fn noop() { + rustc_data_structures::__noop_fix_for_27438(); +} -- cgit v1.2.3