ResultBox migration (stage 0): suppress legacy deprecation warnings in box_trait impls; keep dual handling in VM. Fix verifier Display for SuspiciousBarrierContext. Expose VM stats fields to vm_stats module. CLI core_ci guide and script in place.

This commit is contained in:
Moe Charm
2025-08-26 01:42:18 +09:00
parent 7705508b99
commit 9c94e88b86
13 changed files with 408 additions and 36 deletions

View File

@ -729,6 +729,7 @@ pub struct ResultBox {
base: BoxBase,
}
#[allow(deprecated)]
impl ResultBox {
pub fn new_success(value: Box<dyn NyashBox>) -> Self {
Self {
@ -772,6 +773,7 @@ impl ResultBox {
}
}
#[allow(deprecated)]
impl BoxCore for ResultBox {
fn box_id(&self) -> u64 {
self.base.id
@ -794,6 +796,7 @@ impl BoxCore for ResultBox {
}
}
#[allow(deprecated)]
impl NyashBox for ResultBox {
fn to_string_box(&self) -> StringBox {
if self.is_success {
@ -863,6 +866,7 @@ impl NyashBox for ResultBox {
}
}
#[allow(deprecated)]
impl Display for ResultBox {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
self.fmt_box(f)