rustc-dev-guide/src
Matthias Krüger 3dcb2ad5d9
Rollup merge of #135950 - Kobzol:tidy-python-improvements, r=onur-ozkan
Tidy Python improvements

Fixes display of Python formatting diffs in tidy, and refactors the code to make it simpler and more robust. Also documents Python formatting and linting in the Rustc dev guide.

Fixes: https://github.com/rust-lang/rust/issues/135942

r? `@onur-ozkan`
2025-01-24 16:25:44 +01:00
..
appendix Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
backend rustc-dev-guide: update outdated LLVM stamp filename 2025-01-12 08:47:57 +03:00
borrow_check Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
building rustc-dev-guide: document `BOOTSTRAP_TRACING` and bootstrap `tracing` setup 2025-01-13 13:46:20 +08:00
const-eval Fix more links (#1884) 2024-02-21 12:17:28 -03:00
diagnostics Add instructions to test error code docs (#2145) 2024-11-21 10:58:56 -08:00
guides Add a chapter on editions. (#1835) 2023-12-12 16:42:10 -03:00
img Remove outdated references to coverage debug code (#1797) 2023-09-22 01:32:45 +09:00
mir Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
notification-groups Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
param_env Replace direct http links to rustc-dev-guide.rust-lang.org to relative links to the corresponding md source files. (#2044) 2024-08-21 11:54:39 -07:00
profiling Fix some typos 2024-12-18 07:56:30 +02:00
queries Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
rustc-driver Remove RunCompiler 2025-01-23 09:38:58 +00:00
rustdoc-internals rustdoc: docs for search deduplication (#1850) 2024-10-07 23:09:03 +08:00
solve fix comment 2025-01-05 17:51:45 +01:00
tests rustc-dev-guide: document `needs-subprocess` directive 2025-01-23 20:51:28 +08:00
traits repetition not needed 2025-01-05 17:51:45 +01:00
ty_module Split stuff out of representing types, and rewrite early/late bound chapter (#2192) 2025-01-05 17:51:45 +01:00
SUMMARY.md rustc-dev-guide: document `BOOTSTRAP_TRACING` and bootstrap `tracing` setup 2025-01-13 13:46:20 +08:00
about-this-guide.md Correct the link to rust reference 2024-01-12 14:08:53 +02:00
asm.md Fix some typos 2024-12-18 07:56:30 +02:00
ast-lowering.md Rename AstConv to HIR ty lowering 2024-03-23 08:44:42 +01:00
ast-validation.md Fix Typo and Remove Outdated Line About C Variadics 2024-09-10 09:32:10 +02:00
attributes.md Document inert vs active attributes (#1110) 2024-06-23 16:09:09 +02:00
borrow_check.md Fix rustc_borrowck crate name typo (#1535) 2022-12-25 21:11:21 +09:00
bug-fix-procedure.md Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
cli.md --verbose is useful when not compiling and when compiling (#901) 2020-09-29 17:18:00 +02:00
closure.md Reorganize the "Source Code Representation" chapters (#2142) 2024-11-21 20:28:23 +08:00
coherence.md Fix some typos 2024-12-18 07:56:30 +02:00
compiler-debugging.md fixups (#2082) 2024-10-03 10:54:50 +08:00
compiler-src.md Fix internal and incomplete links (#2107) 2024-10-31 11:13:57 +08:00
compiler-team.md Replace experts map with reviewers from triagebot 2023-12-05 18:40:26 +02:00
const-eval.md Edit `Parameter Environments`'s url as it has been edited in #1953 2024-05-09 15:22:03 +02:00
contributing.md Describe how to revert a PR (#2118) 2024-11-03 14:32:15 +08:00
conventions.md Document Python formatting and linting in the rustc-dev-guide 2025-01-24 09:35:46 +01:00
coroutine-closures.md Ok now linkify 2024-11-02 16:45:00 -04:00
crates-io.md Vetting deps datecheck (#1614) 2023-02-18 22:20:08 +09:00
debugging-support-in-rustc.md fix: stabilize debugger_visualizer 2023-08-14 10:34:59 +02:00
diagnostics.md Fix some typos 2024-12-18 07:56:30 +02:00
early_late_parameters.md Split stuff out of representing types, and rewrite early/late bound chapter (#2192) 2025-01-05 17:51:45 +01:00
effects.md Start a chapter about the evolving const effect system (#1808) 2023-10-18 19:35:15 +08:00
external-repos.md make paragraph more readable 2025-01-05 17:51:45 +01:00
feature-gate-ck.md Create issues for many TODOs (#1163) 2021-07-02 10:43:12 +02:00
feature-gates.md Remove feature edition fields. (#1836) 2023-12-13 21:19:43 +09:00
fuzzing.md feat(fuzzing.md): make `halfempty` word a link 2023-07-24 15:35:47 +02:00
generic_parameters_summary.md Split stuff out of representing types, and rewrite early/late bound chapter (#2192) 2025-01-05 17:51:45 +01:00
getting-started.md Remove chalk is owned by WG-traits 2024-09-18 17:48:40 -04:00
git.md squashing: recommend --keep-base when squashing without a conflict (#2157) 2024-12-07 06:59:23 +08:00
hir-debugging.md recommend `unpretty=hir` alongside `unpretty=hir-tree` 2023-10-18 10:01:49 -07:00
hir.md Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
implementing_new_features.md chore: fix some typos in conments 2024-04-09 10:59:59 +02:00
incrcomp-debugging.md Followup to #1862 (#1864) 2024-01-28 06:12:41 +09:00
lang-items.md fix some typos (#1398) 2022-07-17 06:45:36 +09:00
licenses.md chore: fix some comments 2024-07-30 08:04:13 +02:00
llvm-coverage-instrumentation.md Remove stale implementation details of coverage instrumentation (#2179) 2024-12-30 12:02:52 +11:00
macro-expansion.md Minor edits 2024-09-24 20:16:28 +02:00
memory.md Fix broken links (#2123) 2024-11-04 16:24:05 +08:00
method-lookup.md comment out FIXMEs to not display them on UI (#2186) 2025-01-05 17:51:45 +01:00
name-resolution.md Minor edits 2024-09-24 20:07:57 +02:00
opaque-types-impl-trait-inference.md Fix rustc-related links that are 404 right now (#2112) 2024-11-02 20:53:31 +08:00
opaque-types-type-alias-impl-trait.md make date-check more lightweight (#1394) 2022-08-02 13:50:32 -07:00
overview.md Fix trivial typo of "query-fied" 2024-12-18 08:01:33 +02:00
panic-implementation.md separate link target from normal content 2024-02-11 06:36:15 +01:00
parallel-rustc.md typo (#2132) 2024-11-10 11:36:49 +08:00
part-2-intro.md refactor(parts): remove part numbers to be consistent 2023-08-11 09:55:19 +02:00
part-3-intro.md refactor(parts): remove part numbers to be consistent 2023-08-11 09:55:19 +02:00
part-4-intro.md refactor(parts): remove part numbers to be consistent 2023-08-11 09:55:19 +02:00
part-5-intro.md revert(part-5-intro): revert 4806958 2023-08-11 09:55:19 +02:00
pat-exhaustive-checking.md Fix some typos 2024-12-18 07:56:30 +02:00
profile-guided-optimization.md linkcheck: fix reported broken links (part 2) (#2024) 2024-07-27 14:45:57 +02:00
profiling.md Change `x.py` into `x`, add explanation for `x` 2023-06-30 23:11:14 +02:00
query.md Fix some links 2023-06-29 06:43:19 +02:00
return-position-impl-trait-in-trait.md fix some typos 2024-05-21 11:56:12 +02:00
rustbot.md Add some explanations for frequently used rustbot commands (#1849) 2024-01-20 19:56:35 +08:00
rustdoc-internals.md Fix rustc-related links that are 404 right now (#2112) 2024-11-02 20:53:31 +08:00
rustdoc.md Update rustdoc build instructions 2024-09-24 20:47:22 +02:00
sanitizers.md linkcheck: fix reported broken links (part 1) (#2022) 2024-07-24 20:01:25 +08:00
serialization.md minor edits 2024-09-24 20:33:04 +02:00
stability.md rustc-dev-guide: add note about not adding rustc_allowed_through_unstable_modules to more items 2025-01-14 17:00:12 +01:00
stabilization_guide.md Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
syntax-intro.md Fix internal and incomplete links (#2107) 2024-10-31 11:13:57 +08:00
test-implementation.md Document inert vs active attributes (#1110) 2024-06-23 16:09:09 +02:00
the-parser.md Reorganize the "Source Code Representation" chapters (#2142) 2024-11-21 20:28:23 +08:00
thir.md Fix rustc-related links that are 404 right now (#2112) 2024-11-02 20:53:31 +08:00
tracing.md improve accuracy 2023-03-10 09:04:21 +02:00
ty-fold.md linkcheck: fix reported broken links (part 2) (#2024) 2024-07-27 14:45:57 +02:00
ty.md Flatten generic parameter defs section 2024-11-22 11:17:57 +00:00
type-checking.md fix review suggestion 2023-01-21 16:12:58 +02:00
type-inference.md Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
unsafety-checking.md Fix more links (#1884) 2024-02-21 12:17:28 -03:00
variance.md Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00
walkthrough.md Use `id` attribute for `<a>` tags instead of deprecated `name` attribute (#2184) 2024-12-31 22:02:50 +08:00