From f4ed2da966d1e568a67a7cae68880b2eb717c2cd Mon Sep 17 00:00:00 2001 From: Aaron Wood Date: Tue, 9 Jun 2020 19:58:39 -0700 Subject: Correct "debug_assertion" to "debug_assertions" to match the cfg option that the rust debug assert macros use. --- crates/ra_project_model/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs index fe03b509e..6604f5092 100644 --- a/crates/ra_project_model/src/lib.rs +++ b/crates/ra_project_model/src/lib.rs @@ -600,7 +600,7 @@ fn get_rustc_cfg_options(target: Option<&str>) -> CfgOptions { Err(e) => log::error!("failed to get rustc cfgs: {:#}", e), } - cfg_options.insert_atom("debug_assertion".into()); + cfg_options.insert_atom("debug_assertions".into()); cfg_options } -- cgit v1.2.3