File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,10 @@ pub trait Internable: Hash + Eq + 'static {
185
185
fn storage ( ) -> & ' static InternStorage < Self > ;
186
186
}
187
187
188
- macro_rules! impl_internable {
188
+ /// Implements `Internable` for a given list of types, making them usable with `Interned`.
189
+ #[ macro_export]
190
+ #[ doc( hidden) ]
191
+ macro_rules! _impl_internable {
189
192
( $( $t: path) ,+ $( , ) ? ) => { $(
190
193
impl Internable for $t {
191
194
fn storage( ) -> & ' static InternStorage <Self > {
@@ -196,10 +199,12 @@ macro_rules! impl_internable {
196
199
) + } ;
197
200
}
198
201
202
+ pub use crate :: _impl_internable as impl_internable;
203
+
199
204
impl_internable ! (
200
205
crate :: type_ref:: TypeRef ,
201
206
crate :: type_ref:: TraitRef ,
202
207
crate :: path:: ModPath ,
203
208
GenericParams ,
204
- str
209
+ str ,
205
210
) ;
You can’t perform that action at this time.
0 commit comments