-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed as not planned
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-internal-featuresThis issue requires the use of internal features.This issue requires the use of internal features.
Description
Code
#![feature(rustc_private)]
extern crate rustc_session;
extern crate rustc_driver;
fn main() {
let parse_sess = rustc_session::parse::ParseSess::new(vec![]);
}Meta
rustc --version --verbose:
rustc 1.87.0-nightly (43f0014ef 2025-03-25)
binary: rustc
commit-hash: 43f0014ef0f242418674f49052ed39b70f73bc1c
commit-date: 2025-03-25
host: aarch64-apple-darwin
release: 1.87.0-nightly
LLVM version: 20.1.1
Error output
thread 'main' panicked at /rust/deps/scoped-tls-1.0.1/src/lib.rs:168:9:
cannot access a scoped thread local variable without calling `set` first
Backtrace
thread 'main' panicked at /rust/deps/scoped-tls-1.0.1/src/lib.rs:168:9:
cannot access a scoped thread local variable without calling `set` first
stack backtrace:
0: std::panicking::begin_panic
1: <rustc_session::parse::ParseSess>::with_dcx
2: <rustc_session::parse::ParseSess>::new
3: testcrash::main
at ./src/main.rs:6:22
4: core::ops::function::FnOnce::call_once
at /Users/me/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-internal-featuresThis issue requires the use of internal features.This issue requires the use of internal features.