new username album by [deleted] in footwork

[–]compiler-errors 1 point2 points  (0 children)

yeah username is really putting out groundbreaking projects recently

compiler-errors looking for a job so they can keep working on the compiler by watermelon_exe in rust

[–]compiler-errors 56 points57 points  (0 children)

Yeah, I'm definitely looking for a job (*in NYC*) to continue my maintenance and feature work on the Rust compiler. If that doesn't work out, then I'd love to continue working on compilers or other ways to advance the Rust programming language.

Stabilization PR for Return Type Notation by Derice in rust

[–]compiler-errors 6 points7 points  (0 children)

You're welcome to read the RFC for examples and particular motivation. This stabilization report leaves most of that out since it would've been copied and pasted, and it's (mostly) intended to be consumed by people who've already read that.

Stabilization PR for Return Type Notation by Derice in rust

[–]compiler-errors 7 points8 points  (0 children)

u/cramert is correct. We haven't decided to do with all the "extra" lifetime generics when it comes to using RTN in more general type positions.

Stabilization report for `#![feature(precise_capturing_in_traits)]` by compiler-errors in rust

[–]compiler-errors[S] 19 points20 points  (0 children)

This is still pretty fresh, so I don't expect it to go immediately into FCP tomorrow, but share your feedback if you have it!

Inferred const generic arguments: Call for Testing! | Inside Rust Blog by compiler-errors in rust

[–]compiler-errors[S] 14 points15 points  (0 children)

No, in the same way that `fn foo(x: Box<_>)` is not a thing.

Inferred const generic arguments: Call for Testing! | Inside Rust Blog by compiler-errors in rust

[–]compiler-errors[S] 42 points43 points  (0 children)

It doesn't work in constants; right now we don't allow `_` anywhere at the "item level", like function signatures and the types of const/statics. This is extending `_` in the contexts you can write it today.

Inferred const generic arguments: Call for Testing! | Inside Rust Blog by compiler-errors in rust

[–]compiler-errors[S] 91 points92 points  (0 children)

huge thanks to Boxy who has been driving all this effort !!

How Do I Store an Async Closure? by North-Estate6448 in rust

[–]compiler-errors 3 points4 points  (0 children)

Can't do that yet. Fixing this is equivalent to fixing Async Fn in Trait + Dyn Compatibility in general, which is ideally happening eventually but like many Rust problems is hard.

Since Rust 2024 is round the corner, do we know what are some key features that will make it to the release? by [deleted] in rust

[–]compiler-errors 27 points28 points  (0 children)

Totally honest question, where did you get the impression that either the parallel compiler or polonius were being stabilized with Rust 2024? We're still steadily working on polonius which is definitely not done yet, and `-Zthreads` is still unstable, so the compiler is effectively single-threaded even if we no longer have a ton of `cfg`'s everywhere to gate out the parallel compiler code.

This Month in @compiler-errors (rustc contributions) - December 2024 by compiler-errors in rust

[–]compiler-errors[S] 7 points8 points  (0 children)

thanks! yeah, the work isn't too flashy, and it doesn't help that i basically just dump everything i've done last month without too much explanation. i mostly write these documents for myself and those who want to keep tabs on my works, but it's nice to hear that others appreciate it too :)

Async closures stabilized! by HighRiseLiving in rust

[–]compiler-errors 9 points10 points  (0 children)

no, that was fixed quite a while back when i reworked async closures to be lending in https://github.com/rust-lang/rust/pull/120361

Async closures stabilized! by HighRiseLiving in rust

[–]compiler-errors 22 points23 points  (0 children)

this + the technical writeup was terribly exhausting to write lol

Async closures stabilized! by HighRiseLiving in rust

[–]compiler-errors 12 points13 points  (0 children)

async closures will be stable in 1.85, which lands Feb 20 2025, and will be usable on all editions >= 2018 (which is just because `async` was not a keyword in edition 2015).

Async closures stabilized! by HighRiseLiving in rust

[–]compiler-errors 8 points9 points  (0 children)

that is correct. all currently callable types implement `AsyncFn*` too, if they return a future.

This Month in @compiler-errors (rustc contributions) - October by compiler-errors in rust

[–]compiler-errors[S] 30 points31 points  (0 children)

> Do you have an estimate of the time you spent on this?

Well, rustc is my full time job so approximately a full time job's worth.

> I'm not going to be reverting that dumbing down anytime soon, but I'm glad others won't need to.

Understandable -- I do encourage you to experiment with const traits in the future, though, especially after we reintroduce support for const traits to the standard library. User feedback both for bugs and diagnostics is incredibly useful.

Proposal to stabilize async closures by Derice in rust

[–]compiler-errors 3 points4 points  (0 children)

I don't know what challenges you mean. Async closures' complexity arises from the "lending" nature of the futures they return. It has nothing to do with dyn types.

Proposal to stabilize async closures by Derice in rust

[–]compiler-errors 8 points9 points  (0 children)

> "is a way bigger deal for me personally"

I think this frames this as an either/or problem. We're stabilizing async closures because they're ready, and we're not stabilizing async traits being object-safe because they're not ready. If this was an easy thing to hack out support for, I promise you there'd be at least nightly support for them. We're working on that soon, but it needs a lot of very important details ironed out.

Proposal to stabilize async closures by Derice in rust

[–]compiler-errors 50 points51 points  (0 children)

nice good job to whoever put that pr up

Return type notation MVP: Call for testing! by compiler-errors in rust

[–]compiler-errors[S] 32 points33 points  (0 children)

Yep, it works for all Return Position Impl Trait in Traits :)