Skip to content

Snippet rework#14724

Open
Jarcho wants to merge 5 commits intorust-lang:masterfrom
Jarcho:source_rework
Open

Snippet rework#14724
Jarcho wants to merge 5 commits intorust-lang:masterfrom
Jarcho:source_rework

Conversation

@Jarcho
Copy link
Copy Markdown
Contributor

@Jarcho Jarcho commented May 2, 2025

View all comments

This is a further rework of our snippet accessing/creating code.

The general design goals with this:

  • Avoid allocating when not strictly necessary.
  • Make it easy to avoid linting if an invalid span is used.
  • Make it easier to debug when an invalid span is used.
  • Make it easy to minimize the number of lookups in the source map.
  • Make it easy to avoid creating intermediary compressed spans.
  • Make it as easy as possible to compose span adjustments/checks while maintaining the previous goals.

changelog: None

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 2, 2025

r? @Alexendoo

rustbot has assigned @Alexendoo.
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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 2, 2025
@Jarcho
Copy link
Copy Markdown
Contributor Author

Jarcho commented May 2, 2025

The first two commits are mainly renames. The third commit has all the actual changes.

@Jarcho Jarcho force-pushed the source_rework branch 2 times, most recently from 91b8913 to b336277 Compare May 2, 2025 05:13
@Jarcho
Copy link
Copy Markdown
Contributor Author

Jarcho commented May 2, 2025

Looking at MISSING_DOCS_IN_PRIVATE_ITEMS, that lint needs to be restructured a bit. Macros currently mess up it's implementation quite a bit.

Why is this not part of rustc in the first place?

@rustbot

This comment has been minimized.

Comment thread clippy_utils/src/source.rs Outdated
Comment thread clippy_lints/src/ranges.rs Outdated
@rustbot

This comment has been minimized.

@rustbot rustbot added has-merge-commits PR has merge commits, merge with caution. S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) labels Jul 18, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 18, 2025

Lintcheck changes for 17db42c

Lint Added Removed Changed
clippy::manual_ok_or 0 0 16
clippy::match_same_arms 0 1 0
clippy::multiple_bound_locations 0 2 0

This comment will be updated if you push new changes

@Jarcho Jarcho added the S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work label Jul 18, 2025
github-merge-queue Bot pushed a commit that referenced this pull request Jul 19, 2025
This is blocking #14724

changelog: none
github-merge-queue Bot pushed a commit that referenced this pull request Jul 19, 2025
This is blocking #14724

changelog: none
@rustbot rustbot removed S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) has-merge-commits PR has merge commits, merge with caution. labels Jul 19, 2025
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@Jarcho
Copy link
Copy Markdown
Contributor Author

Jarcho commented Feb 22, 2026

Blocked on #15793. Needed so we can assert we never access external sources.

@Jarcho Jarcho added the S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work label Feb 22, 2026
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 24, 2026

☔ The latest upstream changes (possibly 807dea0) made this pull request unmergeable. Please resolve the merge conflicts.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 28, 2026

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants