@@ -25,8 +25,7 @@ macro_rules! define_handles {
25
25
}
26
26
27
27
impl HandleCounters {
28
- // FIXME(#53451) public to work around `Cannot create local mono-item` ICE.
29
- pub extern "C" fn get( ) -> & ' static Self {
28
+ extern "C" fn get( ) -> & ' static Self {
30
29
static COUNTERS : HandleCounters = HandleCounters {
31
30
$( $oty: AtomicUsize :: new( 1 ) , ) *
32
31
$( $ity: AtomicUsize :: new( 1 ) , ) *
@@ -345,9 +344,7 @@ pub struct Client<F> {
345
344
pub ( super ) f : F ,
346
345
}
347
346
348
- // FIXME(#53451) public to work around `Cannot create local mono-item` ICE,
349
- // affecting not only the function itself, but also the `BridgeState` `thread_local!`.
350
- pub extern "C" fn __run_expand1 (
347
+ extern "C" fn run_expand1 (
351
348
mut bridge : Bridge ,
352
349
f : fn ( :: TokenStream ) -> :: TokenStream ,
353
350
) -> Buffer < u8 > {
@@ -392,15 +389,13 @@ impl Client<fn(::TokenStream) -> ::TokenStream> {
392
389
pub const fn expand1 ( f : fn ( :: TokenStream ) -> :: TokenStream ) -> Self {
393
390
Client {
394
391
get_handle_counters : HandleCounters :: get,
395
- run : __run_expand1 ,
392
+ run : run_expand1 ,
396
393
f,
397
394
}
398
395
}
399
396
}
400
397
401
- // FIXME(#53451) public to work around `Cannot create local mono-item` ICE,
402
- // affecting not only the function itself, but also the `BridgeState` `thread_local!`.
403
- pub extern "C" fn __run_expand2 (
398
+ extern "C" fn run_expand2 (
404
399
mut bridge : Bridge ,
405
400
f : fn ( :: TokenStream , :: TokenStream ) -> :: TokenStream ,
406
401
) -> Buffer < u8 > {
@@ -446,7 +441,7 @@ impl Client<fn(::TokenStream, ::TokenStream) -> ::TokenStream> {
446
441
pub const fn expand2 ( f : fn ( :: TokenStream , :: TokenStream ) -> :: TokenStream ) -> Self {
447
442
Client {
448
443
get_handle_counters : HandleCounters :: get,
449
- run : __run_expand2 ,
444
+ run : run_expand2 ,
450
445
f,
451
446
}
452
447
}
0 commit comments