主要な変更: - MIR Core-13命令セット確定(Load/Store削除の革命的設計) - Const, BinOp, Compare(値・計算) - Jump, Branch, Return, Phi(制御) - Call, BoxCall, ExternCall(呼び出し) - TypeOp, Safepoint, Barrier(メタ) - Phase 12.7糖衣構文ドキュメント整理(超圧縮重視、可逆変換保証) - MIRビルダーのモジュール分割完了 - vtableテストスイート拡充 - AI協調開発ツール追加(並列リファクタリング支援) 詳細: - src/mir/instruction_introspection.rs: core13_instruction_names()追加 - MIRビルダー分割: decls.rs, exprs_*.rs, fields.rs - plugin_loader_v2: errors.rs, host_bridge.rs分離 - 論文用データ: mir13-final.md作成 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
441 B
Rust
17 lines
441 B
Rust
use crate::bid::{BidResult, BidError};
|
|
|
|
// Minimal helpers to keep loader.rs lean and consistent
|
|
#[inline]
|
|
pub fn from_fs<T>(_r: std::io::Result<T>) -> BidResult<T> {
|
|
_r.map_err(|_| BidError::PluginError)
|
|
}
|
|
|
|
#[inline]
|
|
pub fn from_toml<T>(_r: Result<T, toml::de::Error>) -> BidResult<T> {
|
|
_r.map_err(|_| BidError::PluginError)
|
|
}
|
|
|
|
#[inline]
|
|
pub fn or_plugin_err<T>(opt: Option<T>) -> BidResult<T> { opt.ok_or(BidError::PluginError) }
|
|
|