about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2018-07-09 19:22:09 -0300
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-07-23 13:27:32 +0200
commit5dc5c02581ba92716f6d296bc994dcb4e12a5c7b (patch)
treeef26a345e33a357a75dc067563d1d9bcf44dbb23
parente0ea756b9f366190dd7a3f00ee8d3fba8237440c (diff)
downloadrust-5dc5c02581ba92716f6d296bc994dcb4e12a5c7b.tar.gz
rust-5dc5c02581ba92716f6d296bc994dcb4e12a5c7b.zip
gcx outlives tcx which outlives a, no need to explicitly do gcx: a
-rw-r--r--src/librustc/ty/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs
index c7bb90bfcb0..41007508c50 100644
--- a/src/librustc/ty/context.rs
+++ b/src/librustc/ty/context.rs
@@ -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>
 }