about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2024-02-20 17:01:46 -0500
committerGitHub <noreply@github.com>2024-02-20 17:01:46 -0500
commite7850933822618255b0bca10f220d77e599d537e (patch)
tree5b380b00caf6c2d9b88b18837e41a3a23b9d7c68 /example
parent3e02db23af33a0b47d941240843327a6c0539ba5 (diff)
parente7b7c98e1c9628570bed2915e683ab298c59a0d6 (diff)
downloadrust-e7850933822618255b0bca10f220d77e599d537e.tar.gz
rust-e7850933822618255b0bca10f220d77e599d537e.zip
Merge pull request #450 from rust-lang/sync_from_rust_2024_02_20
Sync from rust 2024/02/20
Diffstat (limited to 'example')
-rw-r--r--example/mini_core.rs5
-rw-r--r--example/mini_core_hello_world.rs3
-rw-r--r--example/std_example.rs1
3 files changed, 5 insertions, 4 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs
index 34328520343..230009741dc 100644
--- a/example/mini_core.rs
+++ b/example/mini_core.rs
@@ -4,7 +4,7 @@
     thread_local
 )]
 #![no_core]
-#![allow(dead_code, internal_features)]
+#![allow(dead_code, internal_features, ambiguous_wide_pointer_comparisons)]
 
 #[no_mangle]
 unsafe extern "C" fn _Unwind_Resume() {
@@ -100,9 +100,6 @@ unsafe impl<T: ?Sized> Freeze for &mut T {}
 #[lang = "structural_peq"]
 pub trait StructuralPartialEq {}
 
-#[lang = "structural_teq"]
-pub trait StructuralEq {}
-
 #[lang = "not"]
 pub trait Not {
     type Output;
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs
index 40a1ad22c0e..add77880716 100644
--- a/example/mini_core_hello_world.rs
+++ b/example/mini_core_hello_world.rs
@@ -98,6 +98,9 @@ fn start<T: Termination + 'static>(
 }
 
 static mut NUM: u8 = 6 * 7;
+
+// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
+#[allow(static_mut_refs)]
 static NUM_REF: &'static u8 = unsafe { &NUM };
 
 macro_rules! assert {
diff --git a/example/std_example.rs b/example/std_example.rs
index 0f6325c8980..ad69409eb65 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -1,3 +1,4 @@
+#![allow(internal_features)]
 #![feature(core_intrinsics, coroutines, coroutine_trait, is_sorted)]
 
 #[cfg(feature="master")]