@@ -26,7 +26,6 @@ use std::collections::HashSet;
26
26
use std:: mem;
27
27
use std:: path:: { Path , PathBuf } ;
28
28
use std:: rc:: Rc ;
29
- use std:: sync:: mpsc;
30
29
use std:: sync:: Arc ;
31
30
use syntax:: ast;
32
31
use syntax:: ast:: DUMMY_NODE_ID ;
@@ -337,8 +336,6 @@ struct Queries {
337
336
dep_graph : Query < DepGraph > ,
338
337
lower_to_hir : Query < ( Steal < hir_map:: Forest > , ExpansionResult ) > ,
339
338
prepare_outputs : Query < OutputFilenames > ,
340
- codegen_channel : Query < ( Steal < mpsc:: Sender < Box < dyn Any + Send > > > ,
341
- Steal < mpsc:: Receiver < Box < dyn Any + Send > > > ) > ,
342
339
global_ctxt : Query < BoxedGlobalCtxt > ,
343
340
ongoing_codegen : Query < Box < dyn Any > > ,
344
341
link : Query < ( ) > ,
@@ -600,7 +597,7 @@ pub fn parse_impl_items(sess: &Session, src: &str) -> Vec<ImplItem> {
600
597
// workaround that may cause suboptimal error messages.
601
598
let mut p = make_parser ( sess, & format ! ( "impl ! {{ {} }}" , src) ) ;
602
599
match p. parse_item ( ) {
603
- Ok ( item) => match item. expect ( "expected to find an item" ) . into_inner ( ) . node {
600
+ Ok ( item) => match item. expect ( "expected to find an item" ) . into_inner ( ) . kind {
604
601
ItemKind :: Impl ( _, _, _, _, _, _, items) => items,
605
602
_ => panic ! ( "expected to find an impl item" ) ,
606
603
} ,
@@ -614,7 +611,7 @@ pub fn parse_foreign_items(sess: &Session, src: &str) -> Vec<ForeignItem> {
614
611
// workaround that may cause suboptimal error messages.
615
612
let mut p = make_parser ( sess, & format ! ( "extern {{ {} }}" , src) ) ;
616
613
match p. parse_item ( ) {
617
- Ok ( item) => match item. expect ( "expected to find an item" ) . into_inner ( ) . node {
614
+ Ok ( item) => match item. expect ( "expected to find an item" ) . into_inner ( ) . kind {
618
615
ItemKind :: ForeignMod ( fm) => fm. items ,
619
616
_ => panic ! ( "expected to find a foreignmod item" ) ,
620
617
} ,
0 commit comments