File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ pub fn select(input: TokenStream) -> TokenStream {
262262 #( #poll_functions ) *
263263
264264 let mut __select_arr = [ #( #variant_names ) , * ] ;
265- <[ _] as #rand_crate:: prelude :: SliceRandom >:: shuffle(
265+ <[ _] as #rand_crate:: SliceRandom >:: shuffle(
266266 & mut __select_arr,
267267 & mut #rand_crate:: thread_rng( ) ,
268268 ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,12 @@ pub use self::async_await::*;
3636#[ cfg( feature = "async-await" ) ]
3737#[ doc( hidden) ]
3838pub mod rand_reexport { // used by select!
39- pub use rand:: * ;
39+ pub use rand:: { prelude:: SliceRandom , thread_rng} ;
40+
41+ // HACK: Define dummy `ThreadRng` to avoid `intra_doc_link_resolution_failure` warning.
42+ #[ allow( missing_debug_implementations) ]
43+ #[ doc( hidden) ]
44+ pub struct ThreadRng { }
4045}
4146
4247#[ doc( hidden) ]
You can’t perform that action at this time.
0 commit comments