gcc/rust/ChangeLog:
* lang.opt: CLI flag.
* rust-session-manager.cc (Session::compile_crate): Guard execution.
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
Rust Var(flag_name_resolution_2_0)
Use the temporary and experimental name resolution pipeline instead of the stable one
+frust-borrowcheck
+Rust Var(flag_borrowcheck)
+Use the WIP borrow checker.
+
; This comment is to ensure we retain the blank line above.
if (last_step == CompileOptions::CompileStep::BorrowCheck)
return;
- const bool dump_bir =
- options.dump_option_enabled(CompileOptions::DumpOption::BIR_DUMP);
- HIR::BorrowChecker(dump_bir).go(hir);
+ if (flag_borrowcheck) {
+ const bool dump_bir =
+ options.dump_option_enabled(CompileOptions::DumpOption::BIR_DUMP);
+ HIR::BorrowChecker(dump_bir).go(hir);
+ }
if (saw_errors())
return;