]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: add extra debug line for method resolve select
authorPhilip Herron <herron.philip@googlemail.com>
Mon, 13 Mar 2023 16:58:59 +0000 (16:58 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:21:11 +0000 (18:21 +0100)
gcc/rust/ChangeLog:

* typecheck/rust-hir-dot-operator.cc (MethodResolver::select): add debug

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/typecheck/rust-hir-dot-operator.cc

index 9f46d13763edb5de6a7def19f39e7ee4972cd59d..d782da8960a67083d2c1a78507192a19c6a8f2d5 100644 (file)
@@ -66,6 +66,9 @@ MethodResolver::try_hook (const TyTy::BaseType &r)
 bool
 MethodResolver::select (TyTy::BaseType &receiver)
 {
+  rust_debug ("MethodResolver::select reciever=[%s]",
+             receiver.debug_str ().c_str ());
+
   struct impl_item_candidate
   {
     HIR::Function *item;