This repository was archived by the owner on May 28, 2025. It is now read-only.
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
123123hir_typeck_option_result_cloned = use `{ $def_path } ::cloned` to clone the value inside the `{ $def_path } `
124124hir_typeck_option_result_copied = use `{ $def_path } ::copied` to copy the value inside the `{ $def_path } `
125125
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 }
129129} to a trait object in a pointer cast may cause UB later on
130130
131131hir_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> {
808808 m_src : ty:: TypeAndMut < ' tcx > ,
809809 m_dst : ty:: TypeAndMut < ' tcx > ,
810810 ) -> 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 :?}" ) ;
812812 // ptr-ptr cast. vtables must match.
813813
814814 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