It looks like the build fails because the cargo tests, which are
executed during the build, are using the rustc feature (file lock),
which got stabilised in rustc v1.89: https://github.com/rust-
lang/rust/releases/tag/1.89.0

```

Couldn't compile the test.
---- src/lib.rs - (line 78) stdout ----
error[E0658]: use of unstable library feature `file_lock`
  --> src/lib.rs:89:15
   |
13 |         flock.lock()?;
   |               ^^^^
   |
   = note: see issue #130994 <https://github.com/rust-lang/rust/issues/130994> 
for more information
```

The current default rustc version in resolute is 1.88: 
https://launchpad.net/ubuntu/+source/rust-defaults
The build doesn't fail in Debian since it was built with rustc v1.91, which has 
the stabilised feature.

There are two ways we can fix this issue:
- Update d/control file in the package to use rustc-1.89 (is available in 
Resolute, but is not the default one: launchpad.net/ubuntu/+source/rustc-1.89)
- Wait till rust-defaults get updated (should be done in a few weeks as I was 
told on MM by ~maxgmr) and then rebuild the package

Please tell me which way you prefer this to be fixed

** Bug watch added: github.com/rust-lang/rust/issues #130994
   https://github.com/rust-lang/rust/issues/130994

** Changed in: rust-scratch (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2138718

Title:
  rust-scratch fails to build in resolute

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-scratch/+bug/2138718/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to