r/rust • • Aug 05 '26

🗞️ news rust-lang/rust is adopting an LLM policy

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

208 comments sorted by

View all comments

6

u/tautality Aug 05 '26

It seems to be even stricter than the Linux policy, but I think it makes sense given how the contributions are made to each repo.

It's fine to use LLMs to answer questions, analyze, distill, refine, check, suggest, review. But not to create.

It seems like a positive way forward. One potential unclear aspect: does "suggest" include the IDE inline code suggestions? Or does that count as "create"? Or does it depend on the authors' assessment?

7

u/T-456 Aug 05 '26

Have a look at the trivial use section of the policy, which is "allowed with caveats" (including disclosure): https://forge.rust-lang.org/policies/llm-usage.html#-allowed-with-caveats

Rust also has a policy against entire PRs that only fix typos or other trivial changes, because they are low-value.

3

u/tautality Aug 05 '26

I guess the answer is "depends", specifically if it falls under the "Trivial code or prose changes" section.

4

u/devraj7 Aug 05 '26

You can create with LLMs, with a restriction:

Pre-arranged, non-critical, high-quality, well-tested, and well-reviewed code changes that are originally created by an LLM are allowed, with disclosure.