Add help note when using type in place of const#75611
Conversation
1ea9ffc to
b3481d0
Compare
90071ef to
8d32a26
Compare
f232056 to
c70d1f7
Compare
There was a problem hiding this comment.
awesome ✨
will try and review the actual code changes next week.
|
☔ The latest upstream changes (presumably #75797) made this pull request unmergeable. Please resolve the merge conflicts. |
c70d1f7 to
bdcbadb
Compare
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
b11589d to
4a21039
Compare
|
☔ The latest upstream changes (presumably #74862) made this pull request unmergeable. Please resolve the merge conflicts. |
4a21039 to
698ef42
Compare
6abde86 to
714c59b
Compare
714c59b to
96bb2c8
Compare
|
@bors r+ |
|
📌 Commit 96bb2c8 has been approved by |
|
☀️ Test successful - checks-actions, checks-azure |
improve type const mismatch errors Doesn't completely remove `check_generic_arg_count` as that would have required some more complex changes but instead checks type and const params in only one step. Also moved the help added by `@JulianKnodt` in rust-lang#75611 to `generic_arg_mismatch_err`. r? `@varkor` cc `@petrochenkov`
This adds a small help note when it might be possible that wrapping a parameter in braces might resolve the issue of having a type where a const was expected.
Currently, I am displaying the
HirId, and I'm not particularly sure where to get the currently displayed path(?).r? @lcnr