[BZ#789987] 2.41.1 Build error mingw64
Submitted by Paul Boutan
Link to original bug (#789987)
Description
Compiling docopt v0.7.0 error: use of unstable library feature 'rc_raw' (see issue #37197) --> vendor\cssparser\src\cow_rc_str.rs:78:31 | 78 | let ptr = unsafe { &*(Rc::into_raw(s) as *const ()) }; | ^^^^^^^^^^^^
error: use of unstable library feature 'rc_raw' (see issue #37197) --> vendor\cssparser\src\cow_rc_str.rs:107:21 | 107 | Rc::from_raw(ptr) | ^^^^^^^^^^^^
error[E0308]: mismatched types
--> vendor\cssparser\src\cow_rc_str.rs:107:34
|
107 | Rc::from_raw(ptr)
| ^^^ types differ in mutability
|
= note: expected type *mut _
= note: found type *const std::string::String
error: use of unstable library feature 'rc_raw' (see issue #37197) --> vendor\cssparser\src\cow_rc_str.rs:125:17 | 125 | Rc::from_raw(ptr) | ^^^^^^^^^^^^
error[E0308]: mismatched types
--> vendor\cssparser\src\cow_rc_str.rs:125:30
|
125 | Rc::from_raw(ptr)
| ^^^ types differ in mutability
|
= note: expected type *mut _
= note: found type *const std::string::String
error: aborting due to 5 previous errors
thread 'rustc' has overflowed its stack
Build failed, waiting for other jobs to finish...
error: Could not compile cssparser
.
To learn more, run the command again with --verbose. make[2]: *** [Makefile:1930: /g/distrib/librsvg/librsvg-2.41.1/rust/target/release/librsvg_internals.a] Error 101 make[2]: Leaving directory '/g/distrib/librsvg/librsvg-2.41.1' make[1]: *** [Makefile:1468: all-recursive] Error 1 make[1]: Leaving directory '/g/distrib/librsvg/librsvg-2.41.1' make: *** [Makefile:896: all] Error 2