- Deprecations: add warn-once for nyash.toml (runtime::deprecations); apply in plugin loader v2 (singletons/method_resolver) - Child env + runner hygiene: unify Stage‑3/quiet/disable-fallback env in test/runner; expand LLVM noise filters - Docs/branding: prefer and hako.toml in README.md/README.ja.md and smokes README - VM: implement Map.clear in MIR interpreter (boxes_map) - Stage‑B: gate bundle/alias/require smokes behind SMOKES_ENABLE_STAGEB; fix include cwd and resolve() call even for require-only cases - Core‑Direct: gate rc boundary canary behind SMOKES_ENABLE_CORE_DIRECT - Smokes: inject Stage‑3 and disable selfhost fallback for LLVM runs; filter using/* logs - Quick profile: 168/168 PASS locally This commit accelerates Phase 20.33 (80/20) by stabilizing quick suite, reducing noise, and gating heavy/experimental paths for speed.
21 lines
529 B
Rust
21 lines
529 B
Rust
//! Deprecation warnings with "warn once" guards
|
|
use std::sync::OnceLock;
|
|
|
|
fn warn_once(flag: &'static OnceLock<()>, msg: &str) {
|
|
if flag.get().is_none() {
|
|
let _ = flag.set(());
|
|
eprintln!("{}", msg);
|
|
}
|
|
}
|
|
|
|
static NYASH_TOML_WARN_ONCE: OnceLock<()> = OnceLock::new();
|
|
|
|
/// Warn once per process when nyash.toml is used while hako.toml is absent.
|
|
pub fn warn_nyash_toml_used_once() {
|
|
warn_once(
|
|
&NYASH_TOML_WARN_ONCE,
|
|
"[deprecate] using nyash.toml; please rename to hako.toml",
|
|
);
|
|
}
|
|
|