gcx outlives tcx which outlives a, no need to explicitly do gcx: a

This commit is contained in:
Santiago Pastorino 2018-07-09 19:22:09 -03:00 committed by Felix S. Klock II
parent e0ea756b9f
commit 5dc5c02581

View file

@ -849,7 +849,7 @@ impl<'tcx> CommonTypes<'tcx> {
///
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/ty.html
#[derive(Copy, Clone)]
pub struct TyCtxt<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
pub struct TyCtxt<'a, 'gcx: 'tcx, 'tcx: 'a> {
gcx: &'a GlobalCtxt<'gcx>,
interners: &'a CtxtInterners<'tcx>
}