Skip to content

Commit cf7032f

Browse files
committed
Small fixes from review
1 parent 06863ee commit cf7032f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_hir_typeck/messages.ftl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ hir_typeck_option_result_asref = use `{$def_path}::as_ref` to convert `{$expecte
123123
hir_typeck_option_result_cloned = use `{$def_path}::cloned` to clone the value inside the `{$def_path}`
124124
hir_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
131131
hir_typeck_remove_semi_for_coerce = you might have meant to return the `match` expression

compiler/rustc_hir_typeck/src/cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)?);

0 commit comments

Comments
 (0)