radbuglet's Avatar

radbuglet

@radbuglet

12
Followers
95
Following
36
Posts
06.11.2024
Joined
Posts Following

Latest posts by radbuglet @radbuglet

A screenshot from the playground linked above. It achieves the same as the first post in the thread but does so without using ampersands.

A screenshot from the playground linked above. It achieves the same as the first post in the thread but does so without using ampersands.

Is your ampersand key broken? No worries! Rust's got you covered!

play.rust-lang.org?version=stab...

12.03.2026 22:02 👍 1 🔁 0 💬 0 📌 0
A screenshot from the playground linked in the post demonstrating that exact pattern.

A screenshot from the playground linked in the post demonstrating that exact pattern.

Now, say you wanted to write `let mut c = &mut *d;` using patterns. Not to worry! Just enable the unstable `mut_ref` feature and write `let &mut mut ref mut c = d;`. It's a cinch!

play.rust-lang.org?version=nigh...

12.03.2026 21:29 👍 1 🔁 0 💬 1 📌 0
A screenshot from the linked Rust playground of the `bar` function, which reborrows a mutable reference to a variable using a pattern.

A screenshot from the linked Rust playground of the `bar` function, which reborrows a mutable reference to a variable using a pattern.

Novel Rust reborrowing technique

play.rust-lang.org?version=stab...

12.03.2026 21:21 👍 1 🔁 0 💬 1 📌 0

I'm gonna go to bed for the day, be right back.

10.03.2026 06:27 👍 1 🔁 0 💬 0 📌 0

My mascara is so good today. istg, if I cry I’m gonna cry.

05.03.2026 14:29 👍 1 🔁 0 💬 0 📌 0

“You'd have to do a lot of crocheting to make ends meet.”

01.03.2026 01:36 👍 3 🔁 0 💬 0 📌 0
Rust Playground A browser interface to the Rust compiler to experiment with the language

Here's a playground link which illustrates how this could be a breaking change a bit more clearly. Then again, this is caused by a bug in rustc and cargo-semver probably shouldn't warn on this—I'm sorry you got pinged about that!

play.rust-lang.org?version=stab...

26.02.2026 05:20 👍 1 🔁 0 💬 1 📌 0

*adding projection types

26.02.2026 05:06 👍 1 🔁 0 💬 0 📌 0
Rust Playground A browser interface to the Rust compiler to experiment with the language

An actually minimized version of the bug can be found here.

play.rust-lang.org?version=stab...

26.02.2026 05:05 👍 1 🔁 0 💬 1 📌 0

I was being very tongue-in-cheek with the whole “semver breakage” thing. The real bug is that `meow` and `mewo` should compile but only the former actually does. The “surprise semver breakage” quip is just about how seemingly innocuous changes in an upstream crate can cause this bug to occur.

26.02.2026 05:05 👍 1 🔁 0 💬 1 📌 0
A screenshot of the code from the linked playground. The `mewo` function has an error squiggle despite being near identical to the `meow` function above.

A screenshot of the code from the linked playground. The `mewo` function has an error squiggle despite being near identical to the `meow` function above.

Novel semver violation: adding associated types to type aliases which previously didn't have them.
play.rust-lang.org?version=stab...

26.02.2026 01:53 👍 6 🔁 0 💬 2 📌 0
Screenshot of https://www.businessinsider.com/meta-granted-patent-for-ai-llm-bot-dead-paused-accounts-2026-2, with the headline “Death isn't the end: Meta patented an AI that lets you keep posting from beyond the grave.”

Screenshot of https://www.businessinsider.com/meta-granted-patent-for-ai-llm-bot-dead-paused-accounts-2026-2, with the headline “Death isn't the end: Meta patented an AI that lets you keep posting from beyond the grave.”

Lily the Immortal by Kylie Lee Baker

17.02.2026 06:14 👍 1 🔁 0 💬 0 📌 0
Preview
exsanguinate - Wiktionary, the free dictionary

en.wiktionary.org/wiki/exsangu...

07.02.2026 18:17 👍 1 🔁 0 💬 0 📌 0

Mankind is dead. Blood is fuel. Thank goodness for fire exsanguishers.

07.02.2026 18:15 👍 1 🔁 0 💬 1 📌 0
Video thumbnail
02.02.2026 03:04 👍 1 🔁 0 💬 0 📌 0

Sorry. Can't. Have to go to sleep tomorrow.

27.01.2026 04:54 👍 1 🔁 0 💬 0 📌 0

First-person shooter maps if they were named like Mario levels: flagrant con conflagration.

21.01.2026 02:15 👍 1 🔁 0 💬 0 📌 0

nowadays, they call it GA(H)T.

15.01.2026 22:01 👍 2 🔁 0 💬 0 📌 0
Video thumbnail
02.01.2026 05:53 👍 1 🔁 0 💬 0 📌 0

So the answer is yesn’t? Like, the logic for checking whether a `#[repr(transparent)]` ADT will reveal the layout of your type to the type checker with no regards for visibility but an end user in another crate will at least get a lint.

23.12.2025 14:41 👍 3 🔁 0 💬 0 📌 0

Here is the compiler’s logic for checking whether a transparent structure has a legal layout.

github.com/rust-lang/ru...

It seems to have the notion of an unsuited type, which is a non-local ADT with private fields or a `non_exhaustive` attribute, and will lint if you use it as a ZST.

23.12.2025 14:39 👍 3 🔁 0 💬 1 📌 0
Video thumbnail
21.12.2025 06:00 👍 2 🔁 0 💬 0 📌 0
A screenshot from Girls' Last Tour episode 5. Chito is dreaming of the ocean, with Yuuri depicted as a big fish. The skeleton of the small fish they ate a few days ago is circled in red. Hidden in the image is a picture of Goku.

A screenshot from Girls' Last Tour episode 5. Chito is dreaming of the ocean, with Yuuri depicted as a big fish. The skeleton of the small fish they ate a few days ago is circled in red. Hidden in the image is a picture of Goku.

06.09.2025 04:27 👍 2 🔁 0 💬 0 📌 0
A screenshot of a Snap! project. When the green flag is clicked, the program says meow for two seconds, moves 10 steps forwards, waits 2 seconds, sets the "factorial" variable to a recursive implementation of factorial using the Y-combinator, and uses that variable to evaluate 5 factorial.

A screenshot of a Snap! project. When the green flag is clicked, the program says meow for two seconds, moves 10 steps forwards, waits 2 seconds, sets the "factorial" variable to a recursive implementation of factorial using the Y-combinator, and uses that variable to evaluate 5 factorial.

Snap! is amazing.

05.09.2025 22:25 👍 3 🔁 0 💬 1 📌 0

A lawyer, increasingly frustrated by the constant interruptions of her cadre of loyal paralegals, asks for parapets to be installed around her office.

Somewhere, the monkey paw curls.

29.08.2025 17:10 👍 1 🔁 0 💬 0 📌 0

What are little boys made of?
What are little boys made of?
Three-in-one
Snips, snails
And puppy-dogs' tails
That's what little boys are made of.....

16.08.2025 04:08 👍 1 🔁 0 💬 0 📌 0

In for a dollar, in for a dime, that’s why I mess up age-old adages on company time.

12.08.2025 22:13 👍 2 🔁 0 💬 0 📌 0

In addition to the human factors, single-use explosives are terrible for the environment.

31.05.2025 16:17 👍 1 🔁 0 💬 0 📌 0

Background music used: www.youtube.com/watch?v=micG...

17.05.2025 00:31 👍 1 🔁 0 💬 0 📌 0
Video thumbnail
17.05.2025 00:30 👍 1 🔁 0 💬 1 📌 0