chore(joinir): quiet legacy promoted lookup warning
This commit is contained in:
@ -179,8 +179,13 @@ impl<'a> ScopeManager for Pattern2ScopeManager<'a> {
|
||||
}
|
||||
|
||||
// 4. Promoted LoopBodyLocal → Carrier lookup(命名規約は CarrierInfo 側に集約)
|
||||
// Phase 77: promoted_bindings は導入済みだが、ここ(ScopeManager::lookup)は依然として
|
||||
// “name-only” 入力なので、legacy の name-based promoted 解決を残す。
|
||||
#[allow(deprecated)]
|
||||
{
|
||||
self.carrier_info.resolve_promoted_join_id(name)
|
||||
}
|
||||
}
|
||||
|
||||
fn scope_of(&self, name: &str) -> Option<VarScopeKind> {
|
||||
// Check loop variable first
|
||||
@ -261,8 +266,6 @@ impl<'a> ScopeManager for Pattern2ScopeManager<'a> {
|
||||
/// promoters populate promoted_bindings map and all call sites provide BindingId.
|
||||
#[cfg(feature = "normalized_dev")]
|
||||
fn lookup_with_binding(&self, binding_id: Option<BindingId>, name: &str) -> Option<ValueId> {
|
||||
use crate::mir::BindingId;
|
||||
|
||||
if let Some(bid) = binding_id {
|
||||
// Step 1: Try direct BindingId lookup in ConditionEnv (Phase 75)
|
||||
if let Some(value_id) = self.condition_env.resolve_var_with_binding(Some(bid), name) {
|
||||
|
||||
Reference in New Issue
Block a user