From bba35673869408839778949efcb223cf77597352 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Sat, 23 Nov 2024 16:14:40 +1100 Subject: [PATCH] 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. --- library/Cargo.lock | 2 -- library/profiler_builtins/Cargo.toml | 2 -- library/profiler_builtins/src/lib.rs | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/library/Cargo.lock b/library/Cargo.lock index 97996d5f0b25..2265fbf70d3f 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 f94ea9a6cda2..17e3cbdf52b5 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 68b6058db978..a258f7d31a19 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",