Repository navigation
docs: adopt rust-lang/rust's LLM usage policy - #17330
Conversation
| For suggestions about how to use LLMs *well*, | ||
| and how to review LLM-created PRs, | ||
| see [the rustc-dev-guide][llm-guidance]. |
There was a problem hiding this comment.
| @@ -0,0 +1,21 @@ | |||
| # LLM Usage | |||
There was a problem hiding this comment.
Put the heading without "Policy" but only "LLM Usage" because this covers both policy and guidance. Fine if we want to tweak.
|
r? @epage rustbot has assigned @epage. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@rfcbot fcp merge t-cargo |
|
Error encountered: |
|
@rfcbot fcp merge T-cargo |
|
@weihanglo has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
|
@rfcbot concern member-on-vacation Some of t-cargo members are on vacation. Let's give them a bit more time. No need to rush and merge this. |
|
@rfcbot resolves member-on-vacation |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
|
Going to merge this, since this is not a thing we need to wait for external feedback. Thanks everyone! |
Update cargo submodule 6 commits in eb98b54bc9f3c74519f43d066cb3fd02ebc88df0..8a0d8afba810304bcf9a10bac430be80dd470233 2026-08-11 16:00:29 +0000 to 2026-08-15 01:32:53 +0000 - chore: update to [email protected] (rust-lang/cargo#17364) - Remove most trailing whitespace across cargo (particularly markdown) (rust-lang/cargo#17358) - Remove unremap file when running cargo clean -p in new build-dir layout (rust-lang/cargo#17356) - fix(update)!: Remove unstable `--breaking` (rust-lang/cargo#17333) - docs: adopt rust-lang/rust's LLM usage policy (rust-lang/cargo#17330) - fix(min-publish-age): remove `registry.min-publish-age` (rust-lang/cargo#17353) r? ghost
Update cargo submodule 6 commits in eb98b54bc9f3c74519f43d066cb3fd02ebc88df0..8a0d8afba810304bcf9a10bac430be80dd470233 2026-08-11 16:00:29 +0000 to 2026-08-15 01:32:53 +0000 - chore: update to [email protected] (rust-lang/cargo#17364) - Remove most trailing whitespace across cargo (particularly markdown) (rust-lang/cargo#17358) - Remove unremap file when running cargo clean -p in new build-dir layout (rust-lang/cargo#17356) - fix(update)!: Remove unstable `--breaking` (rust-lang/cargo#17333) - docs: adopt rust-lang/rust's LLM usage policy (rust-lang/cargo#17330) - fix(min-publish-age): remove `registry.min-publish-age` (rust-lang/cargo#17353) r? ghost
…ang#17641) *[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust-clippy/pull/17641)* Adopting the LLM policy from `rust-lang/rust`, really similar to rust-lang/cargo#17330 but _Clippier_ @rust-lang/clippy @rust-lang/clippy-contributors changelog:Adopt the upstream `rust-lang/rust` LLM policy r? @flip1995
What does this PR try to resolve?
The Cargo team has discussed this for quite some time.
The general consensus is to adopt an existing LLM policy rather creating one from scratch.
While we are adopting the policy as-is,
it is not currently written in a way that can to be directly applied outside
rust-lang/rust.For example,
some sections link to compiler specific review doc,
or refer to
rust-lang/rustspecific labeling system.If there is a conflict between the policy and Cargo's contrib doc,
the Cargo team has the final say on how the policy applies.
How to test and review this PR?
This will go through a t-cargo FCP.
I want to keep it as lean as possible for now.
In the future, we may add Cargo specific additions to the policy.
🤖 LLM disclosure: I used LLM to fix grammar errors.