Skip to content

List.len is declared in the standard library (the first built-in method with a body, #3483); five contract help fixtures (#3129) - #3489

Merged
ehartford merged 2 commits into
mainfrom
builtin-bodies-pilot
Nov 20, 2026
Merged

ehartford merged 2 commits into
mainfrom
builtin-bodies-pilot

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Part of #3483 and of #3129.

List.len in the standard library. pub fn len() -> isize: self.len as isize in impl[T] List[T]. A declaration in std takes precedence over the compiler's built-in at a call and as a method value (List[i32].len), so built-in methods can move into the library one at a time (D110: built-in container methods have declared signatures).

Five fixtures (#3129) that pin a contract refusal together with its help line: valid on failed on a function whose first parameter receives no resource; a handle operation that states more than a lend; rename on a call presented under its C name; callback_thread any with no callback; abandon naming a function with a second parameter.

Battery green; :release-checks green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant