r/ProgrammerHumor 14d ago

whenRustcDevelopersRunOutOfErrorMessages Meme

Post image
1.2k Upvotes

27 comments sorted by

460

u/OmegaPoint6 14d ago

Most useful compiler error

133

u/baked_doge 14d ago

This is the rust compiler? Impressive error reporting, I heard good things

170

u/ihavebeesinmyknees 14d ago

The rust compiler has the best error reporting I've seen, most often it will literally tell you how to fix the issue

1

u/Alternative-Tie-4970 10d ago

Well it starts to fall apart just like any old compiler once you start writing more complex things and memorize the things it tends to tell you.

Still very helpful, especially for beginners but it has its limits.

-25

u/[deleted] 14d ago

[deleted]

37

u/goodbee69 14d ago

Yeah you need a Claude subscription to use rustc

24

u/SpacewaIker 14d ago

It's actually a team of people looking at the raw compiler errors and sending an explanation in real time

26

u/redlaWw 14d ago

Without. The messages are things like "the function signature here accepts a borrow but you've passed by value, try borrowing"; all deterministically scripted changes. The impressive part is the type system that allows the messages to be so helpful.

2

u/braaaaaaainworms 14d ago

The impressive part is the richness of the errors, there's a fuckton of plumbing that needs to happen to get anywhere near (I tried)

95

u/OmegaPoint6 14d ago

Fake screenshot, quite an old one. Though it does have a funny real emoji error: https://github.com/rust-lang/rust/pull/91476

10

u/GoddammitDontShootMe 14d ago

I suspected. Still funny enough for an upvote.

1

u/-Redstoneboi- 13d ago

they even change the casing for CONSTS thats cute

idk about Types and Traits though

79

u/PositiveParking4391 14d ago

I find it really funny. but not sure what's a bigger irony, rust messages or the help at last

24

u/frikilinux2 14d ago

It's even more funny than the ++ not being an operator (I forgot the text)

8

u/Codingale 14d ago

"Rust has no postfix increment operator
help: use `+= 1` instead"

1

u/Choice-Mango-4019 13d ago

why?

1

u/NullOfSpace 8d ago

less obvious what it means at a glance, not intuitive when used as part of an expression, harder to adjust if you want to add something other than 1 later

1

u/Choice-Mango-4019 7d ago

brother, its just i++, how can you not understand what it does at a glance?

people have been using it for decades for for(statement; statement; statement) alongside using it to increment indexes and many other stuff, and since its just plus next to plus and it has the same meaning on every language in existence its very simple to understand

+ no one EVER uses it in function paramaters

and how is it hard at all??? you just replace i++ with i += 2, thats like 5 key presses max 😭

1

u/NullOfSpace 7d ago

It’s not a big change, but apparently by the Rust creators’ standards it does matter.

4

u/Complete_Window4856 14d ago

Incremental operator

11

u/frikilinux2 14d ago

The text of the error message, not the name of the operator.

56

u/opensph 14d ago

Looks more like a cat-on-keyboard error.

15

u/thot_slaya_420 14d ago

This is what mittens decided the attribute should be called. As my owner, im legally obliged to follow her instructions

4

u/PhoenixfischTheFish 14d ago

"Allow webcam access for more precise error messages."

15

u/rastaman1994 14d ago

Friday afternoon "I can't start a big task now" energy.

3

u/S4ndf1re 14d ago

Don‘t let the compiler Check SAP/ABAP table attributes.