@@ -475,7 +475,7 @@ impl Item {
475475 cx : & mut DocContext < ' _ > ,
476476 cfg : Option < Arc < Cfg > > ,
477477 ) -> Item {
478- trace ! ( "name={:?}, def_id={:?} cfg={:?}" , name, def_id, cfg) ;
478+ tracing :: trace!( "name={:?}, def_id={:?} cfg={:?}" , name, def_id, cfg) ;
479479
480480 // Primitives and Keywords are written in the source code as private modules.
481481 // The modules need to be private so that nobody actually uses them, but the
@@ -504,9 +504,9 @@ impl Item {
504504 . map_or ( & [ ] [ ..] , |v| v. as_slice ( ) )
505505 . iter ( )
506506 . filter_map ( |ItemLink { link : s, link_text, page_id : did, ref fragment } | {
507- debug ! ( ?did) ;
507+ tracing :: debug!( ?did) ;
508508 if let Ok ( ( mut href, ..) ) = href ( * did, cx) {
509- debug ! ( ?href) ;
509+ tracing :: debug!( ?href) ;
510510 if let Some ( ref fragment) = * fragment {
511511 fragment. render ( & mut href, cx. tcx ( ) )
512512 }
@@ -1197,7 +1197,7 @@ impl Attributes {
11971197 let mut other_attrs = ast:: AttrVec :: new ( ) ;
11981198 for ( attr, parent_module) in attrs {
11991199 if let Some ( ( doc_str, comment_kind) ) = attr. doc_str_and_comment_kind ( ) {
1200- trace ! ( "got doc_str={doc_str:?}" ) ;
1200+ tracing :: trace!( "got doc_str={doc_str:?}" ) ;
12011201 let doc = beautify_doc_string ( doc_str, comment_kind) ;
12021202 let kind = if attr. is_doc_comment ( ) {
12031203 DocFragmentKind :: SugaredDoc
@@ -1929,7 +1929,7 @@ impl PrimitiveType {
19291929 for & crate_num in tcx. crates ( ( ) ) {
19301930 let e = ExternalCrate { crate_num } ;
19311931 let crate_name = e. name ( tcx) ;
1932- debug ! ( ?crate_num, ?crate_name) ;
1932+ tracing :: debug!( ?crate_num, ?crate_name) ;
19331933 for & ( def_id, prim) in & e. primitives ( tcx) {
19341934 // HACK: try to link to std instead where possible
19351935 if crate_name == sym:: core && primitive_locations. contains_key ( & prim) {
0 commit comments