]> git.lizzy.rs Git - rust.git/commitdiff
Correct "debug_assertion" to "debug_assertions" to match the cfg
authorAaron Wood <aaronwood@google.com>
Wed, 10 Jun 2020 02:58:39 +0000 (19:58 -0700)
committerAaron Wood <aaronwood@google.com>
Wed, 10 Jun 2020 02:58:39 +0000 (19:58 -0700)
option that the rust debug assert macros use.

crates/ra_project_model/src/lib.rs

index fe03b509e4ff2f7d66fdfd67fffa91d8bf170b21..6604f50923893690c9c5dab99dbe3a6bc686ec28 100644 (file)
@@ -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
 }