File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/rustc_hir_typeck Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ hir_typeck_option_result_asref = use `{$def_path}::as_ref` to convert `{$expecte
123
123
hir_typeck_option_result_cloned = use `{ $def_path } ::cloned` to clone the value inside the `{ $def_path } `
124
124
hir_typeck_option_result_copied = use `{ $def_path } ::copied` to copy the value inside the `{ $def_path } `
125
125
126
- hir_typeck_ptr_cast_add_auto_to_object = adding an auto { $traits_len ->
127
- [ 1 ] trait { $traits }
128
- *[ other ] traits { $traits }
126
+ hir_typeck_ptr_cast_add_auto_to_object = adding { $traits_len ->
127
+ [ 1 ] an auto trait { $traits }
128
+ *[ other ] auto traits { $traits }
129
129
} to a trait object in a pointer cast may cause UB later on
130
130
131
131
hir_typeck_remove_semi_for_coerce = you might have meant to return the `match` expression
Original file line number Diff line number Diff line change @@ -808,7 +808,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
808
808
m_src : ty:: TypeAndMut < ' tcx > ,
809
809
m_dst : ty:: TypeAndMut < ' tcx > ,
810
810
) -> Result < CastKind , CastError > {
811
- debug ! ( "check_ptr_ptr_cast m_expr={ :?} m_cast={ :?}" , m_src , m_dst ) ;
811
+ debug ! ( "check_ptr_ptr_cast m_src={m_src :?} m_dst={m_dst :?}" ) ;
812
812
// ptr-ptr cast. vtables must match.
813
813
814
814
let src_kind = fcx. tcx . erase_regions ( fcx. pointer_kind ( m_src. ty , self . span ) ?) ;
You can’t perform that action at this time.
0 commit comments