select: finish takes the widest-pin choice it reads

c53ea4164e made lower::select::finish read `widest_pin` (whether a plan made again past its
driver's stage bound keeps the widest mode's pin), but only select() had it, as a parameter that
was never passed on. The metal2vulkan library did not compile at c53ea4164e or f10af8e35a
(E0425 at select.rs, and the parameter unused in select). select now hands it to finish.

The checks quoted for c53ea4164e never compiled the library: rustdoc (the only step that passed
in 25736) does not type-check function bodies, and 25748 at f10af8e35a stopped at this E0425.

Verified: the change is the one-argument pass-through; its compile and suite check is the pin-71
merged check at this tip (msi). No version bump: the translator's output is what c53ea4164e meant
(SEMANTICS 2091).
This commit is contained in:
Anees Iqbal committed 2026-11-13 09:09:43 -08:00
1 parent f10af8e35a
commit f51f600047
1 file changed
+2 -1
+2 -1
View File
@@ -1296,7 +1296,7 @@ fn select_entry(
// The specialized notes' clauses are held until `finish` resolves them, and the facts until it
// moves them into the plan.
let noted = cx.noted;
let result = selected.and_then(|sel| finish(cx, sel, &mut fact_bytes, m));
let result = selected.and_then(|sel| finish(cx, sel, widest_pin, &mut fact_bytes, m));
m.release(noted);
m.release(fact_bytes.charged());
m.release(bytes);
@@ -1610,6 +1610,7 @@ fn select_body(
fn finish(
mut cx: SelectCx<'_>,
mut sel: BodySelection,
widest_pin: simd::WidestPin,
fact_bytes: &mut Growth,
m: &mut Meter,
) -> Result<Plan, Error> {