@@ -119,7 +119,6 @@ impl SessionGlobals {
119
119
}
120
120
}
121
121
122
- #[ inline]
123
122
pub fn create_session_globals_then < R > ( edition : Edition , f : impl FnOnce ( ) -> R ) -> R {
124
123
assert ! (
125
124
!SESSION_GLOBALS . is_set( ) ,
@@ -130,7 +129,6 @@ pub fn create_session_globals_then<R>(edition: Edition, f: impl FnOnce() -> R) -
130
129
SESSION_GLOBALS . set ( & session_globals, f)
131
130
}
132
131
133
- #[ inline]
134
132
pub fn set_session_globals_then < R > ( session_globals : & SessionGlobals , f : impl FnOnce ( ) -> R ) -> R {
135
133
assert ! (
136
134
!SESSION_GLOBALS . is_set( ) ,
@@ -140,15 +138,13 @@ pub fn set_session_globals_then<R>(session_globals: &SessionGlobals, f: impl FnO
140
138
SESSION_GLOBALS . set ( session_globals, f)
141
139
}
142
140
143
- #[ inline]
144
141
pub fn create_default_session_if_not_set_then < R , F > ( f : F ) -> R
145
142
where
146
143
F : FnOnce ( & SessionGlobals ) -> R ,
147
144
{
148
145
create_session_if_not_set_then ( edition:: DEFAULT_EDITION , f)
149
146
}
150
147
151
- #[ inline]
152
148
pub fn create_session_if_not_set_then < R , F > ( edition : Edition , f : F ) -> R
153
149
where
154
150
F : FnOnce ( & SessionGlobals ) -> R ,
@@ -161,15 +157,13 @@ where
161
157
}
162
158
}
163
159
164
- #[ inline]
165
160
pub fn with_session_globals < R , F > ( f : F ) -> R
166
161
where
167
162
F : FnOnce ( & SessionGlobals ) -> R ,
168
163
{
169
164
SESSION_GLOBALS . with ( f)
170
165
}
171
166
172
- #[ inline]
173
167
pub fn create_default_session_globals_then < R > ( f : impl FnOnce ( ) -> R ) -> R {
174
168
create_session_globals_then ( edition:: DEFAULT_EDITION , f)
175
169
}
0 commit comments