Skip to content

Commit 0c088cf

Browse files
committed
Auto merge of #151749 - JonathanBrouwer:rollup-IRCTaVD, r=JonathanBrouwer
Rollup of 4 pull requests Successful merges: - rust-lang/rust#151161 (std: move time implementations to `sys`) - rust-lang/rust#151694 (more `proc_macro` bridge cleanups) - rust-lang/rust#151711 (stdarch subtree update) - rust-lang/rust#150557 (Don't try to evaluate const blocks during constant promotion)
2 parents 1b46aa0 + 5ce2dfd commit 0c088cf

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

crates/proc-macro-srv/src/dylib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Expander {
4848
callback: Option<ProcMacroClientHandle<'_>>,
4949
) -> Result<TokenStream<S>, PanicMessage>
5050
where
51-
<S::Server<'a> as bridge::server::Types>::TokenStream: Default,
51+
<S::Server<'a> as bridge::server::Server>::TokenStream: Default,
5252
{
5353
self.inner
5454
.proc_macros

crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ pub struct RaSpanServer<'a> {
3030
pub callback: Option<ProcMacroClientHandle<'a>>,
3131
}
3232

33-
impl server::Types for RaSpanServer<'_> {
33+
impl server::Server for RaSpanServer<'_> {
3434
type TokenStream = crate::token_stream::TokenStream<Span>;
3535
type Span = Span;
3636
type Symbol = Symbol;
37-
}
3837

39-
impl server::Server for RaSpanServer<'_> {
4038
fn globals(&mut self) -> ExpnGlobals<Self::Span> {
4139
ExpnGlobals {
4240
def_site: self.def_site,

crates/proc-macro-srv/src/server_impl/token_id.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,11 @@ pub struct SpanIdServer<'a> {
3636
pub callback: Option<ProcMacroClientHandle<'a>>,
3737
}
3838

39-
impl server::Types for SpanIdServer<'_> {
39+
impl server::Server for SpanIdServer<'_> {
4040
type TokenStream = crate::token_stream::TokenStream<Span>;
4141
type Span = Span;
4242
type Symbol = Symbol;
43-
}
4443

45-
impl server::Server for SpanIdServer<'_> {
4644
fn globals(&mut self) -> ExpnGlobals<Self::Span> {
4745
ExpnGlobals {
4846
def_site: self.def_site,

0 commit comments

Comments
 (0)