Frank Steffahn
Frank Steffahn
This is the reproduction: ```rs use std::{ io::Write, pin::Pin, task::{Context, Poll}, }; use futures::prelude::*; pub async fn yield_now() { /// Yield implementation struct YieldNow { yielded: bool, } impl Future...
See this issue: https://github.com/avitex/rust-aliasable/issues/3 The issue closed and “fixed”, but the fix is not published yet (for more than a year now). Only affected version at the moment: `0.1.3` (previous...
Change the way “fn item” types are displayed: make them easier to distinguish from fn pointers. My first point here is to figure out if CI passes, or how much...
> All we need to do to make our list is replace every reference to Rc with `std::sync::Arc`. That's it. We're thread safe. Done! > > But this raises an...
A followup to #289 addressing the remaining `clippy::pedantic` options would be nice; `clippy` currently complains: ``` cargo clippy --all --tests --features raw -- -W clippy::pedantic ``` Output (click to expand)...
# Proposal ## Problem statement This proposes a generalization of the existing unstable API `SyncUnsafeCell`. The `SyncUnsafeCell` type – as far as I understand from the [PR](https://github.com/rust-lang/rust/pull/95438) that adds it...
It’s a bit tricky to reproduce, but here’s a way that seems to reliably do it, as of now: ```rs use std::{ collections::HashMap, panic::{catch_unwind, AssertUnwindSafe}, sync::Mutex, }; #[derive(PartialEq, Eq, Debug)]...
```rs use std::{mem::ManuallyDrop, thread}; use fragile::{stack_token, Sticky}; fn main() { let dummy_sticky = thread::spawn(|| Sticky::new(())).join().unwrap(); let sticky_string = ManuallyDrop::new(Sticky::new(String::from("Hello World"))); stack_token!(t); let hello: &str = sticky_string.get(t); println!("now it exists: {hello}");...
This crate (and also similarly polonius-the-crab) work with a ```rs pub trait HKT where Self: for, { } pub trait WithLifetime WithLifetime>` trait objects that implement it. However, such trait...
Here's the code to reproduce: ```rs use std::{cell::{Cell, RefCell}, thread}; use thread_local::ThreadLocal; fn main() { static FOO: ThreadLocal = ThreadLocal::new(); // thread 1 thread::spawn(|| { thread_local!( static ACCESSOR: RefCell =...