Repository navigation
nested ref copy - #2515
Merged
Merged
nested ref copy#2515
Conversation
… layer (D139, #2220 step 2) D22 section 7.4 applies per reference layer: a view is Copy, so `&&i64` reads through both layers where an i64 is demanded, as `&&str` already did (D111). The one-layer cap on non-str pointees in contextual_copy_value_type is removed. A list iterator that yields `&T` hands a filter predicate `&&i64`; `filter(it % 2 == 1)` compiles. Delegated under D98; spec section 3 carries the sentence; fixture fails on the installed compiler.
…&` on a view warns Eric (2026-10-20): every layer; the two older compile-error fixtures lose (they encoded behavior no ruling made, and a later ruling that contradicts such a test wins -- recorded with D139). `rr == 42` with `rr: &&i32` compiles and compares values; `take_i32(&first)` with `first: &i32` compiles with a redundant-`&` warning. Edges: reads of Copy values only (a view of a view of a Drop type still does not materialize: fixture); generics agree (`==` on a T instantiated with `&i32` compares values: fixture). filter over a view iterator takes its predicate without `*it`.
Contributor
Author
|
Battery GREEN on the stack's top commit 10e81d0 (conan-retry worktree, seed nightly-20261020-local-3): gate, uat and battery-checks green. Three earlier runs were red on UAT only, each a resolver or download stall on this laptop's network (#2517 carries the evidence); every other target was green in all four runs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
D139, ruled by Eric 2026-10-20 (#2220 step 2): D22 §7.4 applies at every reference layer — a view of a view of a Copy value carries no information beyond the value, so
&&i64meets an ownedi64demand by reading through both layers. The two older compile-error fixtures that said otherwise lose (they encoded behavior no ruling made; recorded principle: a later ruling that contradicts such a test wins):rr == 42withrr: &&i32compiles and compares values;take_i32(&first)withfirst: &i32compiles with a new redundant-&warning. Edges, each with a fixture: reads of Copy values only (a view of a view of a Drop type still does not materialize,err_d139_nested_view_of_non_copy_does_not_materialize.w); generics agree (==on a T instantiated with&i32compares values, inbehav_d139_nested_view_reads.w, which also coversfilter(it % 2 == 1)over a view iterator with no*it). Decision recorddocs/meetings/2026-10-20-D139-…, spec §3 sentence. Gate green (190 s). Layer 4 of stack #2516.