From c6086a8fd7489fa6cf18b7dd0baf73cf21386c77 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Thu, 5 Dec 2019 21:00:57 +0100 Subject: Rustup to rustc 1.41.0-nightly (6d77e45f0 2019-12-04) --- example/mini_core.rs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/mini_core.rs b/example/mini_core.rs index 1d8942c6ab2..1912cc50a21 100644 --- a/example/mini_core.rs +++ b/example/mini_core.rs @@ -1,6 +1,6 @@ #![feature( no_core, lang_items, intrinsics, unboxed_closures, type_ascription, extern_types, - untagged_unions, decl_macro, rustc_attrs, transparent_unions + untagged_unions, decl_macro, rustc_attrs, transparent_unions, optin_builtin_traits )] #![no_core] #![allow(dead_code)] @@ -76,7 +76,13 @@ unsafe impl<'a, T: ?Sized> Sync for &'a T {} unsafe impl Sync for [u8; 16] {} #[lang = "freeze"] -trait Freeze {} +unsafe auto trait Freeze {} + +unsafe impl Freeze for PhantomData {} +unsafe impl Freeze for *const T {} +unsafe impl Freeze for *mut T {} +unsafe impl Freeze for &T {} +unsafe impl Freeze for &mut T {} #[lang = "not"] pub trait Not { @@ -538,3 +544,10 @@ pub macro line() { /* compiler built-in */ } pub macro cfg() { /* compiler built-in */ } pub static A_STATIC: u8 = 42; + +#[lang = "panic_location"] +struct PanicLocation { + file: &'static str, + line: u32, + column: u32, +} -- cgit 1.4.1-3-g733a5