diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-10-04 12:20:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-04 12:20:15 +0200 |
| commit | bc2859d5a647a78898ced8bf1e7ecf7ba41739a1 (patch) | |
| tree | 760b6586aea80717f601d62f6e1287fbced39d66 /src/rustllvm/RustWrapper.cpp | |
| parent | cbc9477bda3388062274e835523266bbd2029227 (diff) | |
| parent | f0de294a9b6d09b9933c1a22419831ac4bc49ca9 (diff) | |
| download | rust-bc2859d5a647a78898ced8bf1e7ecf7ba41739a1.tar.gz rust-bc2859d5a647a78898ced8bf1e7ecf7ba41739a1.zip | |
Rollup merge of #54788 - ljedrz:cleanup_rustc_mir, r=oli-obk
A handful of cleanups for rustc/mir
- use the "regular" `into()` instead of `graphviz::IntoCow` in `mod.rs`
- `format!("{}", x)` > `x.to_string()`
- remove one unnecessary `String` allocation
- shorten the logic of one loop
- `assert!(x == y)` > `assert_eq!(x, y)`
- whitespace & formatting fixes
r? @oli-obk
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
