about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-08-02Merge pull request #20351 from ChayimFriedman2/rename-self1Lukas Wirth-25/+186
feat: When renaming a parameter to `self`, change callers to use method call syntax
2025-08-02When renaming a parameter to `self`, change callers to use method call syntaxChayim Refael Friedman-25/+186
2025-08-03Migrate `generate_delegate_methods` assist to use `SyntaxEditor`Hmikihiro-36/+41
2025-08-02update docKivooeo-7/+5
2025-08-02Migrate `convert_from_to_tryfrom` assist to use `SyntaxEditor`Hmikihiro-19/+23
2025-08-02Rollup merge of #144803 - tshepang:rdg-sync, r=jieyouxuSamuel Tardieu-19/+437
rustc-dev-guide subtree update Subtree update of `rustc-dev-guide` to https://github.com/rust-lang/rustc-dev-guide/commit/928720509932853d91dbbeadb39895c4eeb47bb2. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2025-08-02Rollup merge of #144782 - jieyouxu:compiletest-selftests, r=KobzolSamuel Tardieu-16/+8
Properly pass path to staged `rustc` to `compiletest` self-tests Otherwise, this can do weird things like use a global rustc, or try to use stage 0 rustc. This must be properly configured, because `compiletest` is intended to only support one compiler target spec JSON format (of the in-tree compiler). Historically, this was probably done so before `bootstrap` was really its own thing, and `compiletest` had to be runnable as a much more "self-standing" tool. Follow-up to rust-lang/rust#144675, as I didn't realize this until Zalathar pointed it out in [#t-infra/bootstrap > Building vs testing `compiletest` @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Building.20vs.20testing.20.60compiletest.60/near/532040838). r? ````@Kobzol````
2025-08-02Rollup merge of #144766 - Berrysoft:patch-1, r=GuillaumeGomezSamuel Tardieu-0/+1
Add human readable name "Cygwin" Closes rust-lang/rust#144680
2025-08-02Rollup merge of #144747 - petrochenkov:annusexp2, r=RalfJungSamuel Tardieu-19/+18
compiletest: Improve diagnostics for line annotation mismatches 2 Follow up to https://github.com/rust-lang/rust/pull/140622 based on feedback from https://github.com/rust-lang/rust/issues/144590.
2025-08-02Rollup merge of #143662 - obi1kenobi:pg/unsafe-attribute-wrappers, r=t-rustdocSamuel Tardieu-3/+3
[rustdoc] Display unsafe attrs with edition 2024 `unsafe()` wrappers. Use Rust 2024 edition representation for unsafe attributes in rustdoc HTML: - `#[no_mangle]` -> `#[unsafe(no_mangle)]` - `#[export_name = "foo"]` -> `#[unsafe(export_name = "foo")]` - `#[link_section = ".text"]` -> `#[unsafe(link_section = ".text")]` The 2024 edition representation is used regardless of the crate's own edition. This ensures that Rustaceans don't have to learn the rules of an outdated edition (e.g. that `unsafe()` wasn't always necessary) in order to understand a crate's documentation. After some looking through the `T-rustdoc` issues, I was not able to find an existing issue for this. Apologies if I missed it. r? ``````@aDotInTheVoid``````
2025-08-02Rollup merge of #132748 - ↵Samuel Tardieu-3/+29
lolbinarycat:rustdoc-intra-doc-link-warn-more-54191, r=GuillaumeGomez get rid of some false negatives in rustdoc::broken_intra_doc_links rustdoc will not try to do intra-doc linking if the "path" of a link looks too much like a "real url". however, only inline links (`[text](url)`) can actually contain a url, other types of links (reference links, shortcut links) contain a *reference* which is later resolved to an actual url. the "path" in this case cannot be a url, and therefore it should not be skipped due to looking like a url. fixes https://github.com/rust-lang/rust/issues/54191 to minimize the number of false positives that will be introduced, the following heuristic is used: If there's no backticks, be lenient revert to old behavior. This is to prevent churn by linting on stuff that isn't meant to be a link. only shortcut links have simple enough syntax that they are likely to be written accidentlly, collapsed and reference links need 4 metachars, and reference links will not usually use backticks in the reference name. therefore, only shortcut syntax gets the lenient behavior. here's a truth table for how link kinds that cannot be urls are handled: | | is shortcut link | not shortcut link | |--------------|--------------------|-------------------| | has backtick | never ignore | never ignore | | no backtick | ignore if url-like | never ignore |
2025-08-02Reject adding new UI tests directly under `tests/ui/`Jieyou Xu-0/+30
As we want future UI tests to be added under a more meaningful subdirectory instead.
2025-08-02Pull out recursive ui test check into its own functionJieyou Xu-28/+37
2025-08-02Make `issues_txt_header` a constJieyou Xu-4/+4
2025-08-02Pull out non-descriptive test name check to own functionJieyou Xu-21/+39
2025-08-02Pull out stray/empty output snapshot checks into own functionsJieyou Xu-22/+29
2025-08-02Pull out unexpected extension check into own functionJieyou Xu-42/+46
2025-08-02Stylize `*-lynxos178-*` target maintainer handle to make it easier to copy/pasteJieyou Xu-1/+1
2025-08-02Merge pull request #2526 from rust-lang/rustc-pullTshepang Mbambo-4301/+6844
Rustc pull update
2025-08-01rustdoc font links only emit `crossorigin` when neededMingwei Samuel-1/+54
The `crossorigin` attribute may cause issues when the href is not actuall across origins. Specifically, the tag causes the browser to send a preflight OPTIONS request to the href even if it is same-origin. Some tempermental servers may reject all CORS preflect requests even if they're actually same-origin, which causes a CORS error and prevents the fonts from loading, even later on. This commit fixes that problem by not emitting `crossorigin` if the url looks like a domain-relative url. Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2025-08-01Remove the omit_gdb_pretty_printer_section attributebjorn3-1/+15
Disabling loading of pretty printers in the debugger itself is more reliable. Before this commit the .gdb_debug_scripts section couldn't be included in dylibs or rlibs as otherwise there is no way to disable the section anymore without recompiling the entire standard library.
2025-08-01Fix more docsIfeanyi Orizu-6/+8
2025-08-01Update documentation for overrideCommand config optionsIfeanyi Orizu-7/+21
2025-08-01move dist and gcc config to the top of parse methodbit-aloo-12/+12
2025-08-01move llvm config to the top of parse methodbit-aloo-31/+36
2025-08-01move rust config to the top of parse methodbit-aloo-59/+58
2025-08-01move install config to the top of parse methodbit-aloo-12/+15
2025-08-01move build config to the top of parse methodbit-aloo-12/+13
2025-08-01make build toml fields follow a specific naming conventionbit-aloo-125/+120
2025-08-01make install toml fields follow a specific naming conventionbit-aloo-14/+14
2025-08-01make dist toml fields follow a specific naming conventionbit-aloo-14/+14
2025-08-01make gcc toml fields follow a specific naming conventionbit-aloo-2/+2
2025-08-01make llvm toml fields follow a specific naming conventionbit-aloo-59/+59
2025-08-01add rust default implementationbit-aloo-200/+175
2025-08-01add llvm default implementationbit-aloo-111/+97
2025-08-01add gcc and dist default implementationbit-aloo-32/+32
2025-08-01add install default implementationbit-aloo-10/+26
2025-08-01Fix verbosity settingbit-aloo-8/+10
2025-08-01Fix logging of config skip valuesbit-aloo-28/+27
2025-08-01Override some build TOML values by flagsbit-aloo-127/+149
2025-08-01Split TOML postprocessing into a separate functionbit-aloo-99/+114
2025-08-01Extract TOML config loading and src directory computation into separate ↵bit-aloo-89/+117
functions
2025-08-01Force initializing ExecutionContext with verbosity and fail_fast modebit-aloo-8/+6
2025-08-01move rust config to parse_innerbit-aloo-261/+251
2025-08-01move llvm parsing to parse_innerbit-aloo-127/+123
2025-08-01move install to parse_innerbit-aloo-20/+13
2025-08-01move target parsing to parse_innerbit-aloo-71/+64
2025-08-01move dist to parse_innerbit-aloo-31/+25
2025-08-01move gcc config parsing to parse_innerbit-aloo-19/+11
2025-08-01compiletest: Improve diagnostics for line annotation mismatches 2Vadim Petrochenkov-19/+18