Rollup merge of #150458 - RalfJung:miri-doctests, r=bjorn3

fix running stdlib doctests in Miri in CI

r? `@bjorn3`
This commit is contained in:
Matthias Krüger 2025-12-29 12:59:11 +01:00 committed by GitHub
commit fc8230ffd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View file

@ -36,7 +36,8 @@ use crate::{mem, ptr};
///
/// To fix this we could use `MaybeDangling`:
///
/// ```rust
// FIXME: remove `no_run` once the semantics are actually implemented
/// ```rust,no_run
/// #![feature(maybe_dangling, box_as_ptr)]
/// # use std::alloc::{dealloc, Layout};
/// # use std::mem::{self, MaybeDangling};

View file

@ -56,8 +56,7 @@ check-aux:
# Run standard library tests in Miri.
$(Q)MIRIFLAGS="-Zmiri-strict-provenance" \
$(BOOTSTRAP) miri --stage 2 \
library/coretests \
library/alloctests \
library/core \
library/alloc \
$(BOOTSTRAP_ARGS) \
--no-doc
@ -65,8 +64,7 @@ check-aux:
# so we have to run them with isolation disabled.
$(Q)MIRIFLAGS="-Zmiri-disable-isolation" \
$(BOOTSTRAP) miri --stage 2 \
library/coretests \
library/alloctests \
library/core \
library/alloc \
$(BOOTSTRAP_ARGS) \
--doc