Updating only changed submodules Submodules updated in 0.06 seconds Finished dev [unoptimized + debuginfo] target(s) in 0.56s Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) Finished release [optimized] target(s) in 0.52s Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu) Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) Compiling rustc_typeck v0.0.0 (/users/djauhar/src/rust-sexxii-goose/compiler/rustc_typeck) error[E0308]: mismatched types --> compiler/rustc_typeck/src/check/upvar.rs:799:16 | 752 | ) -> Option> { | ---------------- expected because this return type... ... 756 | return None; | ---- ...is found to be `Option<&TyS<'_>>` here ... 799 | return false; | ^^^^^ expected enum `Option`, found `bool` | = note: expected enum `Option<&TyS<'_>>` found type `bool` = note: to return `impl Trait`, all returned values must be of the same type = note: for information on `impl Trait`, see = help: you could instead create a new `enum` with a variant for each returned type error[E0308]: mismatched types --> compiler/rustc_typeck/src/check/upvar.rs:852:17 | 844 | / if let Some(reason) = self.compute_2229_migrations_for_drop( 845 | | closure_def_id, 846 | | closure_span, 847 | | min_captures, ... | 852 | | drop_reorder_reason.insert(format!("DROP: {:?}", reason).as_str()) | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `bool` 853 | | } | |_____________- expected this to be `()` | help: consider using a semicolon here | 852 | drop_reorder_reason.insert(format!("DROP: {:?}", reason).as_str()); | ^ help: consider using a semicolon here | 853 | }; | ^ error[E0308]: mismatched types --> compiler/rustc_typeck/src/check/upvar.rs:1070:25 | 1070 | / self.has_significant_drop_outside_of_captures( 1071 | | closure_def_id, 1072 | | closure_span, 1073 | | after_field_ty, 1074 | | paths_using_field, 1075 | | ) | |_________________________^ expected `bool`, found enum `Option` | = note: expected type `bool` found enum `Option<&TyS<'_>>` error[E0599]: no method named `next` found for type `bool` in the current scope --> compiler/rustc_typeck/src/check/upvar.rs:1077:22 | 1077 | .next() | ^^^^ method not found in `bool` error: aborting due to 4 previous errors Some errors have detailed explanations: E0308, E0599. For more information about an error, try `rustc --explain E0308`. error: could not compile `rustc_typeck` To learn more, run the command again with --verbose. Build completed unsuccessfully in 0:00:16