about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-11-23 16:14:40 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-11-24 11:35:32 +1100
commitbba35673869408839778949efcb223cf77597352 (patch)
tree502831aeb6227c728ca3c886a8fb86e753421af0
parent5967cf1a3ae6fde206ae03a6a2ffc389917db3d5 (diff)
downloadrust-bba35673869408839778949efcb223cf77597352.tar.gz
rust-bba35673869408839778949efcb223cf77597352.zip
Make profiler_builtins `#![no_core]` instead of just `#![no_std]`
This crate doesn't contain any actual Rust code; it's just C/C++ code built and
packaged in a Rust-friendly way.
-rw-r--r--library/Cargo.lock2
-rw-r--r--library/profiler_builtins/Cargo.toml2
-rw-r--r--library/profiler_builtins/src/lib.rs3
3 files changed, 2 insertions, 5 deletions
diff --git a/library/Cargo.lock b/library/Cargo.lock
index 97996d5f0b2..2265fbf70d3 100644
--- a/library/Cargo.lock
+++ b/library/Cargo.lock
@@ -235,8 +235,6 @@ name = "profiler_builtins"
 version = "0.0.0"
 dependencies = [
  "cc",
- "compiler_builtins",
- "core",
 ]
 
 [[package]]
diff --git a/library/profiler_builtins/Cargo.toml b/library/profiler_builtins/Cargo.toml
index f94ea9a6cda..17e3cbdf52b 100644
--- a/library/profiler_builtins/Cargo.toml
+++ b/library/profiler_builtins/Cargo.toml
@@ -9,8 +9,6 @@ bench = false
 doc = false
 
 [dependencies]
-core = { path = "../core" }
-compiler_builtins = { version = "0.1.0", features = ['rustc-dep-of-std'] }
 
 [build-dependencies]
 # FIXME: Pinned due to build error when bumped (#132556)
diff --git a/library/profiler_builtins/src/lib.rs b/library/profiler_builtins/src/lib.rs
index 68b6058db97..a258f7d31a1 100644
--- a/library/profiler_builtins/src/lib.rs
+++ b/library/profiler_builtins/src/lib.rs
@@ -1,11 +1,12 @@
 // tidy-alphabetical-start
 #![allow(internal_features)]
+#![feature(no_core)]
 #![feature(profiler_runtime)]
 #![feature(staged_api)]
 // tidy-alphabetical-end
 
 // Other attributes:
-#![no_std]
+#![no_core]
 #![profiler_runtime]
 #![unstable(
     feature = "profiler_runtime_lib",