@@ -45,11 +45,11 @@ fn main() {
4545 file_loader : None ,
4646 locale_resources : rustc_driver:: DEFAULT_LOCALE_RESOURCES ,
4747 lint_caps : rustc_hash:: FxHashMap :: default ( ) ,
48- parse_sess_created : None ,
48+ psess_created : None ,
4949 register_lints : None ,
5050 override_queries : None ,
5151 make_codegen_backend : None ,
52- registry : registry:: Registry :: new ( rustc_error_codes :: DIAGNOSTICS ) ,
52+ registry : registry:: Registry :: new ( rustc_errors :: codes :: DIAGNOSTICS ) ,
5353 expanded_args : Vec :: new ( ) ,
5454 ice_file : None ,
5555 hash_untracked_state : None ,
@@ -73,8 +73,8 @@ fn main() {
7373 if let rustc_hir:: ItemKind :: Fn ( _, _, body_id) = item. kind {
7474 let expr = & tcx. hir ( ) . body ( body_id) . value ;
7575 if let rustc_hir:: ExprKind :: Block ( block, _) = expr. kind {
76- if let rustc_hir:: StmtKind :: Local ( local ) = block. stmts [ 0 ] . kind {
77- if let Some ( expr) = local . init {
76+ if let rustc_hir:: StmtKind :: Let ( let_stmt ) = block. stmts [ 0 ] . kind {
77+ if let Some ( expr) = let_stmt . init {
7878 let hir_id = expr. hir_id ; // hir_id identifies the string "Hello, world!"
7979 let def_id = item. hir_id ( ) . owner . def_id ; // def_id identifies the main function
8080 let ty = tcx. typeck ( def_id) . node_type ( hir_id) ;
0 commit comments