Skip to content

Commit

Permalink
FIXME(53451) remove fixme and unnecessary pubs
Browse files Browse the repository at this point in the history
  • Loading branch information
nivkner committed Dec 19, 2018
1 parent 897c182 commit d88d319
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/libproc_macro/bridge/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ macro_rules! define_handles {
}

impl HandleCounters {
// FIXME(#53451) public to work around `Cannot create local mono-item` ICE.
pub extern "C" fn get() -> &'static Self {
extern "C" fn get() -> &'static Self {
static COUNTERS: HandleCounters = HandleCounters {
$($oty: AtomicUsize::new(1),)*
$($ity: AtomicUsize::new(1),)*
Expand Down Expand Up @@ -345,9 +344,7 @@ pub struct Client<F> {
pub(super) f: F,
}

// FIXME(#53451) public to work around `Cannot create local mono-item` ICE,
// affecting not only the function itself, but also the `BridgeState` `thread_local!`.
pub extern "C" fn __run_expand1(
extern "C" fn run_expand1(
mut bridge: Bridge,
f: fn(::TokenStream) -> ::TokenStream,
) -> Buffer<u8> {
Expand Down Expand Up @@ -392,15 +389,13 @@ impl Client<fn(::TokenStream) -> ::TokenStream> {
pub const fn expand1(f: fn(::TokenStream) -> ::TokenStream) -> Self {
Client {
get_handle_counters: HandleCounters::get,
run: __run_expand1,
run: run_expand1,
f,
}
}
}

// FIXME(#53451) public to work around `Cannot create local mono-item` ICE,
// affecting not only the function itself, but also the `BridgeState` `thread_local!`.
pub extern "C" fn __run_expand2(
extern "C" fn run_expand2(
mut bridge: Bridge,
f: fn(::TokenStream, ::TokenStream) -> ::TokenStream,
) -> Buffer<u8> {
Expand Down Expand Up @@ -446,7 +441,7 @@ impl Client<fn(::TokenStream, ::TokenStream) -> ::TokenStream> {
pub const fn expand2(f: fn(::TokenStream, ::TokenStream) -> ::TokenStream) -> Self {
Client {
get_handle_counters: HandleCounters::get,
run: __run_expand2,
run: run_expand2,
f,
}
}
Expand Down

0 comments on commit d88d319

Please sign in to comment.