diff rust/hg-core/src/lib.rs @ 46441:cabc5e9366c5

rust: lower compile error on non-linux platforms to a warning As discussed on D9671#146704 this lowers the error to a warning. Differential Revision: https://phab.mercurial-scm.org/D9852
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 22 Jan 2021 11:10:39 +0100
parents 95d6f31e88db
children 4b381dbbf8b7
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs	Mon Jan 18 10:24:20 2021 +0100
+++ b/rust/hg-core/src/lib.rs	Fri Jan 22 11:10:39 2021 +0100
@@ -30,14 +30,6 @@
 pub mod operations;
 pub mod utils;
 
-// Remove this to see (potential) non-artificial compile failures. MacOS
-// *should* compile, but fail to compile tests for example as of 2020-03-06
-#[cfg(not(target_os = "linux"))]
-compile_error!(
-    "`hg-core` has only been tested on Linux and will most \
-     likely not behave correctly on other platforms."
-);
-
 use crate::utils::hg_path::{HgPathBuf, HgPathError};
 pub use filepatterns::{
     parse_pattern_syntax, read_pattern_file, IgnorePattern,