about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-10-04 12:20:15 +0200
committerGitHub <noreply@github.com>2018-10-04 12:20:15 +0200
commitbc2859d5a647a78898ced8bf1e7ecf7ba41739a1 (patch)
tree760b6586aea80717f601d62f6e1287fbced39d66 /src/rustllvm/RustWrapper.cpp
parentcbc9477bda3388062274e835523266bbd2029227 (diff)
parentf0de294a9b6d09b9933c1a22419831ac4bc49ca9 (diff)
downloadrust-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