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 964ff83 commit 9dd65ddCopy full SHA for 9dd65dd
src/librustc_driver/lib.rs
@@ -26,6 +26,7 @@
26
#![feature(slicing_syntax, unsafe_destructor)]
27
#![feature(rustc_diagnostic_macros)]
28
#![feature(unboxed_closures)]
29
+#![feature(associated_types)]
30
31
extern crate arena;
32
extern crate flate;
src/librustc_driver/pretty.rs
@@ -345,7 +345,9 @@ enum NodesMatchingUII<'a, 'ast: 'a> {
345
NodesMatchingSuffix(ast_map::NodesMatchingSuffix<'a, 'ast>),
346
}
347
348
-impl<'a, 'ast> Iterator<ast::NodeId> for NodesMatchingUII<'a, 'ast> {
+impl<'a, 'ast> Iterator for NodesMatchingUII<'a, 'ast> {
349
+ type Item = ast::NodeId;
350
+
351
fn next(&mut self) -> Option<ast::NodeId> {
352
match self {
353
&NodesMatchingDirect(ref mut iter) => iter.next(),
0 commit comments