Box generator-related Body fields
This commit is contained in:
@@ -2998,7 +2998,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||
/// Returns layout of a generator. Layout might be unavailable if the
|
||||
/// generator is tainted by errors.
|
||||
pub fn generator_layout(self, def_id: DefId) -> Option<&'tcx GeneratorLayout<'tcx>> {
|
||||
self.optimized_mir(def_id).generator_layout.as_ref()
|
||||
self.optimized_mir(def_id).generator_layout()
|
||||
}
|
||||
|
||||
/// Given the `DefId` of an impl, returns the `DefId` of the trait it implements.
|
||||
|
||||
Reference in New Issue
Block a user