Skip to content

Commit 9dd65dd

Browse files
author
Jorge Aparicio
committed
rustc_driver: fix fallout
1 parent 964ff83 commit 9dd65dd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/librustc_driver/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#![feature(slicing_syntax, unsafe_destructor)]
2727
#![feature(rustc_diagnostic_macros)]
2828
#![feature(unboxed_closures)]
29+
#![feature(associated_types)]
2930

3031
extern crate arena;
3132
extern crate flate;

src/librustc_driver/pretty.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ enum NodesMatchingUII<'a, 'ast: 'a> {
345345
NodesMatchingSuffix(ast_map::NodesMatchingSuffix<'a, 'ast>),
346346
}
347347

348-
impl<'a, 'ast> Iterator<ast::NodeId> for NodesMatchingUII<'a, 'ast> {
348+
impl<'a, 'ast> Iterator for NodesMatchingUII<'a, 'ast> {
349+
type Item = ast::NodeId;
350+
349351
fn next(&mut self) -> Option<ast::NodeId> {
350352
match self {
351353
&NodesMatchingDirect(ref mut iter) => iter.next(),

0 commit comments

Comments
 (0)