about summary refs log tree commit diff
path: root/src/librustc/session
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-03-22 22:48:39 +0000
committerDavid Wood <david@davidtw.co>2018-03-22 22:48:39 +0000
commit447ae7612aacb356dd3f1dd018aaa350c0493a2e (patch)
tree74440bbedce8f02b303aade748e72d620c712e78 /src/librustc/session
parent04aeef8d452d9dc2189bc75c3f74fd9752a3e9af (diff)
downloadrust-447ae7612aacb356dd3f1dd018aaa350c0493a2e.tar.gz
rust-447ae7612aacb356dd3f1dd018aaa350c0493a2e.zip
Added flag to disable user type assertion.
Diffstat (limited to 'src/librustc/session')
-rw-r--r--src/librustc/session/config.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs
index 0d91074e946..c47a351e9d3 100644
--- a/src/librustc/session/config.rs
+++ b/src/librustc/session/config.rs
@@ -1251,6 +1251,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
         "choose which RELRO level to use"),
     nll: bool = (false, parse_bool, [UNTRACKED],
                  "run the non-lexical lifetimes MIR pass"),
+    disable_nll_user_type_assert: bool = (false, parse_bool, [UNTRACKED],
+        "disable user provided type assertion in NLL"),
     trans_time_graph: bool = (false, parse_bool, [UNTRACKED],
         "generate a graphical HTML report of time spent in trans and LLVM"),
     thinlto: Option<bool> = (None, parse_opt_bool, [TRACKED],