regression: RefCell<LineWriter<std::io::stdio::StdoutRaw>>
cannot be shared between threads safely #127340
Closed
Description
The error seems probably correct, but it's not clear why this would have started failing now.
- https://crater-reports.s3.amazonaws.com/beta-1.80-4/beta-2024-06-22/reg/clap-io-0.1.0/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.80-4/beta-2024-06-22/reg/fakelogs-0.1.10-75501d4/log.txt
[INFO] [stdout] error[E0277]: `RefCell<LineWriter<std::io::stdio::StdoutRaw>>` cannot be shared between threads safely
[INFO] [stdout] --> src/lib.rs:205:20
[INFO] [stdout] |
[INFO] [stdout] 205 | Ok(Box::new(stdout))
[INFO] [stdout] | ^^^^^^^^^^^^^^^^ `RefCell<LineWriter<std::io::stdio::StdoutRaw>>` cannot be shared between threads safely
[INFO] [stdout] |
[INFO] [stdout] = help: the trait `Sync` is not implemented for `RefCell<LineWriter<std::io::stdio::StdoutRaw>>`, which is required by `StdoutLock<'_>: Sync`
[INFO] [stdout] = note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead
[INFO] [stdout] = note: required for `ReentrantLockGuard<'_, RefCell<LineWriter<std::io::stdio::StdoutRaw>>>` to implement `Sync`
[INFO] [stdout] note: required because it appears within the type `StdoutLock<'_>`
[INFO] [stdout] --> /rustc/64a1fe67112931359c7c9a222f08fd206255c2b5/library/std/src/io/stdio.rs:614:12
[INFO] [stdout] = note: required for the cast from `Box<StdoutLock<'_>>` to `Box<dyn std::io::Write + Sync>`
Metadata
Assignees
Labels
Area: `std::io`, `std::fs`, `std::net` and `std::path`Status: A Minimal Complete and Verifiable Example has been found for this issueRelevant to the library team, which will review and decide on the PR/issue.Performance or correctness regression from stable to beta.Marks issues that should be documented in the release notes of the next release.
Activity