Skip to content

Commit 17db220

Browse files
committed
Attempted fix for regression caused by previous commit
1 parent 4a996c2 commit 17db220

File tree

3 files changed

+94
-107
lines changed

3 files changed

+94
-107
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
pub(crate) mod arena;
12
pub mod bridge;
3+
pub(crate) mod fxhash;
24

35
#[allow(unsafe_code)]
4-
pub(self) mod arena;
5-
6-
#[forbid(unsafe_code)]
7-
pub(self) mod fxhash;
6+
pub use bridge::*;

library/proc_macro/src/diagnostic.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ impl Diagnostic {
163163
pub fn emit(self) {
164164
fn to_internal(
165165
diag: Diagnostic,
166-
) -> crate::backend::bridge::Diagnostic<crate::backend::bridge::client::Span> {
167-
crate::backend::bridge::Diagnostic {
166+
) -> crate::backend::Diagnostic<crate::backend::client::Span> {
167+
crate::backend::Diagnostic {
168168
level: diag.level,
169169
message: diag.message,
170170
spans: diag.spans.into_iter().map(|s| s.0).collect(),
171171
children: diag.children.into_iter().map(to_internal).collect(),
172172
}
173173
}
174174

175-
crate::backend::bridge::client::FreeFunctions::emit_diagnostic(to_internal(self));
175+
crate::backend::client::FreeFunctions::emit_diagnostic(to_internal(self));
176176
}
177177
}

0 commit comments

Comments
 (0)