aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_proc_macro_srv/src/proc_macro/bridge/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_proc_macro_srv/src/proc_macro/bridge/mod.rs')
-rw-r--r--crates/ra_proc_macro_srv/src/proc_macro/bridge/mod.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ra_proc_macro_srv/src/proc_macro/bridge/mod.rs b/crates/ra_proc_macro_srv/src/proc_macro/bridge/mod.rs
index 6ae3926b2..aeb05aad4 100644
--- a/crates/ra_proc_macro_srv/src/proc_macro/bridge/mod.rs
+++ b/crates/ra_proc_macro_srv/src/proc_macro/bridge/mod.rs
@@ -108,8 +108,9 @@ macro_rules! with_api {
108 Literal { 108 Literal {
109 fn drop($self: $S::Literal); 109 fn drop($self: $S::Literal);
110 fn clone($self: &$S::Literal) -> $S::Literal; 110 fn clone($self: &$S::Literal) -> $S::Literal;
111 // FIXME(eddyb) `Literal` should not expose internal `Debug` impls. 111 fn debug_kind($self: &$S::Literal) -> String;
112 fn debug($self: &$S::Literal) -> String; 112 fn symbol($self: &$S::Literal) -> String;
113 fn suffix($self: &$S::Literal) -> Option<String>;
113 fn integer(n: &str) -> $S::Literal; 114 fn integer(n: &str) -> $S::Literal;
114 fn typed_integer(n: &str, kind: &str) -> $S::Literal; 115 fn typed_integer(n: &str, kind: &str) -> $S::Literal;
115 fn float(n: &str) -> $S::Literal; 116 fn float(n: &str) -> $S::Literal;
@@ -222,6 +223,9 @@ pub struct Bridge<'a> {
222 dispatch: closure::Closure<'a, Buffer<u8>, Buffer<u8>>, 223 dispatch: closure::Closure<'a, Buffer<u8>, Buffer<u8>>,
223} 224}
224 225
226// impl<'a> !Sync for Bridge<'a> {}
227// impl<'a> !Send for Bridge<'a> {}
228
225#[forbid(unsafe_code)] 229#[forbid(unsafe_code)]
226#[allow(non_camel_case_types)] 230#[allow(non_camel_case_types)]
227mod api_tags { 231mod api_tags {