@@ -164,7 +164,7 @@ fn try_find_local_var_id(
164164 return Some ( emit_resource_ref ( s, n, path) ) ;
165165 }
166166 }
167- log :: debug!( "path is {:?}\n " , path) ;
167+ tracing :: debug!( "path is {:?}\n " , path) ;
168168 let mut path = path. iter ( ) . rev ( ) ;
169169 let name = kebab_to_type ( path. next ( ) . unwrap ( ) . name ( ) ) ;
170170 let owner = path. next ( ) ;
@@ -216,7 +216,7 @@ pub fn emit_var_ref_value(s: &mut State, tv: &Tyvar) -> TokenStream {
216216/// the bound variable being referenced
217217/// - `is_value`: whether this is a value (e.g. constructor) or type context.
218218pub fn emit_var_ref_noff ( s : & mut State , n : u32 , is_value : bool ) -> TokenStream {
219- log :: debug!( "var_ref {:?} {:?}" , & s. bound_vars[ n as usize ] , s. origin) ;
219+ tracing :: debug!( "var_ref {:?} {:?}" , & s. bound_vars[ n as usize ] , s. origin) ;
220220 // if the variable was defined locally, try to reference it directly
221221 let id = try_find_local_var_id ( s, n) ;
222222 let id = match id {
@@ -317,7 +317,7 @@ pub fn emit_value(s: &mut State, vt: &Value) -> TokenStream {
317317 wrap ( emit_var_ref ( s, tv) )
318318 } else {
319319 let n = crate :: hl:: resolve_handleable_to_resource ( s, ht) ;
320- log :: debug!( "resolved ht to r (4) {:?} {:?}" , ht, n) ;
320+ tracing :: debug!( "resolved ht to r (4) {:?} {:?}" , ht, n) ;
321321 let id = format_ident ! ( "HostResource{}" , n) ;
322322 wrap ( quote ! { #id } )
323323 }
@@ -339,7 +339,7 @@ pub fn emit_value(s: &mut State, vt: &Value) -> TokenStream {
339339 wrap ( emit_var_ref ( s, tv) )
340340 } else {
341341 let n = crate :: hl:: resolve_handleable_to_resource ( s, ht) ;
342- log :: debug!( "resolved ht to r (5) {:?} {:?}" , ht, n) ;
342+ tracing :: debug!( "resolved ht to r (5) {:?} {:?}" , ht, n) ;
343343 let id = format_ident ! ( "HostResource{}" , n) ;
344344 wrap ( quote ! { #id } )
345345 }
@@ -619,7 +619,7 @@ fn emit_extern_decl<'a, 'b, 'c>(
619619 s : & ' c mut State < ' a , ' b > ,
620620 ed : & ' c ExternDecl < ' b > ,
621621) -> TokenStream {
622- log :: debug!( " emitting decl {:?}" , ed. kebab_name) ;
622+ tracing :: debug!( " emitting decl {:?}" , ed. kebab_name) ;
623623 match & ed. desc {
624624 ExternDesc :: CoreModule ( _) => panic ! ( "core module (im/ex)ports are not supported" ) ,
625625 ExternDesc :: Func ( ft) => {
@@ -749,7 +749,7 @@ fn emit_extern_decl<'a, 'b, 'c>(
749749/// Emit (via mutating `s`) a Rust trait declaration corresponding to
750750/// this instance type
751751fn emit_instance < ' a , ' b , ' c > ( s : & ' c mut State < ' a , ' b > , wn : WitName , it : & ' c Instance < ' b > ) {
752- log :: debug!( "emitting instance {:?}" , wn) ;
752+ tracing :: debug!( "emitting instance {:?}" , wn) ;
753753 let mut s = s. with_cursor ( wn. namespace_idents ( ) ) ;
754754
755755 let name = kebab_to_type ( wn. name ) ;
@@ -801,7 +801,7 @@ fn emit_instance<'a, 'b, 'c>(s: &'c mut State<'a, 'b>, wn: WitName, it: &'c Inst
801801 }
802802
803803 drop ( sv) ;
804- log :: debug!( "after exports, ncur_needs_vars is {:?}" , needs_vars) ;
804+ tracing :: debug!( "after exports, ncur_needs_vars is {:?}" , needs_vars) ;
805805 for v in needs_vars {
806806 let id = s. noff_var_id ( v) ;
807807 s. cur_trait ( ) . tvs . insert ( id, ( Some ( v) , TokenStream :: new ( ) ) ) ;
0 commit comments