Skip to content

docs: adopt rust-lang/rust's LLM usage policy - #17330

Merged
weihanglo merged 1 commit into
rust-lang:masterfrom
weihanglo:llm-policy
Aug 13, 2026
Merged

weihanglo merged 1 commit into
rust-lang:masterfrom
weihanglo:llm-policy

Conversation

@weihanglo

Copy link
Copy Markdown
Member

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/rust specific 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.

@weihanglo weihanglo added the T-cargo Team: Cargo label Aug 7, 2026
@rustbot rustbot added the A-documenting-cargo-itself Area: Cargo's documentation label Aug 7, 2026
Comment on lines +16 to +18
For suggestions about how to use LLMs *well*,
and how to review LLM-created PRs,
see [the rustc-dev-guide][llm-guidance].

@weihanglo weihanglo Aug 7, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread doc/contrib/src/process/llm-usage.md Resolved
@@ -0,0 +1,21 @@
# LLM Usage

@weihanglo weihanglo Aug 7, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put the heading without "Policy" but only "LLM Usage" because this covers both policy and guidance. Fine if we want to tweak.

View changes since the review

@weihanglo
weihanglo marked this pull request as ready for review August 7, 2026 12:09
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 7, 2026
@rustbot

rustbot commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

r? @epage

rustbot has assigned @epage.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @epage, @weihanglo
  • @epage, @weihanglo expanded to epage, weihanglo

@weihanglo

Copy link
Copy Markdown
Member Author

@rfcbot fcp merge t-cargo

@rust-rfcbot

Copy link
Copy Markdown
Collaborator

Error encountered:
Provided team t-cargo is invalid

@weihanglo

Copy link
Copy Markdown
Member Author

@rfcbot fcp merge T-cargo

@rust-rfcbot

rust-rfcbot commented Aug 7, 2026 •

Copy link
Copy Markdown
Collaborator

@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.

@rust-rfcbot rust-rfcbot added proposed-final-comment-period An FCP proposal has started, but not yet signed off. disposition-merge FCP with intent to merge labels Aug 7, 2026
@weihanglo

This comment was marked as duplicate.

@rustbot

This comment was marked as duplicate.

@weihanglo

Copy link
Copy Markdown
Member Author

@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.

Comment thread doc/contrib/src/process/llm-usage.md Resolved
Comment thread doc/contrib/src/process/llm-usage.md Resolved
Comment thread doc/contrib/src/process/llm-usage.md Resolved
Comment thread doc/contrib/src/process/llm-usage.md Resolved

@weihanglo weihanglo left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I've updated accordingly. :)

View changes since this review

@weihanglo
weihanglo requested a review from joshtriplett August 8, 2026 02:39
@weihanglo

Copy link
Copy Markdown
Member Author

@rfcbot resolves member-on-vacation

@rust-rfcbot rust-rfcbot added the final-comment-period FCP — a period for last comments before action is taken label Aug 13, 2026
@rust-rfcbot

Copy link
Copy Markdown
Collaborator

🔔 This is now entering its final comment period, as per the review above. 🔔

@rust-rfcbot rust-rfcbot removed the proposed-final-comment-period An FCP proposal has started, but not yet signed off. label Aug 13, 2026
@weihanglo

Copy link
Copy Markdown
Member Author

Going to merge this, since this is not a thing we need to wait for external feedback. Thanks everyone!

@weihanglo
weihanglo added this pull request to the merge queue Aug 13, 2026
Merged via the queue into rust-lang:master with commit 0632810 Aug 13, 2026
29 checks passed
@weihanglo
weihanglo deleted the llm-policy branch August 13, 2026 17:48
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 13, 2026
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Aug 15, 2026
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
@rustbot rustbot added this to the 1.100.0 milestone Aug 15, 2026
renovate-bot pushed a commit to renovate-bot/rust-lang-_-compiler-builtins that referenced this pull request Aug 17, 2026
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
@rust-rfcbot rust-rfcbot added finished-final-comment-period FCP complete S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. to-announce and removed final-comment-period FCP — a period for last comments before action is taken labels Aug 23, 2026
pull Bot pushed a commit to evanjs/rust-clippy that referenced this pull request Sep 1, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-documenting-cargo-itself Area: Cargo's documentation disposition-merge FCP with intent to merge finished-final-comment-period FCP complete S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cargo Team: Cargo to-announce

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants