about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-06-24 12:18:40 +0000
committerbors <bors@rust-lang.org>2017-06-24 12:18:40 +0000
commit3cf9f5d78776c2e7e0cef94864b9bfb77106e142 (patch)
treec2e292d223990f1b9b1f12361c7172d56fb4c833 /src/liballoc_jemalloc
parent7e76505e0105e3102ed14d827dd727afc1c9fd92 (diff)
parent940d5ca3d05ff23767a94b764b6b3658a435ac37 (diff)
downloadrust-3cf9f5d78776c2e7e0cef94864b9bfb77106e142.tar.gz
rust-3cf9f5d78776c2e7e0cef94864b9bfb77106e142.zip
Auto merge of #42541 - gilescope:patch-1, r=alexcrichton
assert_eq failure message easier to read

By having the left and right strings aligned with one another it helps spot the difference between the two far quicker than if they are on the same line.

E.g.
Before:

```
thread 'tests::test_safe_filename' panicked at 'assertion failed: `(left == right)` left:  `"-aandb--S123.html"` right: `"-aandb-S123.html"`',
```

After:

```
thread 'tests::test_safe_filename' panicked at 'assertion failed: `(left == right)`
left:  `"-aandb--S123.html"`
right: `"-aandb-S123.html"`',
```

When the strings are both on the same line it take a lot longer to spot the difference. It is a small change but the small time savings add up with repetition. This would help Rust be an excellent language to write tests in out of the box.

Closes https://github.com/rust-lang/rust/issues/41615
Diffstat (limited to 'src/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions