File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
components/salsa-macros/src Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,12 @@ impl DbMacro {
89
89
use salsa:: plumbing as #zalsa;
90
90
91
91
unsafe impl #zalsa:: HasStorage for #db {
92
+ #[ inline( always) ]
92
93
fn storage( & self ) -> & #zalsa:: Storage <Self > {
93
94
& self . #storage
94
95
}
95
96
97
+ #[ inline( always) ]
96
98
fn storage_mut( & mut self ) -> & mut #zalsa:: Storage <Self > {
97
99
& mut self . #storage
98
100
}
@@ -131,12 +133,14 @@ impl DbMacro {
131
133
132
134
input. items . push ( parse_quote ! {
133
135
#[ doc( hidden) ]
136
+ #[ inline( always) ]
134
137
fn register_downcaster( & self ) {
135
138
salsa:: plumbing:: views( self ) . add( <Self as #TraitPath >:: downcast) ;
136
139
}
137
140
} ) ;
138
141
input. items . push ( parse_quote ! {
139
142
#[ doc( hidden) ]
143
+ #[ inline( always) ]
140
144
unsafe fn downcast( db: & dyn salsa:: plumbing:: Database ) -> & dyn #TraitPath where Self : Sized {
141
145
debug_assert_eq!( db. type_id( ) , :: core:: any:: TypeId :: of:: <Self >( ) ) ;
142
146
// SAFETY: Same as the safety of the `downcast` method.
You can’t perform that action at this time.
0 commit comments