Repository navigation
Fix reversed argument counts in Fn trait mismatch note - #166646
Merged
rust-bors[bot] merged 1 commit intoNov 27, 2026
Merged
Conversation
The "expected a closure taking N arguments, but one taking M arguments was given" note passed the callable's actual argument count where the expected count belongs, and vice versa.
Collaborator
|
r? @mati865 rustbot has assigned @mati865. Use Why was this reviewer chosen?The reviewer was selected based on:
|
JonathanBrouwer
approved these changes
Nov 27, 2026
Contributor
Contributor
Author
|
@rustbot label -WG-trait-system-refactor |
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 27, 2026
…uwer Rollup of 11 pull requests Successful merges: - #165836 (Use LLVM option `-disable-auto-upgrade-debug-info`) - #164783 (callconv: mips64: match gcc for "alignment" of 16-byte-aligned ZSTs) - #166634 (do not lint `drop_bounds`, `dyn_drop`, `trivial_bounds` and const param names on items from external macros) - #166649 (abby dsl: minor refactor/cleanup) - #164628 (callconv: mips64: handle repr(transparent)) - #166387 (Remove diagnostics import list) - #166564 (miri: support statx syscall) - #166583 (abby dsl tests: the passing test should check-pass) - #166595 (specify target CPUs in 'powerpc-types.rs' assembly test) - #166640 (compiletest: Use an explicit argfile instead of ArgFileCommand) - #166646 (Fix reversed argument counts in Fn trait mismatch note)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 27, 2026
Rollup merge of #166646 - bardiharborow:fix-fn-trait-arg-count-note, r=JonathanBrouwer Fix reversed argument counts in Fn trait mismatch note The "expected a closure taking N arguments, but one taking M arguments was given" note passed the callable's actual argument count where the expected count belongs, and vice versa.
mehmettoplu-rs
pushed a commit
to mehmettoplu-rs/miri
that referenced
this pull request
Nov 28, 2026
…uwer Rollup of 11 pull requests Successful merges: - rust-lang/rust#165836 (Use LLVM option `-disable-auto-upgrade-debug-info`) - rust-lang/rust#164783 (callconv: mips64: match gcc for "alignment" of 16-byte-aligned ZSTs) - rust-lang/rust#166634 (do not lint `drop_bounds`, `dyn_drop`, `trivial_bounds` and const param names on items from external macros) - rust-lang/rust#166649 (abby dsl: minor refactor/cleanup) - rust-lang/rust#164628 (callconv: mips64: handle repr(transparent)) - rust-lang/rust#166387 (Remove diagnostics import list) - rust-lang/rust#166564 (miri: support statx syscall) - rust-lang/rust#166583 (abby dsl tests: the passing test should check-pass) - rust-lang/rust#166595 (specify target CPUs in 'powerpc-types.rs' assembly test) - rust-lang/rust#166640 (compiletest: Use an explicit argfile instead of ArgFileCommand) - rust-lang/rust#166646 (Fix reversed argument counts in Fn trait mismatch note)
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.
The "expected a closure taking N arguments, but one taking M arguments was given" note passed the callable's actual argument count where the expected count belongs, and vice versa.
Fixes #166645
@rustbot label +A-diagnostics +D-incorrect