Skip to content

An unknown method names the one most likely meant (#3521) - #3523

Merged
ehartford merged 2 commits into
mainfrom
method-suggestion
Nov 22, 2026
Merged

ehartford merged 2 commits into
mainfrom
method-suggestion

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Stream.lzma_easy_encoder(...) on a fetched xz contract said only unknown method 'lzma_easy_encoder' for type 'Stream'; the constructor is presented as Stream.easy_encoder, and the only way to learn that was WITH_DUMP_FACADE=1.

An unknown method now suggests one of the type's methods: a close spelling (as an unknown variable does), or the same name with or without a prefix.

error: unknown method 'note_open' for type 'Note'
  = help: did you mean `open`?

Tests: err_unknown_method_suggests_the_close_one, err_unknown_facade_constructor_suggests_presented_name, failing on the previous compiler.

Part of #3521; the constants half follows (ruled 2026-11-21: parity between the two routes).

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