Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
fix up core build on feature combos
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jun 6, 2024
1 parent 1971c1e commit 1ee8e11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ impl<T: Rng> Rng for AssertInternal<T> {
#[cfg(feature = "std")]
mod std_support {
use core::any::Any;
use alloc::boxed::Box;
use std::sync::OnceLock;

use crate::{
Expand Down Expand Up @@ -790,6 +791,11 @@ mod no_std_support {
*/
pub struct AmbientSlot {}

/**
A slot for the internal runtime.
Without the `std` feature enabled, this slot cannot be initialized.
*/
#[cfg(feature = "implicit_internal_rt")]
pub struct AmbientInternalSlot(AmbientSlot);

Expand Down

0 comments on commit 1ee8e11

Please sign in to comment.