]> git.lizzy.rs Git - rust.git/commit
Suggest correct cast for struct fields with shorthand syntax
authorEsteban Küber <esteban@kuber.com.ar>
Sun, 20 Jan 2019 04:18:56 +0000 (20:18 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Sun, 20 Jan 2019 04:18:56 +0000 (20:18 -0800)
commitb36bf76dec593269b3c5006c38063315bed5ad51
tree4912fc570762b4cbc2a43426b7ec0dde3a3758cb
parent0c0c585281740aba4c91cbfd385f5e1fbe313d11
Suggest correct cast for struct fields with shorthand syntax
src/librustc_typeck/check/demand.rs
src/test/ui/suggestions/type-mismatch-struct-field-shorthand-2.rs [new file with mode: 0644]
src/test/ui/suggestions/type-mismatch-struct-field-shorthand-2.stderr [new file with mode: 0644]
src/test/ui/suggestions/type-mismatch-struct-field-shorthand.fixed [new file with mode: 0644]
src/test/ui/suggestions/type-mismatch-struct-field-shorthand.rs [new file with mode: 0644]
src/test/ui/suggestions/type-mismatch-struct-field-shorthand.stderr [new file with mode: 0644]