Give an item related to issue 27438 a more meaningful name

This commit is contained in:
León Orell Valerian Liehr 2024-04-25 02:03:51 +02:00
parent 9e739b723b
commit dec1d16a9b
No known key found for this signature in database
GPG Key ID: D17A07215F68E713
2 changed files with 8 additions and 10 deletions

View File

@ -144,9 +144,9 @@ pub fn make_display(f: impl Fn(&mut fmt::Formatter<'_>) -> fmt::Result) -> impl
Printer { f } Printer { f }
} }
// See comments in compiler/rustc_middle/src/tests.rs // See comment in compiler/rustc_middle/src/tests.rs and issue #27438.
#[doc(hidden)] #[doc(hidden)]
pub fn __noop_fix_for_27438() {} pub fn __noop_fix_for_windows_dllimport_issue() {}
#[macro_export] #[macro_export]
macro_rules! external_bitflags_debug { macro_rules! external_bitflags_debug {

View File

@ -1,11 +1,9 @@
// FIXME(#27438): right now the unit tests of rustc_middle don't refer to any actual // FIXME(#27438): Right now, the unit tests of `rustc_middle` don't refer to any actual functions
// functions generated in rustc_data_structures (all // generated in `rustc_data_structures` (all references are through generic functions),
// references are through generic functions), but statics are // but statics are referenced from time to time. Due to this Windows `dllimport` bug
// referenced from time to time. Due to this bug we won't // we won't actually correctly link in the statics unless we also reference a function,
// actually correctly link in the statics unless we also // so be sure to reference a dummy function.
// reference a function, so be sure to reference a dummy
// function.
#[test] #[test]
fn noop() { fn noop() {
rustc_data_structures::__noop_fix_for_27438(); rustc_data_structures::__noop_fix_for_windows_dllimport_issue();
} }