@@ -1257,25 +1257,11 @@ pub struct MaybeEnteredTraceSpan {
1257
1257
/// This is like [rustc_const_eval::enter_trace_span] except that it does not depend on the
1258
1258
/// [Machine] trait to check if tracing is enabled, because from the Miri codebase we can directly
1259
1259
/// check whether the "tracing" feature is enabled, unlike from the rustc_const_eval codebase.
1260
- ///
1261
- /// In addition to the syntax accepted by [tracing::span!], this macro optionally allows passing
1262
- /// the span name (i.e. the first macro argument) in the form `NAME::SUBNAME` (without quotes) to
1263
- /// indicate that the span has name "NAME" (usually the name of the component) and has an additional
1264
- /// more specific name "SUBNAME" (usually the function name). The latter is passed to the [tracing]
1265
- /// infrastructure as a span field with the name "NAME". This allows not being distracted by
1266
- /// subnames when looking at the trace in <https://ui.perfetto.dev>, but when deeper introspection
1267
- /// is needed within a component, it's still possible to view the subnames directly in the UI by
1268
- /// selecting a span, clicking on the "NAME" argument on the right, and clicking on "Visualize
1269
- /// argument values".
1270
- /// ```rust
1271
- /// // for example, the first will expand to the second
1272
- /// enter_trace_span!(borrow_tracker::on_stack_pop, /* ... */)
1273
- /// enter_trace_span!("borrow_tracker", borrow_tracker = "on_stack_pop", /* ... */)
1274
- /// ```
1260
+ /// Look at [rustc_const_eval::enter_trace_span] for complete documentation, examples and tips.
1275
1261
#[ macro_export]
1276
1262
macro_rules! enter_trace_span {
1277
1263
( $name: ident :: $subname: ident $( $tt: tt) * ) => { {
1278
- enter_trace_span!( stringify!( $name) , $name = %stringify!( $subname) $( $tt) * )
1264
+ $crate :: enter_trace_span!( stringify!( $name) , $name = %stringify!( $subname) $( $tt) * )
1279
1265
} } ;
1280
1266
1281
1267
( $( $tt: tt) * ) => {
0 commit comments