Skip to content

Commit 5dc5c02

Browse files
spastorinopnkfelix
authored andcommitted
gcx outlives tcx which outlives a, no need to explicitly do gcx: a
1 parent e0ea756 commit 5dc5c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ impl<'tcx> CommonTypes<'tcx> {
849849
///
850850
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/ty.html
851851
#[derive(Copy, Clone)]
852-
pub struct TyCtxt<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
852+
pub struct TyCtxt<'a, 'gcx: 'tcx, 'tcx: 'a> {
853853
gcx: &'a GlobalCtxt<'gcx>,
854854
interners: &'a CtxtInterners<'tcx>
855855
}

0 commit comments

Comments
 (0)