mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-04-11 21:14:30 +00:00
Merge ref 'ba284f468cd2' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.
Upstream ref: rust-lang/rust@ba284f468c
Filtered ref: rust-lang/rust-analyzer@374c09e41e
Upstream diff: 94a0cd15f5...ba284f468c
This merge was created using https://github.com/rust-lang/josh-sync.
This commit is contained in:
@@ -48,7 +48,7 @@ impl Expander {
|
||||
callback: Option<ProcMacroClientHandle<'_>>,
|
||||
) -> Result<TokenStream<S>, PanicMessage>
|
||||
where
|
||||
<S::Server<'a> as bridge::server::Types>::TokenStream: Default,
|
||||
<S::Server<'a> as bridge::server::Server>::TokenStream: Default,
|
||||
{
|
||||
self.inner
|
||||
.proc_macros
|
||||
|
||||
@@ -30,13 +30,11 @@ pub struct RaSpanServer<'a> {
|
||||
pub callback: Option<ProcMacroClientHandle<'a>>,
|
||||
}
|
||||
|
||||
impl server::Types for RaSpanServer<'_> {
|
||||
impl server::Server for RaSpanServer<'_> {
|
||||
type TokenStream = crate::token_stream::TokenStream<Span>;
|
||||
type Span = Span;
|
||||
type Symbol = Symbol;
|
||||
}
|
||||
|
||||
impl server::Server for RaSpanServer<'_> {
|
||||
fn globals(&mut self) -> ExpnGlobals<Self::Span> {
|
||||
ExpnGlobals {
|
||||
def_site: self.def_site,
|
||||
|
||||
@@ -36,13 +36,11 @@ pub struct SpanIdServer<'a> {
|
||||
pub callback: Option<ProcMacroClientHandle<'a>>,
|
||||
}
|
||||
|
||||
impl server::Types for SpanIdServer<'_> {
|
||||
impl server::Server for SpanIdServer<'_> {
|
||||
type TokenStream = crate::token_stream::TokenStream<Span>;
|
||||
type Span = Span;
|
||||
type Symbol = Symbol;
|
||||
}
|
||||
|
||||
impl server::Server for SpanIdServer<'_> {
|
||||
fn globals(&mut self) -> ExpnGlobals<Self::Span> {
|
||||
ExpnGlobals {
|
||||
def_site: self.def_site,
|
||||
|
||||
Reference in New Issue
Block a user