File tree 1 file changed +3
-3
lines changed
compiler/rustc_middle/src/ty/context
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ where
115
115
}
116
116
117
117
/// Allows access to the current `ImplicitCtxt` in a closure if one is available.
118
- #[ inline]
118
+ #[ inline( always ) ]
119
119
pub fn with_context_opt < F , R > ( f : F ) -> R
120
120
where
121
121
F : for <' a , ' tcx > FnOnce ( Option < & ImplicitCtxt < ' a , ' tcx > > ) -> R ,
@@ -134,7 +134,7 @@ where
134
134
135
135
/// Allows access to the current `ImplicitCtxt`.
136
136
/// Panics if there is no `ImplicitCtxt` available.
137
- #[ inline]
137
+ #[ inline( always ) ]
138
138
pub fn with_context < F , R > ( f : F ) -> R
139
139
where
140
140
F : for <' a , ' tcx > FnOnce ( & ImplicitCtxt < ' a , ' tcx > ) -> R ,
@@ -147,7 +147,7 @@ where
147
147
/// as the `TyCtxt` passed in.
148
148
/// This will panic if you pass it a `TyCtxt` which is different from the current
149
149
/// `ImplicitCtxt`'s `tcx` field.
150
- #[ inline]
150
+ #[ inline( always ) ]
151
151
pub fn with_related_context < ' tcx , F , R > ( tcx : TyCtxt < ' tcx > , f : F ) -> R
152
152
where
153
153
F : FnOnce ( & ImplicitCtxt < ' _ , ' tcx > ) -> R ,
You can’t perform that action at this time.
0 commit comments