You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
can not build master with rust - throws error #1000
info: checking for self-update (current version: 1.29.2)
info: cleaning up downloads & tmp directories
git clone https://github.com/microsoft/edit.git
Cloning into 'edit'...
remote: Enumerating objects: 5500, done.
remote: Counting objects: 100% (197/197), done.
remote: Compressing objects: 100% (140/140), done.
remote: Total 5500 (delta 109), reused 79 (delta 56), pack-reused 5303 (from 3)
Receiving objects: 100% (5500/5500), 2.80 MiB | 16.29 MiB/s, done.
Resolving deltas: 100% (3453/3453), done.
cd edit
cargo build --release
Updating crates.io index
Downloaded toml-span v0.7.2
Downloaded smallvec v1.16.4
Downloaded winresource v0.1.34
Downloaded 3 crates (148.2KiB) in 0.45s
Compiling smallvec v1.16.4
Compiling version_check v0.9.5
Compiling lsh v0.1.0 (C:\Users\developer\utv\edit\crates\lsh)
Compiling windows-link v0.2.1
Compiling windows-sys v0.61.2
Compiling toml-span v0.7.2
Compiling winresource v0.1.34
Compiling edit v2.0.0 (C:\Users\developer\utv\edit\crates\edit)
error[E0502]: cannot borrow double_cache.cache[_] as mutable because it is also borrowed as immutable
--> crates\edit\src\icu.rs:461:17
|
434 | fn utext_access_impl<'a>(ut: &mut icu_ffi::UText, native_index: usize, forward: bool) -> &'a Cache {
| -- lifetime 'a defined here
...
451 | for (i, cache) in double_cache.cache.iter().enumerate() {
| ------------------ immutable borrow occurs here
...
454 | return cache;
| ----- returning this value requires that double_cache.cache is borrowed for 'a
...
461 | let cache = &mut double_cache.cache[double_cache.mru as usize];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
For more information about this error, try rustc --explain E0502.
error: could not compile edit (lib) due to 1 previous erroror: could not compile edit (lib) due to 1 previous error
Activity
Fix compilation with stable Rust (microsoft#1002)