diff options
Diffstat (limited to 'src/librustc_query_system')
| -rw-r--r-- | src/librustc_query_system/dep_graph/dep_node.rs | 2 | ||||
| -rw-r--r-- | src/librustc_query_system/dep_graph/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_query_system/dep_graph/dep_node.rs b/src/librustc_query_system/dep_graph/dep_node.rs index 36343365ab6..d8875f8ac64 100644 --- a/src/librustc_query_system/dep_graph/dep_node.rs +++ b/src/librustc_query_system/dep_graph/dep_node.rs @@ -80,7 +80,7 @@ impl<K: DepKind> DepNode<K> { } } - return dep_node; + dep_node } } diff --git a/src/librustc_query_system/dep_graph/mod.rs b/src/librustc_query_system/dep_graph/mod.rs index f85462eb78b..e8d02692f37 100644 --- a/src/librustc_query_system/dep_graph/mod.rs +++ b/src/librustc_query_system/dep_graph/mod.rs @@ -77,9 +77,9 @@ pub trait DepKind: Copy + fmt::Debug + Eq + Ord + Hash { OP: FnOnce() -> R; /// Access dependencies from current implicit context. - fn read_deps<OP>(op: OP) -> () + fn read_deps<OP>(op: OP) where - OP: for<'a> FnOnce(Option<&'a Lock<TaskDeps<Self>>>) -> (); + OP: for<'a> FnOnce(Option<&'a Lock<TaskDeps<Self>>>); fn can_reconstruct_query_key(&self) -> bool; } |
