Use unsafe extern blocks throughout the compiler
This commit is contained in:
parent
515395af0e
commit
38e62b9841
7 changed files with 29 additions and 26 deletions
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue