File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,6 @@ fn main() {
8
8
//
9
9
// <https://github.com/rust-lang/rust/pull/53910>
10
10
ac. emit_rustc_version ( 1 , 30 ) ;
11
- }
11
+
12
+ println ! ( "cargo:rerun-if-changed=build.rs" ) ;
13
+ }
Original file line number Diff line number Diff line change 10
10
11
11
#![ allow( bad_style) ]
12
12
13
+ // This is a hack for compatibility with rustc 1.25.0. The no_std mode of this
14
+ // crate is not supported pre-1.30.0, but in std mode the `char` module here
15
+ // moved in rustc 1.26.0 (ish). As a result, in std mode we use `std::char` to
16
+ // retain compatibility with rustc 1.25.0, but in `no_std` mode (which is
17
+ // 1.30.0+ already) we use `core::char`.
13
18
#[ cfg( feature = "std" ) ]
14
19
use std:: char;
20
+ #[ cfg( not( feature = "std" ) ) ]
21
+ use core:: char;
15
22
16
23
use core:: mem;
17
24
use core:: slice;
18
- #[ cfg( not( feature = "std" ) ) ]
19
- use core:: char;
20
25
21
26
use winapi:: ctypes:: * ;
22
27
use winapi:: shared:: basetsd:: * ;
You can’t perform that action at this time.
0 commit comments