Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed assertion with file_lines option #3636

Closed
scampi opened this issue Jun 19, 2019 · 2 comments · Fixed by #3640
Closed

Failed assertion with file_lines option #3636

scampi opened this issue Jun 19, 2019 · 2 comments · Fixed by #3640
Labels
bug Panic, non-idempotency, invalid code, etc. only-with-option requires a non-default option value to reproduce p-high

Comments

@scampi
Copy link
Contributor

scampi commented Jun 19, 2019

  • CFG_RELEASE_CHANNEL=nightly cargo run --bin rustfmt -- --check file.rs --unstable-features --file-lines '[{"file":"file.rs","range":[2,5]}]'
  • rustfmt: 1d19a08
fn foo() {
    let x =
        42;
    let y =
        42;
    let z = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
    let z = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";
}
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `6`,
 right: `5`: buffer: fn foo() {
    let x = 42;
    let y = 42;
    let z = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
    let z = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}
', src/formatting.rs:181:9
@scampi scampi added bug Panic, non-idempotency, invalid code, etc. only-with-option requires a non-default option value to reproduce labels Jun 19, 2019
@scampi
Copy link
Contributor Author

scampi commented Jun 19, 2019

related to #3397

@topecongiro
Copy link
Contributor

Possibly related to #3609.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Panic, non-idempotency, invalid code, etc. only-with-option requires a non-default option value to reproduce p-high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants