We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12e56ea commit f0b2b3cCopy full SHA for f0b2b3c
src/librustc/middle/expr_use_visitor.rs
@@ -241,9 +241,9 @@ impl OverloadedCallType {
241
// mem_categorization, it requires a TYPER, which is a type that
242
// supplies types from the tree. After type checking is complete, you
243
// can just use the tcx as the typer.
244
-pub struct ExprUseVisitor<'d, 'a, 'gcx: 'a+'tcx, 'tcx:'a+'d> {
+pub struct ExprUseVisitor<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
245
mc: mc::MemCategorizationContext<'a, 'gcx, 'tcx>,
246
- delegate: &'d mut Delegate<'tcx>,
+ delegate: &'a mut Delegate<'tcx>,
247
}
248
249
// If the TYPER results in an error, it's because the type check
@@ -271,8 +271,8 @@ enum PassArgs {
271
ByRef,
272
273
274
-impl<'d, 'a, 'tcx> ExprUseVisitor<'d, 'a, 'tcx, 'tcx> {
275
- pub fn new(delegate: &'d mut (Delegate<'tcx>+'d),
+impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx, 'tcx> {
+ pub fn new(delegate: &'a mut (Delegate<'tcx>+'a),
276
infcx: &'a InferCtxt<'a, 'tcx, 'tcx>) -> Self
277
{
278
ExprUseVisitor {
src/librustc_passes/consts.rs
@@ -87,8 +87,8 @@ impl<'a, 'tcx> CheckCrateVisitor<'a, 'tcx> {
87
r
88
89
90
- fn with_euv<'b, F, R>(&'b mut self, item_id: Option<ast::NodeId>, f: F) -> R where
91
- F: for<'c> FnOnce(&mut euv::ExprUseVisitor<'c, 'c, 'tcx, 'tcx>) -> R,
+ fn with_euv<F, R>(&mut self, item_id: Option<ast::NodeId>, f: F) -> R where
+ F: for<'b> FnOnce(&mut euv::ExprUseVisitor<'b, 'tcx, 'tcx>) -> R,
92
93
let param_env = match item_id {
94
Some(item_id) => ty::ParameterEnvironment::for_item(self.tcx, item_id),
0 commit comments