-
Notifications
You must be signed in to change notification settings - Fork 62
Weird fix in tuple-pattern #100
Comments
Oh, wow, that is… horrible. Rustfix seems to mess up the byte indices for some reason. |
@killercup |
@killercup
fix:
meta:
|
@csmoe are you using rustfix master? Or the released version that's used in rustc's compiletest? I just built rust-lang/rust#50675 locally, linked it with rustup as
It works! :O Same for this: fn main() {
let (mut var, unused_var) = (1, 2);
} which becomes fn main() {
let (_var, _unused_var) = (1, 2);
} Feel free to ping me on gitter or irc or discord, too! |
Oh, and using rustc nightly from 2018-05-09 fails with |
This should be fixed in rustfix master. Let's close this issue in a follow-up PR to rust-lang/rust#50675 that adds the appropriate rustfix tests to rustc. |
When dealing with Reduce unused variable span, the fix keeps failing.
src:
suggestion:
fixed:
NOTE: the failed fix occurs both in current
unreduce_var_span
andreduced_var_span
after the PR.The text was updated successfully, but these errors were encountered: