1
Fork 0

Use unsafe extern blocks throughout the compiler

This commit is contained in:
Michael Goulet 2024-08-26 19:40:43 -04:00
parent 515395af0e
commit 38e62b9841
7 changed files with 29 additions and 26 deletions

View file

@ -28,7 +28,7 @@
#![allow(rustc::diagnostic_outside_of_impl)]
#![allow(rustc::potential_query_instability)]
#![allow(rustc::untranslatable_diagnostic)]
#![cfg_attr(bootstrap, feature(min_exhaustive_patterns))]
#![cfg_attr(bootstrap, feature(min_exhaustive_patterns, unsafe_extern_blocks))]
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
#![doc(rust_logo)]
#![feature(allocator_api)]

View file

@ -58,7 +58,7 @@ impl<T> Default for &List<T> {
}
}
extern "C" {
unsafe extern "C" {
/// A dummy type used to force `List` to be unsized while not requiring
/// references to it be wide pointers.
type OpaqueListContents;