imperio
imperioworld.bsky.social
imperio
@imperioworld.bsky.social
rustlang reviewer and contributor, rustdoc team leader, gnome foundation member, co-owner of the Gtk-rs organization and of the askama-rs organization

Mastodon: https://toot.cat/@imperio
`u8::max` is a function, not a constant. Now you get a surprising amount of allocation (and potentially different) every time. :)

So many potential other cases where the end code is NOT the expected one. Well, not anymore!

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

2/2
Add new `function_casts_as_integer` lint by GuillaumeGomez · Pull Request #141470 · rust-lang/rust
The function_casts_as_integer lint detects cases where users cast a function pointer into an integer. warn-by-default Example fn foo() {} let x = foo as usize; warning: casting a function into an i...
github.com
November 11, 2025 at 4:52 PM
It's halloween so I guess today is the day to join the dark side. :3
October 31, 2025 at 12:24 PM
Reposted by imperio
If your company is interested in funding Rust maintainers, please reach out to me or @erikjee.bsky.social!

You can find our sponsors prospectus here: rustnl.org/resources/Ru...

Let me know if you want to talk! 💛

(Message me through Bluesky, Mastodon, Rust Zulip, or email: [email protected])
October 14, 2025 at 3:15 PM
fn i32<'i32>(i32: &'i32 i32) -> i32 {
let i32: i32<> = *i32;
i32
}

fn main() {
i32(&0);
}

4/4
October 13, 2025 at 10:24 PM
type u32 = i32;

fn main() {
let x: u32 = -1;
println!("{x}");
}

3/4
October 13, 2025 at 10:24 PM
fn main() {
let x: i32<> = 0i32;
println!("{x}");
}

2/4
October 13, 2025 at 10:24 PM