]> git.lizzy.rs Git - rust.git/commitdiff
expose -Zpolonius flag
authorDouglas Campos <qmx@qmx.me>
Fri, 25 May 2018 22:17:04 +0000 (22:17 +0000)
committerSantiago Pastorino <spastorino@gmail.com>
Tue, 29 May 2018 13:19:46 +0000 (10:19 -0300)
src/librustc/session/config.rs

index b3f1b9c8e627c7e25f777980d7cb5c4df31825aa..755b4af1a3aed064f5199c739e8b93d8da6f4ccb 100644 (file)
@@ -1296,6 +1296,8 @@ fn parse_cross_lang_lto(slot: &mut CrossLangLto, v: Option<&str>) -> bool {
                        "dump facts from NLL analysis into side files"),
     disable_nll_user_type_assert: bool = (false, parse_bool, [UNTRACKED],
         "disable user provided type assertion in NLL"),
+    polonius: bool = (false, parse_bool, [UNTRACKED],
+        "enable polonius-based borrow-checker"),
     codegen_time_graph: bool = (false, parse_bool, [UNTRACKED],
         "generate a graphical HTML report of time spent in codegen and LLVM"),
     thinlto: Option<bool> = (None, parse_opt_bool, [TRACKED],