You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…blyxyas
Ignore underscore-prefixed args for needless_pass_by_value lint
When a user explicitly tags a param as unused (yet?), there is no need to raise another lint on it.
fixesrust-lang#7295
Note that I had to rename all `_*` params in the tests, but kept the variable name length to avoid extra changes in the expected output.
changelog: [`needless_pass_by_value`]: do not warn if the argument name starts with an `_`
This code:
Fails with the message:
'index out of bounds: the len is 1 but the index is 1', /home/james/projects/rust/compiler/src/librustc/middle/subst.rs:58
Seems to be getting mixed up with the trait parameters, if I add another type parameter to
Foo
, I get an index of 2, instead of 1.The text was updated successfully, but these errors were encountered: