r/programming • • Aug 05 '26

The rust programming language is adopting a new contributing policy

https://blog.rust-lang.org/inside-rust/2026/08/05/rust-langrust-is-adopting-an-llm-policy/
628 Upvotes

132 comments sorted by

View all comments

324

u/drakythe Aug 05 '26

I’d prefer LLMs went away altogether. But as the blog states, the one thing we can’t do with them is pretend they don’t exist. Given that, this feels like a relatively sane policy, all things considered. And good on them for adding a carve out for reviewers who don’t want to deal with LLM generated content. Since they’re not banning it outright, adding a specific point that reviewers are allowed to just skip over LLM content if they want means that those who don’t want to use or interact with LLMs are not required to do so in order to continue contributing to the project.

On the other hand: you ride the fence long enough and it will cut you in half, and this feels like one area where the consensus driven governance has formalized a silent split in the community, and I worry about where that fracture will show up in the future.

139

u/chucker23n Aug 05 '26

those who don’t want to use or interact with LLMs are not required to do so in order to continue contributing to the project.

Yes and no — you'll still have to deal with a codebase that is increasingly not written by humans.

85

u/Raknarg Aug 05 '26

already dealing with this at work, 6 month old project already experiencing the cruft of dealing with dogshit code written by AI I was not there to prevent

49

u/vips7L Aug 05 '26

Got dumped a 100k line pure slop project a few months ago. No one knows how anything works and any change you need to make its 50+ files. Pure dogshit.

36

u/EsIsstWasEsIst Aug 05 '26

I feel like you can´t blame all of that on AI alone.

38

u/Ythio Aug 05 '26

Who accepted to put that in production lmao

14

u/Ozymandias0023 Aug 06 '26

These managers are out her merging all sorts of shit. I keep having to go through their vibe projects and make them actually work, and it gets harder and harder because they keep trying to do more in one go.

Yes, you generated 100k lines of code with your thumb up your ass but it's all written like a college student's first wrben app. Congrats.

16

u/vips7L Aug 05 '26

Not in prod yet, it's not even capable of doing that yet. My job is apparently to get it there. I'm actively looking for a new role.

12

u/MostCredibleDude Aug 05 '26

Vibe coded projects should live in that world exclusively. You want to fix a vibe project? Spend more tokens and pray, don't waste experienced dev time on something where time could be better spent rewriting it manually.

→ More replies (1)

3

u/ghillerd Aug 08 '26

I'm very much an LLM skeptic, I do use LLMs at work, and I find this comment very funny because 10 years ago people were making the exact same complaint.

53

u/Shoddy-Childhood-511 Aug 05 '26

Not quite.

LLM work must be disclosed. Reviewers send suspected non-disclosed LLM code to moderation, who finds evidence, closes the PR, and could ban them.

Disclosed LLM users need approval, which should requires they do a better job than humans. At least one of the major rustc contributors loves using LLMs, but he writes high quality code, so he'll have no problem here. And he seemingly mentors some other LLM contributors.

Unlike Zig, Rust wants the LLM bug reports, especially for soundness, but they want them rewritten, minimised, and somewhat deduplicated by humans, not just slop reports.

30

u/chucker23n Aug 05 '26

That wasn’t my point.

If you move forward five years, some — disclosed, sure — code will be LLM-written. The further down you go that path, the higher the likelihood that whatever PR a new author is working on interacts with LLM-written code, regardless of how the author feels about it.

10

u/Shoddy-Childhood-511 Aug 05 '26

Alright but your point remains ambiguous:

Yes. It depends upon why someone avoids LLMs. Rust's statement looks useless if you avoid LLMs for labour rights reasons or copyright reasons for example.

Rust claims a middle ground between the Zig and Linux positions, but it's really more like Linux, so yes the FTFY goal reads:

those who don’t want to use or interact with LLMs AI slop and/or code no human understands are not required to do so in order to continue contributing to the project.

Linus might claim this goal for Linux too.

You maybe claiming they'll fail at one or both of these sub goals, but your statement is ambiguous.

It's clear some projects who set forth such a goal shall fail, ultimately drowning in AI slop.

It's not clear rustc or linux will fail here. It's unclear if they'll even have more code that no reachable human understands, because they have that problem already, and the AIs might help the read relevant parts faster. I donno..

As an aside, rust's std shall succeed at this goal, but std is kinda a triviality next to rustc, and thousands of humans read std.

→ More replies (4)
→ More replies (1)

10

u/drakythe Aug 05 '26

Good point, in the long term that will happen. I think what remains to be seen is if the % of the codebase that is not well understood will also increase. After all, I use the Drupal CMS day in and day out, write custom modules for it, and trouble shoot issues. I didn't write the vast majority of the code in it. But I understand it when I look. I think it is possible for people to use LLMs to generate well understood and understandable code, especially if they take the time to carefully read and review the code.

The issue, of course, is that LLMs just make it easier to generate seemingly coherent code (which is what seemed to force this official policy stance to begin with). While I don't like LLMs, I'm not inherently opposed to code that wasn't written by a human being. But if the code wasn't written by a human, or reviewed by a human, or understood by a human, then we definitely have a problem, and now that is actually possible. Which is a big problem.

15

u/chucker23n Aug 05 '26

I think what remains to be seen is if the % of the codebase that is not well understood will also increase.

Yep. Depends in part on

  • how good is the LLM-produced code? (Where "good" also includes: fits the existing code base's styles, patterns, etc.)
  • how little do developers' skills atrophy if they stop writing code?
→ More replies (7)

50

u/zombiecalypse Aug 05 '26

To be fair: AI slop PRs are a horrible representation of how to use LLMs effectively. I think the Rust folks understand that, which is why they don't want to ban them entirely: you get 100 PRs that don't understand that git diff --check isn't a CI tool, but you also get a security researcher that used an LLM to flesh out a proof for a vulnerability.

9

u/remy_porter Aug 05 '26

I’ve found it’s most useful to have the LLM query the code and not generate new code. Writing code is easy. Understanding a large codebase is hard. And it gets harder the more slop code there is in there.

48

u/pjank85 Aug 05 '26

This works until LLM starts to gaslight you into believing something that is not true. I was reviewing a PR once and it came up with a theory that this is not a proper fix. I spent the whole day following its logic only to discover it was a proper fix after all and the thing it proposed was a giant convoluted race condition. Whole day wasted and a terrible feeling.

17

u/Raknarg Aug 05 '26

yes your first instinct has to be to mistrust whatever it tells you

28

u/pjank85 Aug 05 '26

It is my first instinct to mistrust it and always verify. For complex system this verification sometimes takes considerable time and effort. Being led astray by a professionally souding response and spending 7h to confirm it is wrong is a shitty feeling.

7

u/Raknarg Aug 05 '26

thats brutal. definitely been burned similarly before, not for that long though

→ More replies (5)
→ More replies (7)
→ More replies (14)

28

u/En-tro-py Aug 05 '26

you ride the fence long enough and it will cut you in half

An excellent and apt figure of speech that I had not encountered before.

→ More replies (2)

18

u/Bergasms Aug 05 '26

It will take just one single LLM PR that fucks someones day getting through for the fracture to start. Even if its something that a non LLM user would have made or missed.

7

u/drakythe Aug 05 '26

I don’t disagree. Though I would point out such an event would merely bring the fracture to the surface. It’s already started, or there would be no need for the carve outs that serve “both sides” of the fence, as it were.

→ More replies (3)

8

u/Raknarg Aug 05 '26

surgical use of AI will always be the best use for it and the one experts will largely stick to, and hopefully becomes the only viable option as LLM costs go up.

→ More replies (3)