-
Notifications
You must be signed in to change notification settings - Fork 975
Closed
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICES-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR
Description
Describe the bug
rustfmt crashes:
thread 'main' panicked at 'bad span: .: ``', src/tools/rustfmt/src/source_map.rs:52:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
It seems to be caused by having the tuple of tuples access chained. Removing the final .0 and .1 makes it disappear.
To Reproduce
impl Drop for LockGuard {
fn drop(&mut self) {
LockMap::unlock(&self.0.0, &self.0.1);
}
}Meta
- rustfmt version: rustfmt 1.4.20-nightly (48f6c32 2020-08-09)
- From where did you install rustfmt?: rustup
- How do you run rustfmt: cargo fmt, but it reproduces when running manually too
Metadata
Metadata
Assignees
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICES-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR