@@ -82,12 +82,6 @@ const_eval_double_storage_live =
82
82
const_eval_dyn_call_not_a_method =
83
83
`dyn` call trying to call something that is not a method
84
84
85
- const_eval_dyn_call_vtable_mismatch =
86
- `dyn` call on a pointer whose vtable does not match its type
87
-
88
- const_eval_dyn_star_call_vtable_mismatch =
89
- `dyn*` call on a pointer whose vtable does not match its type
90
-
91
85
const_eval_error = { $error_kind ->
92
86
[ static ] could not evaluate static initializer
93
87
[ const ] evaluation of constant value failed
@@ -192,6 +186,8 @@ const_eval_invalid_uninit_bytes_unknown =
192
186
const_eval_invalid_vtable_pointer =
193
187
using { $pointer } as vtable pointer but it does not point to a vtable
194
188
189
+ const_eval_invalid_vtable_trait =
190
+ using vtable for trait `{ $vtable_trait } ` but trait `{ $expected_trait } ` was expected
195
191
196
192
const_eval_live_drop =
197
193
destructor of `{ $dropped_ty } ` cannot be evaluated at compile-time
@@ -401,9 +397,6 @@ const_eval_unterminated_c_string =
401
397
const_eval_unwind_past_top =
402
398
unwinding past the topmost frame of the stack
403
399
404
- const_eval_upcast_mismatch =
405
- upcast on a pointer whose vtable does not match its type
406
-
407
400
## The `front_matter`s here refer to either `const_eval_front_matter_invalid_value` or `const_eval_front_matter_invalid_value_with_path`.
408
401
## (We'd love to sort this differently to make that more clear but tidy won't let us...)
409
402
const_eval_validation_box_to_static = { $front_matter } : encountered a box pointing to a static variable in a constant
@@ -450,6 +443,7 @@ const_eval_validation_invalid_fn_ptr = {$front_matter}: encountered {$value}, bu
450
443
const_eval_validation_invalid_ref_meta = { $front_matter } : encountered invalid reference metadata: total size is bigger than largest supported object
451
444
const_eval_validation_invalid_ref_slice_meta = { $front_matter } : encountered invalid reference metadata: slice is bigger than largest supported object
452
445
const_eval_validation_invalid_vtable_ptr = { $front_matter } : encountered { $value } , but expected a vtable pointer
446
+ const_eval_validation_invalid_vtable_trait = { $front_matter } : wrong trait in wide pointer vtable: expected `{ $ref_trait } `, but encountered `{ $vtable_trait } `
453
447
const_eval_validation_mutable_ref_to_immutable = { $front_matter } : encountered mutable reference or box pointing to read-only memory
454
448
const_eval_validation_never_val = { $front_matter } : encountered a value of the never type `!`
455
449
const_eval_validation_null_box = { $front_matter } : encountered a null box
0 commit comments