Skip to content

tidy: use repository-relative path for style checks - #164681

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
paradoxicalguy:tidy-clean-up
Oct 21, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
paradoxicalguy:tidy-clean-up

Conversation

@paradoxicalguy

@paradoxicalguy paradoxicalguy commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

fixes #164567
when remap-debuginfo = true, file!() returns a remapped path that doesn't match the filesystem path used by tidy. this prevents tidy from recognizing style.rs as its own implementation, causing it to report style violations within the file.

use a repository-relative path instead, consistent with the existing handling of codegen.rs.

r? @Kobzol
cc @Urgau

@rustbot rustbot added A-tidy Area: The tidy tool S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Oct 21, 2026
@rustbot

rustbot commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Kobzol is not on the review rotation at the moment.
They may take a while to respond.

@rust-log-analyzer

This comment has been minimized.

@paradoxicalguy

paradoxicalguy commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

blank push to re-run failed job

@paradoxicalguy

Copy link
Copy Markdown
Contributor Author

@bors r+
magic

@rust-bors

rust-bors Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@paradoxicalguy: 🔑 Insufficient privileges: not in review users

@Kobzol

Kobzol commented Oct 21, 2026

Copy link
Copy Markdown
Member

Confirmed that it fixes the issue. Thanks.

@bors r+ rollup

@rust-bors

rust-bors Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

📌 Commit e5130b6 has been approved by Kobzol

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 5. This pull request will be tested once the tree is reopened.

Reason for tree closure: spurious failures

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 21, 2026
@paradoxicalguy

Copy link
Copy Markdown
Contributor Author

thank you :D

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Oct 21, 2026
…bzol

tidy: use repository-relative path for style checks

fixes rust-lang#164567
when `remap-debuginfo = true`, `file!()` returns a remapped path that doesn't match the filesystem path used by tidy. this prevents tidy from recognizing `style.rs` as its own implementation, causing it to report style violations within the file.

**use a repository-relative path instead, consistent with the existing handling of codegen.rs.**

r? @Kobzol
cc @Urgau
rust-bors Bot pushed a commit that referenced this pull request Oct 21, 2026
…uwer

Rollup of 13 pull requests

Successful merges:

 - #162460 (Feat - `#[inline(always)] + #[target_feature(enable = "....")]` #2)
 - #163485 (`rustc_builtin_macros` cleanup, part 8)
 - #164457 (Add `vec_visualizer` lldb test)
 - #161253 (Implement `AsMut<T>` and `AsRef<T>` for `!`.)
 - #162369 (Document the `recursion_limit` built-in attribute)
 - #162840 (tier 3 target policy: target CPU and features must be supported by upstream backend)
 - #164329 (use default_field_values in declare_lint)
 - #164330 (Skip redundant monomorphization checks)
 - #164527 (doc: added addtional docs for Write)
 - #164656 (stabilize ExitCodeExt for Windows)
 - #164660 (Touch up attribute docs)
 - #164681 (tidy: use repository-relative path for style checks)
 - #164688 (re-enable test_dir_remove_dir test on QNX)
@rust-bors
rust-bors Bot merged commit 8b88e19 into rust-lang:main Oct 21, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 21, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 21, 2026
Rollup merge of #164681 - paradoxicalguy:tidy-clean-up, r=Kobzol

tidy: use repository-relative path for style checks

fixes #164567
when `remap-debuginfo = true`, `file!()` returns a remapped path that doesn't match the filesystem path used by tidy. this prevents tidy from recognizing `style.rs` as its own implementation, causing it to report style violations within the file.

**use a repository-relative path instead, consistent with the existing handling of codegen.rs.**

r? @Kobzol
cc @Urgau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tidy Area: The tidy tool S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tidy complains about itself when remap-debuginfo = true

4 participants