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:
The rustc-josh-sync Cronjob Bot
2026-01-29 04:44:37 +00:00
3 changed files with 3 additions and 7 deletions

View File

@@ -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

View File

@@ -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,

View File

@@ -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,