Closed
Description
I downloaded the current stable branch, and set up this sample crate to detect if the test is running in merged mode.
//! ```rust
//! let location = std::panic::Location::caller();
//! assert_eq!(location.line(), 11);
//! ```
If I run RUSTC_BOOTSTRAP=1 cargo +stable test
it passes. If I drop the bootstrap env, it fails.
rust/src/librustdoc/doctest/runner.rs
Lines 74 to 77 in f4a216d
Meta
rustc --version --verbose
:
rustc 1.85.0 (4d91de4e4 2025-02-17)
binary: rustc
commit-hash: 4d91de4e48198da2e33413efdcd9cd2cc0c46688
commit-date: 2025-02-17
host: aarch64-apple-darwin
release: 1.85.0
LLVM version: 19.1.7
Metadata
Metadata
Assignees
Labels
Area: Documentation tests, run by rustdocArea: The 2024 editionCategory: This is a bug.Issue: This issue has been reviewed and triaged by the Edition team.Issue: Problems and improvements with respect to performance of generated code.Critical priorityRelevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Projects
Status
Done