diff options
| author | bors <bors@rust-lang.org> | 2019-01-19 12:40:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-01-19 12:40:46 +0000 |
| commit | e648adf0866a1cea7db6ce2d33ea86e442f25377 (patch) | |
| tree | 740cb55e7d97173979e4bda84cb91a19a650bdfd /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | 751d82e825d7c309ce4ebda84fa7d88ed4f363eb (diff) | |
| parent | 2ee713dc7bcc8e9bb7223b49451ec6ac9685f4c6 (diff) | |
| download | rust-e648adf0866a1cea7db6ce2d33ea86e442f25377.tar.gz rust-e648adf0866a1cea7db6ce2d33ea86e442f25377.zip | |
Auto merge of #3674 - sinkuu:fmt_rustup, r=oli-obk
Catch up with `format_args` change
Catches up with a change in rust-lang/rust#57537. (Since the optimization is optional, this clippy PR can be merged before the rustc PR.)
Happened to fix a bug in `expect_fun_call`, that is the lint ignores more than
one arguments to `format`.
```
warning: use of `expect` followed by a function call
--> src/main.rs:2:17
|
2 | Some("foo").expect(format!("{} {}", 1, 2).as_ref());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("{} {}", 1))`
|
```
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
