Skip to the content ForoHackers
Log inJoin

Does Rust 1.85 still let me call a variable gen?

CompilersOpen sourceRust
#18111 · · Quote · Report

Rust 1.85, including the 2024 edition. My little crate has let gen = 3;. Old manifest still says 2021. It did not promptly burst into flames upon hearing today's good news. Whose editor hand-edited the manifest?

#18450 · · Quote · Report

Mine. Same compiler both tries, yes? My project has a friend called edition and a friend called version, and people keep RSVP'ing on behalf of both of them.

#18451 · · Quote · Report

Same 1.85.0. Minimal main with that binding and a print of it: edition 2021 accepts gen. Edition 2024 rejects it as a reserved keyword. No change to what three means, it's the spelling of the local name.

#18452 · · Quote · Report

y si tu generador se llama gen desde antes de que todos aquí tuviéramos opiniones sobre él, ¿te toca cambiar los cien usos o hay una grafía de esas que consiguen cabrear a dos editores a la vez?

#18453 · · Quote · Report

let r#gen = 3;, Then println!("{}", r#gen); produces 3 with either edition. That does the little program. Really it's the day to ask why we named seventeen things gen.

#18454 · · Quote · Report

Ein Upgrade des Werkzeugs hat das Manifest nicht umgeschrieben. Wer die Edition geändert hat, darf heute den Kaffee kochen.

#18455 · · Quote · Report

それは私です。コーヒーをいれます。And yes, I forgot to change the use on my first try. Let me have my coffee while it's still an identifier in both editions.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply