@@ -475,7 +475,7 @@ impl Item {
475
475
cx : & mut DocContext < ' _ > ,
476
476
cfg : Option < Arc < Cfg > > ,
477
477
) -> Item {
478
- trace ! ( "name={:?}, def_id={:?} cfg={:?}" , name, def_id, cfg) ;
478
+ tracing :: trace!( "name={:?}, def_id={:?} cfg={:?}" , name, def_id, cfg) ;
479
479
480
480
// Primitives and Keywords are written in the source code as private modules.
481
481
// The modules need to be private so that nobody actually uses them, but the
@@ -504,9 +504,9 @@ impl Item {
504
504
. map_or ( & [ ] [ ..] , |v| v. as_slice ( ) )
505
505
. iter ( )
506
506
. filter_map ( |ItemLink { link : s, link_text, page_id : did, ref fragment } | {
507
- debug ! ( ?did) ;
507
+ tracing :: debug!( ?did) ;
508
508
if let Ok ( ( mut href, ..) ) = href ( * did, cx) {
509
- debug ! ( ?href) ;
509
+ tracing :: debug!( ?href) ;
510
510
if let Some ( ref fragment) = * fragment {
511
511
fragment. render ( & mut href, cx. tcx ( ) )
512
512
}
@@ -1197,7 +1197,7 @@ impl Attributes {
1197
1197
let mut other_attrs = ast:: AttrVec :: new ( ) ;
1198
1198
for ( attr, parent_module) in attrs {
1199
1199
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:?}" ) ;
1201
1201
let doc = beautify_doc_string ( doc_str, comment_kind) ;
1202
1202
let kind = if attr. is_doc_comment ( ) {
1203
1203
DocFragmentKind :: SugaredDoc
@@ -1929,7 +1929,7 @@ impl PrimitiveType {
1929
1929
for & crate_num in tcx. crates ( ( ) ) {
1930
1930
let e = ExternalCrate { crate_num } ;
1931
1931
let crate_name = e. name ( tcx) ;
1932
- debug ! ( ?crate_num, ?crate_name) ;
1932
+ tracing :: debug!( ?crate_num, ?crate_name) ;
1933
1933
for & ( def_id, prim) in & e. primitives ( tcx) {
1934
1934
// HACK: try to link to std instead where possible
1935
1935
if crate_name == sym:: core && primitive_locations. contains_key ( & prim) {
0 commit comments