@@ -25,8 +25,7 @@ macro_rules! define_handles {
2525 }
2626
2727 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 {
3029 static COUNTERS : HandleCounters = HandleCounters {
3130 $( $oty: AtomicUsize :: new( 1 ) , ) *
3231 $( $ity: AtomicUsize :: new( 1 ) , ) *
@@ -345,9 +344,7 @@ pub struct Client<F> {
345344 pub ( super ) f : F ,
346345}
347346
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 (
351348 mut bridge : Bridge ,
352349 f : fn ( :: TokenStream ) -> :: TokenStream ,
353350) -> Buffer < u8 > {
@@ -392,15 +389,13 @@ impl Client<fn(::TokenStream) -> ::TokenStream> {
392389 pub const fn expand1 ( f : fn ( :: TokenStream ) -> :: TokenStream ) -> Self {
393390 Client {
394391 get_handle_counters : HandleCounters :: get,
395- run : __run_expand1 ,
392+ run : run_expand1 ,
396393 f,
397394 }
398395 }
399396}
400397
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 (
404399 mut bridge : Bridge ,
405400 f : fn ( :: TokenStream , :: TokenStream ) -> :: TokenStream ,
406401) -> Buffer < u8 > {
@@ -446,7 +441,7 @@ impl Client<fn(::TokenStream, ::TokenStream) -> ::TokenStream> {
446441 pub const fn expand2 ( f : fn ( :: TokenStream , :: TokenStream ) -> :: TokenStream ) -> Self {
447442 Client {
448443 get_handle_counters : HandleCounters :: get,
449- run : __run_expand2 ,
444+ run : run_expand2 ,
450445 f,
451446 }
452447 }
0 commit comments