Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/lib.rs @ 46369: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 |
comparison
equal
deleted
inserted
replaced
46368:bb3a5c0df06b | 46369:cabc5e9366c5 |
---|---|
27 pub mod revlog; | 27 pub mod revlog; |
28 pub use revlog::*; | 28 pub use revlog::*; |
29 pub mod config; | 29 pub mod config; |
30 pub mod operations; | 30 pub mod operations; |
31 pub mod utils; | 31 pub mod utils; |
32 | |
33 // Remove this to see (potential) non-artificial compile failures. MacOS | |
34 // *should* compile, but fail to compile tests for example as of 2020-03-06 | |
35 #[cfg(not(target_os = "linux"))] | |
36 compile_error!( | |
37 "`hg-core` has only been tested on Linux and will most \ | |
38 likely not behave correctly on other platforms." | |
39 ); | |
40 | 32 |
41 use crate::utils::hg_path::{HgPathBuf, HgPathError}; | 33 use crate::utils::hg_path::{HgPathBuf, HgPathError}; |
42 pub use filepatterns::{ | 34 pub use filepatterns::{ |
43 parse_pattern_syntax, read_pattern_file, IgnorePattern, | 35 parse_pattern_syntax, read_pattern_file, IgnorePattern, |
44 PatternFileWarning, PatternSyntax, | 36 PatternFileWarning, PatternSyntax, |