about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2025-07-15Regenerate completions after removing `./x suggest`Jieyou Xu-644/+2
2025-07-14Rollup merge of #143850 - fmease:comptest-simp-docck-handling, r=jieyouxuJakub Beránek-47/+8
Compiletest: Simplify {Html,Json}DocCk directive handling So much more maintainable and extensible. r? ````@jieyouxu```` as discussed
2025-07-13Compiletest: Simplify {Html,Json}DocCk directive handlingLeón Orell Valerian Liehr-47/+8
2025-07-13Rollup merge of #143785 - bjorn3:faster_ra_build_script_build, r=KobzolMatthias Krüger-51/+192
Add --compile-time-deps argument for x check Together with skipping building C++ code in rustc_llvm for check, this reduces the amount of time it takes to do the x check for rust-analyzer analysis from 12m16s to 3m06s when the bootstrap compiler is already downloaded.
2025-07-11htmldocck: better error messages for negative raw directivesbinarycat-0/+4
2025-07-11Update description for flagbjorn3-138/+138
2025-07-11Add --compile-time-deps argument for x checkbjorn3-51/+192
This reduces the amount of time it takes to do the x check for rust-analyzer analysis from 12m16s to 3m34s when the bootstrap compiler is already downloaded.
2025-07-08tidy: add `auto:` prefix to --extra-checks syntaxbinarycat-6/+6
currently this just uses a very simple extension-based heirustic.
2025-07-04Update completionsJakub Beránek-3/+3
2025-07-03setup CI and tidy to use typos for spellchecking and fix few typosklensy-3/+3
2025-06-18Remove unused bootstrap flagJakub Beránek-646/+186
2025-06-10Rename `build` to `host_target`Jakub Beránek-138/+138
Host is the machine where bootstrap runs, and this field represents the target of the (host) stage0/beta compiler. This is much clearer than `build`, which also conflicts with the `Build` struct, which is stored under the name `build` inside `Builder` (lol).
2025-06-05Rollup merge of #141970 - onur-ozkan:skip-stage1-std, r=KobzolMatthias Krüger-48/+186
implement new `x` flag: `--skip-std-check-if-no-download-rustc` One of our developers (``@RalfJung)`` [reported](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Surprising.20stages.20for.20check.20build.20after.20stage.20reorg/with/521925606)[#t-infra/bootstrap > Surprising stages for check build after stage reorg](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Surprising.20stages.20for.20check.20build.20after.20stage.20reorg/with/521925606) that working on both the compiler and the library simultaneously with RA enabled is extremely difficult because checking library creates a heavy load on machines (by building stage1 compiler) on each modification. `--skip-std-check-if-no-download-rustc` flag is intended to reduce this heavy load on their IDE integration as much as possible. Fixes: rust-lang/rust#141955
2025-06-04update `skip_std_check_if_no_download_rustc` doc-commentsonur-ozkan-138/+138
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-04Add link to correct documentation in htmldocck.pyDerukugi-114/+2
Fix typo in src/etc/htmldocck.py Co-authored-by: León Orell Valerian Liehr <me@fmease.dev> Change documentation link to the correct section in src/etc/htmldocck.py Co-authored-by: León Orell Valerian Liehr <me@fmease.dev> Remove all top-level docs from htmldocck.py
2025-06-03bless tidyonur-ozkan-48/+186
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-03move `test-float-parse` tool into `src/tools` dironur-ozkan-2395/+0
Obviously `test-float-parse` is a tool like any other in `src/tools`. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-02test-float-parse: apply `cfg(not(bootstrap))`Jieyou Xu-0/+2
Prior to stage 0 redesign, `test-float-parse` ran against in-tree std but now it runs against beta std. `f16::FromStr` were only present in in-tree std and not yet beta std, so apply `cfg(not(bootstrap))` gating to unbrick `./x check --stage=0`.
2025-05-23Auto merge of #141062 - ChaiTRex:ide_fmt_2024, r=Mark-Simulacrumbors-6/+6
Update IDEs to use rustfmt 2024, fix Zed settings Update IDEs to use rustfmt 2024, fix Zed settings - Update IDE `rust-analyzer` settings to use 2024 rather than 2021. - Fix Zed settings by removing `${workspaceFolder}/` from paths.
2025-05-18float: Add `f16` to `test-float-parse`Trevor Gross-3/+25
This requires a fix to the subnormal test to cap the maximum allowed value within the maximum mantissa.
2025-05-15Update IDEs to use rustfmt 2024, fix Zed settingsChai T. Rex-6/+6
- Update IDE `rust-analyzer` settings to use 2024 rather than 2021. - Fix Zed settings by removing `${workspaceFolder}/` from paths.
2025-04-19Rollup merge of #139843 - thaliaarchi:editor-file-associations, ↵Chris Denton-11/+20
r=Mark-Simulacrum Setup editor file associations for non-rs extensions .gitattributes lists `*.fixed`, `*.pp`, and `*.mir` as file extensions which should be treated as Rust source code. Do the same for VS Code and Zed. This only does syntax highlighting, which is appropriate, as MIR isn't really Rust code. At the same time, consistently order `rust-analyzer.linkedProjects` between editors. For some reason, Eglot didn't include `library/Cargo.toml`. I have tested this with VS Code and Zed. I have not implemented it for Emacs/Eglot or Helix.
2025-04-17Update libcore.natvis for Pin.Mara Bos-2/+2
2025-04-14Setup editor file associations for non-rs extensionsThalia Archibald-11/+20
.gitattributes lists *.fixed, *.pp, and *.mir as file extensions which should be treated as Rust source code. Do the same for VS Code and Zed. This only does syntax highlighting, which is appropriate, as MIR isn't really Rust code. At the same time, consistently order `rust-analyzer.linkedProjects` between editors. For some reason, Eglot didn't include library/Cargo.toml.
2025-04-02Rollup merge of #139214 - bjorn3:edition_2024_rustfmt, r=compiler-errorsStuart Cook-20/+20
Tell rustfmt to use the 2024 edition in ./x.py fmt Most crates in this repo have been moved to the 2024 edition already. This also allows removing a rustfmt exclusion for a cg_clif test.
2025-04-01Move test-float-parse to the 2024 editionbjorn3-20/+20
2025-04-01chore: remove redundant backtickhighcloudwind-1/+1
Signed-off-by: highcloudwind <highcloud@aliyun.com>
2025-03-23Rollup merge of #138606 - heiseish:131365-extended, r=Mark-SimulacrumJacob Pratt-1/+56
Fix missing rustfmt in msi installer - cont ## Context - This PR extended and fixed https://github.com/rust-lang/rust/pull/131365, which was reverted in https://github.com/rust-lang/rust/pull/135253 - Initial effort from `@klensy` in https://github.com/rust-lang/rust/pull/135255 (at any points if you feel like picking this up again, let me know I'll close my PR! Just trying to push this through since it's my mistake in the original commits) - Tested with both `beta` and `nightly` `rust.channel` r? `@Mark-Simulacrum`
2025-03-20update completion filesonur-ozkan-48/+370
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-17wix: allow to skip more componentsklensy-32/+48
2025-03-17fix missing rustfmt and clippy for msiGiang Dao-1/+40
2025-03-17replace config.toml to bootstrap.toml in src/ci, src/etc/* and tests/run-makebit-aloo-278/+278
2025-03-16Rollup merge of #137968 - dingxiangfei2009:patch-1, r=Mark-Simulacrum许杰友 Jieyou Xu (Joe)-2/+2
Properly escape regexes in Python scripts According to the [Python 3.12 release note](https://docs.python.org/3/whatsnew/3.12.html#other-language-changes) string literals containing typical invalid escape sequences like `"\d"` are now rejected. There seems to remain only two instances of escape sequences in regex. This change will allow us to work with newer Python interpreter.
2025-03-13Remove separate `src/tools/x` from rust-analyzer settingsJosh Stone-4/+0
2025-03-10Update rand to 0.9.0Chris Denton-15/+15
2025-03-05Rollup merge of #134063 - tgross35:dec2flt-refactoring, r=Noratrieb许杰友 Jieyou Xu (Joe)-3/+3
dec2flt: Clean up float parsing modules This is the first portion of my work adding support for parsing and printing `f16`. Changes in `float.rs` replace the magic constants with expressions and add some use of generics to better support the new float types. Everything else is related to documentation or naming; there are no functional changes in this PR. This can be reviewed by commit.
2025-03-03Auto merge of #137927 - matthiaskrgr:rollup-yj463ns, r=matthiaskrgrbors-226/+188
Rollup of 9 pull requests Successful merges: - #132388 (Implement `#[cfg]` in `where` clauses) - #134900 (Fix parsing of ranges after unary operators) - #136938 (Remove `:` from `stack-protector-heuristics-effect.rs` Filecheck Pattern) - #137054 (Make phantom variance markers transparent) - #137525 (Simplify parallelization in test-float-parse) - #137618 (Skip `tidy` in pre-push hook if the user is deleting a remote branch) - #137741 (Stop using `hash_raw_entry` in `CodegenCx::const_str`) - #137849 (Revert "Remove Win SDK 10.0.26100.0 from CI") - #137862 (ensure we always print all --print options in help) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-04fix: properly escape regexeswieDasDing-2/+2
2025-03-03Rollup merge of #137618 - yotamofek:pr/pre-push-hook, r=Mark-SimulacrumMatthias Krüger-0/+14
Skip `tidy` in pre-push hook if the user is deleting a remote branch It's kinda annoying when I'm trying to delete remote branches and that triggers `tidy`, so small fix to prevent that. Hopefully this should be an acceptable amount of complexity to add to this shell script.
2025-03-02dec2flt: Refactor float traitsTrevor Gross-3/+3
A lot of the magic constants can be turned into expressions. This reduces some code duplication. Additionally, add traits to make these operations fully generic. This will make it easier to support `f16` and `f128`.
2025-03-02Simplify parallelization in test-float-parseTrevor Gross-226/+174
Currently, test case generators are launched in parallel and their test cases also run in parallel, all within the same pool. I originally implemented this with the assumption that there would be an advantage in parallelizing the generators themselves, but this turns out to not really have any benefit. Simplify things by running generators in series while keeping their test cases parallelized. This makes the code easier to follow, and there is no longer a need for MPSC or multiprogress bars. Additionally, the UI output can be made cleaner.
2025-03-01htmldocck: catch and error on deprecated syntaxYotam Ofek-0/+14
2025-02-25Skip `tidy` in pre-push hook if the user is deleting a remote branchYotam Ofek-0/+14
2025-02-23Rollup merge of #135354 - Walnut356:msvc_lldb, r=wesleywiserJacob Pratt-29/+548
[Debuginfo] Add MSVC Synthetic and Summary providers to LLDB Adds handling for `tuple$<>`, `ref$<slice$2<>`, `ref$<str$>` and `enum2$<>`. Also fixes a bug in MSVC vec/string handling where the script was unable to determine the element's type due to LLDB ignoring template arg debug information <details> <summary>Sample code</summary> ```rust pub enum Number { One = 57, Two = 99, } #[repr(u8)] pub enum Container { First(u32), Second { val: u64, val2: i8 }, Third, } ... let u8_val = b'a'; let float = 42.78000000000001; let tuple = (u8_val, float); let str_val = "eef"; let mut string = "freef".to_owned(); let mut_str = string.as_mut_str(); let array: [u8; 4] = [1, 2, 3, 4]; let ref_array = array.as_slice(); let mut array2: [u32; 4] = [1, 2, 3, 4]; let mut_array = array2.as_mut_slice(); let enum_val = Number::One; let mut enum_val2 = Number::Two; let sum_val = Container::First(15); let sum_val_2 = Container::Second { val: 0, val2: 0 }; let sum_val_3 = Container::Third; let non_zero = NonZeroU128::new(100).unwrap(); let large_discr = NonZeroU128::new(255); ``` </details> Before: ![image](https://github.com/user-attachments/assets/19fd0881-a4c3-4c68-b28f-769a67d95e35) After: ![image](https://github.com/user-attachments/assets/d0479035-17ed-4584-8eb4-71d1314f8f7c) try-job: aarch64-apple try-job: x86_64-msvc-1 try-job: i686-msvc-1 try-job: x86_64-mingw-1 try-job: i686-mingw try-job: aarch64-gnu
2025-02-15Add support for the Zed IDE to `./x setup`Chai T. Rex-0/+52
2025-02-12fix string and tuple struct formattingWalnut-1/+2
2025-02-07Fix import/attribute errors related to `SBTypeStaticField`Walnut-13/+43
2025-02-05Update bootstrap completionsJakub Beránek-76/+3428
2025-01-26Rollup merge of #135812 - Walnut356:gdb_osstring, r=Mark-SimulacrumJacob Pratt-1/+1
Fix GDB `OsString` provider on Windows It would throw an exception due to trying to look up `Wtf8Buf.__0`. The field it actually wants is called [`bytes`](https://github.com/rust-lang/rust/blob/b605c65b6eb5fa71783f8e26df69975f9f1680ee/library/std/src/sys_common/wtf8.rs#L134).
2025-01-21change lookup from `OsString.inner.inner.0` -> `OsString.inner.inner.bytes`Walnut-1/+1