From 13a7fcd369f16243d0d1407e94d3f78081d5651a Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Fri, 25 Sep 2020 17:08:56 -0700 Subject: [PATCH] stop inlining functions that might get the current dispatcher Signed-off-by: Eliza Weisman --- tracing-core/src/event.rs | 2 -- tracing/src/span.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/tracing-core/src/event.rs b/tracing-core/src/event.rs index 1c4b7a7936..2c886ced47 100644 --- a/tracing-core/src/event.rs +++ b/tracing-core/src/event.rs @@ -29,7 +29,6 @@ pub struct Event<'a> { impl<'a> Event<'a> { /// Constructs a new `Event` with the specified metadata and set of values, /// and observes it with the current subscriber. - #[inline] pub fn dispatch(metadata: &'static Metadata<'static>, fields: &'a field::ValueSet<'_>) { let event = Event::new(metadata, fields); crate::dispatcher::get_default(|current| { @@ -69,7 +68,6 @@ impl<'a> Event<'a> { /// Constructs a new `Event` with the specified metadata and set of values, /// and observes it with the current subscriber and an explicit parent. - #[inline] pub fn child_of( parent: impl Into>, metadata: &'static Metadata<'static>, diff --git a/tracing/src/span.rs b/tracing/src/span.rs index 574dd7e3a3..52aa6a5a2b 100644 --- a/tracing/src/span.rs +++ b/tracing/src/span.rs @@ -404,7 +404,6 @@ impl Span { /// [`Subscriber`]: ../subscriber/trait.Subscriber.html /// [field values]: ../field/struct.ValueSet.html /// [`follows_from`]: ../struct.Span.html#method.follows_from - #[inline] pub fn new(meta: &'static Metadata<'static>, values: &field::ValueSet<'_>) -> Span { dispatcher::get_default(|dispatch| Self::new_with(meta, values, dispatch)) } @@ -429,7 +428,6 @@ impl Span { /// [metadata]: ../metadata /// [field values]: ../field/struct.ValueSet.html /// [`follows_from`]: ../struct.Span.html#method.follows_from - #[inline] pub fn new_root(meta: &'static Metadata<'static>, values: &field::ValueSet<'_>) -> Span { dispatcher::get_default(|dispatch| Self::new_root_with(meta, values, dispatch)) }