File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_middle/src/ty/context Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ where
115115}
116116
117117/// Allows access to the current `ImplicitCtxt` in a closure if one is available.
118- #[ inline]
118+ #[ inline( always ) ]
119119pub fn with_context_opt < F , R > ( f : F ) -> R
120120where
121121 F : for <' a , ' tcx > FnOnce ( Option < & ImplicitCtxt < ' a , ' tcx > > ) -> R ,
@@ -134,7 +134,7 @@ where
134134
135135/// Allows access to the current `ImplicitCtxt`.
136136/// Panics if there is no `ImplicitCtxt` available.
137- #[ inline]
137+ #[ inline( always ) ]
138138pub fn with_context < F , R > ( f : F ) -> R
139139where
140140 F : for <' a , ' tcx > FnOnce ( & ImplicitCtxt < ' a , ' tcx > ) -> R ,
@@ -147,7 +147,7 @@ where
147147/// as the `TyCtxt` passed in.
148148/// This will panic if you pass it a `TyCtxt` which is different from the current
149149/// `ImplicitCtxt`'s `tcx` field.
150- #[ inline]
150+ #[ inline( always ) ]
151151pub fn with_related_context < ' tcx , F , R > ( tcx : TyCtxt < ' tcx > , f : F ) -> R
152152where
153153 F : FnOnce ( & ImplicitCtxt < ' _ , ' tcx > ) -> R ,
You can’t perform that action at this time.
0 commit comments