@@ -2003,6 +2003,7 @@ pub mod tls {
20032003 }
20042004
20052005 /// Sets `context` as the new current ImplicitCtxt for the duration of the function `f`
2006+ #[ inline]
20062007 pub fn enter_context < ' a , ' gcx : ' tcx , ' tcx , F , R > ( context : & ImplicitCtxt < ' a , ' gcx , ' tcx > ,
20072008 f : F ) -> R
20082009 where F : FnOnce ( & ImplicitCtxt < ' a , ' gcx , ' tcx > ) -> R
@@ -2072,6 +2073,7 @@ pub mod tls {
20722073 }
20732074
20742075 /// Allows access to the current ImplicitCtxt in a closure if one is available
2076+ #[ inline]
20752077 pub fn with_context_opt < F , R > ( f : F ) -> R
20762078 where F : for <' a , ' gcx , ' tcx > FnOnce ( Option < & ImplicitCtxt < ' a , ' gcx , ' tcx > > ) -> R
20772079 {
@@ -2089,6 +2091,7 @@ pub mod tls {
20892091
20902092 /// Allows access to the current ImplicitCtxt.
20912093 /// Panics if there is no ImplicitCtxt available
2094+ #[ inline]
20922095 pub fn with_context < F , R > ( f : F ) -> R
20932096 where F : for <' a , ' gcx , ' tcx > FnOnce ( & ImplicitCtxt < ' a , ' gcx , ' tcx > ) -> R
20942097 {
@@ -2100,6 +2103,7 @@ pub mod tls {
21002103 /// with the same 'gcx lifetime as the TyCtxt passed in.
21012104 /// This will panic if you pass it a TyCtxt which has a different global interner from
21022105 /// the current ImplicitCtxt's tcx field.
2106+ #[ inline]
21032107 pub fn with_related_context < ' a , ' gcx , ' tcx1 , F , R > ( tcx : TyCtxt < ' a , ' gcx , ' tcx1 > , f : F ) -> R
21042108 where F : for <' b , ' tcx2 > FnOnce ( & ImplicitCtxt < ' b , ' gcx , ' tcx2 > ) -> R
21052109 {
@@ -2118,6 +2122,7 @@ pub mod tls {
21182122 /// is given an ImplicitCtxt with the same 'tcx and 'gcx lifetimes as the TyCtxt passed in.
21192123 /// This will panic if you pass it a TyCtxt which has a different global interner or
21202124 /// a different local interner from the current ImplicitCtxt's tcx field.
2125+ #[ inline]
21212126 pub fn with_fully_related_context < ' a , ' gcx , ' tcx , F , R > ( tcx : TyCtxt < ' a , ' gcx , ' tcx > , f : F ) -> R
21222127 where F : for < ' b > FnOnce ( & ImplicitCtxt < ' b , ' gcx , ' tcx > ) -> R
21232128 {
@@ -2135,6 +2140,7 @@ pub mod tls {
21352140
21362141 /// Allows access to the TyCtxt in the current ImplicitCtxt.
21372142 /// Panics if there is no ImplicitCtxt available
2143+ #[ inline]
21382144 pub fn with < F , R > ( f : F ) -> R
21392145 where F : for <' a , ' gcx , ' tcx > FnOnce ( TyCtxt < ' a , ' gcx , ' tcx > ) -> R
21402146 {
@@ -2143,6 +2149,7 @@ pub mod tls {
21432149
21442150 /// Allows access to the TyCtxt in the current ImplicitCtxt.
21452151 /// The closure is passed None if there is no ImplicitCtxt available
2152+ #[ inline]
21462153 pub fn with_opt < F , R > ( f : F ) -> R
21472154 where F : for <' a , ' gcx , ' tcx > FnOnce ( Option < TyCtxt < ' a , ' gcx , ' tcx > > ) -> R
21482155 {
0 commit comments