diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-01-21 02:21:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-21 02:21:56 +0100 |
| commit | 3bb9fc4007405f76a3807cc268b3c1c5f1067e52 (patch) | |
| tree | 1744e7bc83f863d4fb748db70c71f5af48041757 /src/rustllvm/PassWrapper.cpp | |
| parent | 627e001a722d0aa1c8db0523ed26c25f775570f4 (diff) | |
| parent | 5b44b3cb1b2bc2f93520fe1339d93efe8439238c (diff) | |
| download | rust-3bb9fc4007405f76a3807cc268b3c1c5f1067e52.tar.gz rust-3bb9fc4007405f76a3807cc268b3c1c5f1067e52.zip | |
Rollup merge of #57769 - estebank:cast-suggestion-struct-field, r=matthewjasper
Suggest correct cast for struct fields with shorthand syntax
```
error[E0308]: mismatched types
--> $DIR/type-mismatch-struct-field-shorthand.rs:8:19
|
LL | let _ = RGB { r, g, b };
| ^ expected f64, found f32
help: you can cast an `f32` to `f64` in a lossless way
|
LL | let _ = RGB { r: r.into(), g, b };
| ^^^^^^^^^^^
```
Fix #52497.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
