diff options
| author | Michael Woerister <michaelwoerister@posteo.net> | 2017-07-04 14:23:07 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo.net> | 2017-07-10 12:20:56 +0200 |
| commit | 13e87d1dbb4d3f3071b5807a69d11468173e3522 (patch) | |
| tree | e0d8364318f253eeaf4b071d4063f4e8065f8abe | |
| parent | f8b774f1cf74e5aed4ff6b5f63e91f6528258add (diff) | |
| download | rust-13e87d1dbb4d3f3071b5807a69d11468173e3522.tar.gz rust-13e87d1dbb4d3f3071b5807a69d11468173e3522.zip | |
Fix some `tidy` errors.
| -rw-r--r-- | src/librustc/dep_graph/dep_node.rs | 7 | ||||
| -rw-r--r-- | src/librustc/ty/maps.rs | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/librustc/dep_graph/dep_node.rs b/src/librustc/dep_graph/dep_node.rs index b2f6ed96b80..bb5244ad3f4 100644 --- a/src/librustc/dep_graph/dep_node.rs +++ b/src/librustc/dep_graph/dep_node.rs @@ -158,7 +158,12 @@ macro_rules! define_dep_nodes { impl DepNode { #[allow(unreachable_code, non_snake_case)] - pub fn new<'a, 'gcx: 'a+'tcx, 'tcx: 'a>(tcx: TyCtxt<'a, 'gcx, 'tcx>, dep: DepConstructor<'gcx>) -> DepNode { + pub fn new<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>, + dep: DepConstructor<'gcx>) + -> DepNode + where 'gcx: 'a + 'tcx, + 'tcx: 'a + { match dep { $( DepConstructor :: $variant $(( $($tuple_arg),* ))* diff --git a/src/librustc/ty/maps.rs b/src/librustc/ty/maps.rs index 94801d55451..5280901b8c5 100644 --- a/src/librustc/ty/maps.rs +++ b/src/librustc/ty/maps.rs @@ -1011,7 +1011,8 @@ fn typeck_item_bodies_dep_node<'tcx>(_: CrateNum) -> DepConstructor<'tcx> { DepConstructor::TypeckBodiesKrate } -fn const_eval_dep_node<'tcx>((def_id, substs): (DefId, &'tcx Substs<'tcx>)) -> DepConstructor<'tcx> { +fn const_eval_dep_node<'tcx>((def_id, substs): (DefId, &'tcx Substs<'tcx>)) + -> DepConstructor<'tcx> { DepConstructor::ConstEval { def_id, substs } } |
