Skip to content

Commit 4ad0609

Browse files
Fix some tidy errors.
1 parent 2498d78 commit 4ad0609

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/librustc/dep_graph/dep_node.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,12 @@ macro_rules! define_dep_nodes {
158158

159159
impl DepNode {
160160
#[allow(unreachable_code, non_snake_case)]
161-
pub fn new<'a, 'gcx: 'a+'tcx, 'tcx: 'a>(tcx: TyCtxt<'a, 'gcx, 'tcx>, dep: DepConstructor<'gcx>) -> DepNode {
161+
pub fn new<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>,
162+
dep: DepConstructor<'gcx>)
163+
-> DepNode
164+
where 'gcx: 'a + 'tcx,
165+
'tcx: 'a
166+
{
162167
match dep {
163168
$(
164169
DepConstructor :: $variant $(( $($tuple_arg),* ))*

src/librustc/ty/maps.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,8 @@ fn typeck_item_bodies_dep_node<'tcx>(_: CrateNum) -> DepConstructor<'tcx> {
10111011
DepConstructor::TypeckBodiesKrate
10121012
}
10131013

1014-
fn const_eval_dep_node<'tcx>((def_id, substs): (DefId, &'tcx Substs<'tcx>)) -> DepConstructor<'tcx> {
1014+
fn const_eval_dep_node<'tcx>((def_id, substs): (DefId, &'tcx Substs<'tcx>))
1015+
-> DepConstructor<'tcx> {
10151016
DepConstructor::ConstEval { def_id, substs }
10161017
}
10171018

0 commit comments

Comments
 (0)