fn generate_probe_deprecation_attribute(
        &self,
        provider: &ProviderSpecification,
    ) -> TokenStream {
        let deprecation_message = format!( "Probe methods should not be called directly.  Use the `probe!` macro, e.g. `probe!({}::{}(...))`",
            provider.item_trait().ident,
            self.spec().method_name);
        let span = self.spec().method_name.span();

        quote_spanned! {span=>
            #[deprecated(note = #deprecation_message)]
        }
    }
/// Generates the `#[deprecated...]` attribute which triggers a warning if anyone tries to call the
/// probe method directly, not through the `probe!` attribute
Generates the `#[deprecated...]` attribute which triggers a warning if anyone tries to call the
probe method directly, not through the `probe!` attribute
Generates the ` # [ deprecated ... ] ` attribute which triggers a warning if anyone tries to call the probe method directly not through the ` probe! ` attribute
fn generate_probe_deprecation_attribute(
        &self,
        provider: &ProviderSpecification,
    ) -> TokenStream {
        let deprecation_message = format!( "Probe methods should not be called directly.  Use the `probe!` macro, e.g. `probe!({}::{}(...))`",
            provider.item_trait().ident,
            self.spec().method_name);
        let span = self.spec().method_name.span();
        quote_spanned! {span=>
            #[deprecated(note = #deprecation_message)]
        }
    }
fn generate_probe_deprecation_attribute ( & self , provider : & ProviderSpecification , ) -> TokenStream { let deprecation_message = format ! ( " " provider item_trait ( ) ident self spec ( ) method_name ) ; let span = self . spec ( ) . method_name . span ( ) ; quote_spanned ! { span [ deprecated ( note deprecation_message ) ] } }
Generates the `#[deprecated...]` attribute which triggers a warning if anyone tries to call the
probe method directly, not through the `probe!` attribute
Generates the ` # [ deprecated ... ] ` attribute which triggers a warning if anyone tries to call the probe method directly not through the ` probe! ` attribute
&self
provider
&ProviderSpecification
&self
provider
&ProviderSpecification