Saltar al contenido ForoHackers

Does Rust 1.85 still let me call a variable gen?

CompiladoresCódigo abiertoRust
#18111 · · Citar · Denunciar

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 · · Citar · Denunciar

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 · · Citar · Denunciar

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 · · Citar · Denunciar

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 · · Citar · Denunciar

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 · · Citar · Denunciar

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

#18455 · · Citar · Denunciar

それは私です。コーヒーをいれます。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.

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder