about summary refs log tree commit diff
path: root/compiler/rustc_session
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2025-04-01 23:48:41 +0200
committerlcnr <rust@lcnr.de>2025-04-03 11:13:10 +0200
commit509a144eed84e6ccd1227cd0d90f877a774aae70 (patch)
tree1f8df82dd01f7ae1085129d79d2144e5d00746ee /compiler/rustc_session
parent990201cb78a77ec0c148a880e6ab46bafa3468df (diff)
add `TypingMode::Borrowck`
Diffstat (limited to 'compiler/rustc_session')
-rw-r--r--compiler/rustc_session/src/options.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs
index cd5e2c4173e..36f7486f1d4 100644
--- a/compiler/rustc_session/src/options.rs
+++ b/compiler/rustc_session/src/options.rs
@@ -2553,6 +2553,9 @@ written to standard error output)"),
         "in diagnostics, use heuristics to shorten paths referring to items"),
     tune_cpu: Option<String> = (None, parse_opt_string, [TRACKED],
         "select processor to schedule for (`rustc --print target-cpus` for details)"),
+    #[rustc_lint_opt_deny_field_access("use `TyCtxt::use_typing_mode_borrowck` instead of this field")]
+    typing_mode_borrowck: bool = (false, parse_bool, [TRACKED],
+        "enable `TypingMode::Borrowck`, changing the way opaque types are handled during MIR borrowck"),
     #[rustc_lint_opt_deny_field_access("use `Session::ub_checks` instead of this field")]
     ub_checks: Option<bool> = (None, parse_opt_bool, [TRACKED],
         "emit runtime checks for Undefined Behavior (default: -Cdebug-assertions)"),