]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #100210 - mystor:proc_macro_diag_struct, r=eddyb
authorbors <bors@rust-lang.org>
Thu, 1 Sep 2022 00:26:53 +0000 (00:26 +0000)
committerbors <bors@rust-lang.org>
Thu, 1 Sep 2022 00:26:53 +0000 (00:26 +0000)
proc_macro/bridge: send diagnostics over the bridge as a struct

This removes some RPC when creating and emitting diagnostics, and
simplifies the bridge slightly.

After this change, there are no remaining methods which take advantage
of the support for `&mut` references to objects in the store as
arguments, meaning that support for them could technically be removed if
we wanted. The only remaining uses of immutable references into the
store are `TokenStream` and `SourceFile`.

r? `@eddyb`

1  2 
compiler/rustc_expand/src/proc_macro_server.rs
src/tools/rust-analyzer/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server.rs