Skip to content

Commit e77cc1d

Browse files
author
Jonathan Turner
authored
Rollup merge of rust-lang#35291 - yossi-k:master, r=jonathandturner
Update E0079 to new format Fixes rust-lang#35222. Part of rust-lang#35233. r? @GuillaumeGomez
2 parents ca0cdf1 + 7fc0b2f commit e77cc1d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/librustc_typeck/collect.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,7 @@ fn convert_struct_def<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
10571057
let print_err = |cv: ConstVal| {
10581058
struct_span_err!(ccx.tcx.sess, e.span, E0079, "mismatched types")
10591059
.note_expected_found(&"type", &ty_hint, &format!("{}", cv.description()))
1060+
.span_label(e.span, &format!("expected '{}' type", ty_hint))
10601061
.emit();
10611062
};
10621063

src/test/compile-fail/E0079.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
enum Foo {
1212
Q = "32" //~ ERROR E0079
13+
//~^ expected 'isize' type
1314
}
1415

1516
fn main() {

0 commit comments

Comments
 (0)