about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2023-12-20Auto merge of #106790 - the8472:rawvec-niche, r=scottmcmbors-7/+15
add more niches to rawvec Previously RawVec only had a single niche in its `NonNull` pointer. With this change it now has `isize::MAX` niches since half the value-space of the capacity field is never needed, we can't have a capacity larger than isize::MAX.
2023-12-19update natvis to match changed RawVec structureThe 8472-4/+4
2023-12-11update debug providers to match new RawVec capacity fieldThe 8472-3/+11
2023-12-11update auto completionsonur-ozkan-15/+60
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-09allow bypassing the build directory lockonur-ozkan-40/+85
As bootstrap locks its entire build directory, parallel bootstrapping for anything becomes impossible. This change enables developers to bypass the locking mechanism when it is unnecessary for their specific use case. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-04Auto merge of #115274 - bjorn3:tidy_improvements, r=davidtwcobors-1/+76
Run tidy license checker on more workspaces The license checker didn't run on several workspaces before this PR. The same applied to the "external package sources" check. There were also two missing lockfiles which I have added now.
2023-10-29Rollup merge of #117043 - onur-ozkan:skip-stage0-validation, r=Mark-SimulacrumGuillaume Gomez-15/+60
add bootstrap flag `--skip-stage0-validation` This change introduces the `--skip-stage0-validation` flag, which permits the use of any desired version of the stage0 compiler without verifying its version. Additionally, stage0 compiler validation check is reverted(#115103) to its default enabled state. Helps to #115065 r? Mark-Simulacrum
2023-10-23Rollup merge of #116978 - tromey:rust-printers-cleanup, r=Mark-SimulacrumMatthias Krüger-55/+78
Rewrite gdb pretty-printer registration Currently, the Rust pretty-printers are registered in gdb using the uninformative name "lookup": (gdb) info pretty-printer global pretty-printers: [...] objfile /home/tromey/[...] lookup It's nicer for users if the top-level registration is given a clear name. Additionally, gdb lets users individually enable and disable specific printers, provided they are registered correctly. This patch implements both these ideas. Now the output looks like: (gdb) info pretty-printer global pretty-printers: [...] objfile /home/tromey/[...] rust StdArc StdBTreeMap StdBTreeSet StdCell StdHashMap StdHashSet StdNonZeroNumber StdOsString StdRc StdRef StdRefCell StdRefMut StdSlice StdStr StdString StdVec StdVecDeque
2023-10-22add bootstrap flag `--skip-stage0-validation`onur-ozkan-15/+60
This change introduces the --skip-stage0-validation flag, which permits the use of any desired version of the stage0 compiler without verifying its version. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-20Use gdb.ValuePrinter tag classTom Tromey-149/+158
GDB 14 has a "gdb.ValuePrinter" tag class that was introduced to let GDB evolve the pretty-printer API. Users of this tag are required to hide any local attributes or methods. This patch makes this change to the Rust pretty-printers. At present this is just a cleanup, providing the basis for any future changes.
2023-10-20Rewrite gdb pretty-printer registrationTom Tromey-55/+78
Currently, the Rust pretty-printers are registered in gdb using the uninformative name "lookup": (gdb) info pretty-printer global pretty-printers: [...] objfile /home/tromey/[...] lookup It's nicer for users if the top-level registration is given a clear name. Additionally, gdb lets users individually enable and disable specific printers, provided they are registered correctly. This patch implements both these ideas. Now the output looks like: (gdb) info pretty-printer global pretty-printers: [...] objfile /home/tromey/[...] rust StdArc StdBTreeMap StdBTreeSet StdCell StdHashMap StdHashSet StdNonZeroNumber StdOsString StdRc StdRef StdRefCell StdRefMut StdSlice StdStr StdString StdVec StdVecDeque
2023-10-15generate zsh autocompletion for xonur-ozkan-0/+751
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-15bump bootstrap:clap_complete to `4.4.3`onur-ozkan-50/+50
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-10Add two lockfilesbjorn3-0/+75
2023-10-10Update rand dependency for test-float-parsebjorn3-1/+1
This removes a dependency on fuchsia-cprng which doesn't have any license info.
2023-10-09Add `--enable-bolt-settings` bootstrap flagJakub Beránek-15/+45
2023-09-24Auto merge of #104385 - BlackHoleFox:apple-minimum-bumps, r=petrochenkovbors-1/+1
Raise minimum supported Apple OS versions This implements the proposal to raise the minimum supported Apple OS versions as laid out in the now-completed MCP (https://github.com/rust-lang/compiler-team/issues/556). As of this PR, rustc and the stdlib now support these versions as the baseline: - macOS: 10.12 Sierra - iOS: 10 - tvOS: 10 - watchOS: 5 (Unchanged) In addition to everything this breaks indirectly, these changes also erase the `armv7-apple-ios` target (currently tier 3) because the oldest supported iOS device now uses ARMv7s. Not sure what the policy around tier3 target removal is but shimming it is not an option due to the linker refusing. [Per comment](https://github.com/rust-lang/compiler-team/issues/556#issuecomment-1297175073), this requires a FCP to merge. cc `@wesleywiser.`
2023-09-23Raise minimum supported macOS to 10.12BlackHoleFox-1/+1
2023-09-14update rust_analyzer_settings.jsonRalf Jung-2/+2
2023-08-22rust-gdbgui: remove excessive quotesEren K-3/+3
in commit 8dd0ec6, the `GDB_ARGS` variable was split across 3 lines. However, extra quotes were added to each line, such that the shell interprets the 3 lines as space separated strings, and tries to execute the latter two lines. This commit simply removes the extra quotes.
2023-08-10Auto merge of #112482 - tgross35:ci-non-rust-linters, r=pietroalbinibors-1/+7
Add support for tidy linting via external tools for non-rust files This change adds the flag `--check-extras` to `tidy`. It accepts a comma separated list of any of the options: * py (test everything applicable for python files) * py:lint (lint python files using `ruff`) * py:fmt (check formatting for python files using `black`) * shell or shell:lint (lint shell files using `shellcheck`) Specific files to check can also be specified via positional args. Examples: * `./x test tidy --check-extras=shell,py` * `./x test tidy --check-extras=py:fmt -- src/bootstrap/bootstrap.py` * `./x test tidy --check-extras=shell -- src/ci/*.sh` * Python formatting can be applied with bless: `./x test tidy --ckeck-extras=py:fmt --bless` `ruff` and `black` need to be installed via pip; this tool manages these within a virtual environment at `build/venv`. `shellcheck` needs to be installed on the system already. --- This PR doesn't fix any of the errors that show up (I will likely go through those at some point) and it doesn't enforce anything new in CI. Relevant zulip discussion: https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/Other.20linters.20in.20CI
2023-08-06fix(bootstrap): rename exclude flag to skip 🐛Meysam Azad-15/+99
2023-08-02Add support for tidy linting via external tools for non-rust filesTrevor Gross-1/+7
This change adds the flag `--check-extras` to `tidy`. It accepts a comma separated list of any of the options: - py (test everything applicable for python files) - py:lint (lint python files using `ruff`) - py:fmt (check formatting for python files using `black`) - shell or shell:lint (lint shell files using `shellcheck`) Specific files to check can also be specified via positional args. Examples: - `./x test tidy --check-extras=shell,py` - `./x test tidy --check-extras=py:fmt -- src/bootstrap/bootstrap.py` - `./x test tidy --check-extras=shell -- src/ci/*.sh` - Python formatting can be applied with bless: `./x test tidy --ckeck-extras=py:fmt --bless` `ruff` and `black` need to be installed via pip; this tool manages these within a virtual environment at `build/venv`. `shellcheck` needs to be installed on the system already.
2023-07-31Rollup merge of #113906 - notriddle:notriddle/cargo-extra-env, r=Mark-SimulacrumMatthias Krüger-1/+4
etc: add `RUSTC_BOOTSTRAP` to rust-analyzer config Fixes the problem reported in https://github.com/rust-lang/rust/issues/112391#issuecomment-1597224941
2023-07-31Remove BOLT from bootstrapJakub Beránek-90/+60
2023-07-30support `--stage` for `x clean`ozkanonur-9/+9
Signed-off-by: ozkanonur <work@onurozkan.dev>
2023-07-20etc: add `RUSTC_BOOTSTRAP` to rust-analyzer configMichael Howell-1/+4
Fixes the problem reported in https://github.com/rust-lang/rust/issues/112391#issuecomment-1597224941
2023-07-19Improve htmldocck error a bit by providing line where error occurredGuillaume Gomez-0/+2
2023-07-17Auto merge of #89132 - Cyborus04:rc_allocator_support, r=Amanieubors-5/+8
Add support for allocators in `Rc` & `Arc` Adds the ability for `std::rc:Rc`, `std::rc::Weak`, `std::sync::Arc`, and `std::sync::Weak` to live in custom allocators
2023-07-17Update natvis to match full type names for Arc, Rc, Weak, etcWesley Wiser-5/+8
Also update a test case to have the correct whitespace in a type name.
2023-06-30User may want to skip tidy check sometimesyukang-1/+5
2023-06-24Rollup merge of #112915 - preveen-stack:patch-1, r=Mark-SimulacrumGuillaume Gomez-1/+1
Update runtests.py : grammar correction - Grammatically corrected the sentence
2023-06-23Add @files commandGuillaume Gomez-3/+51
2023-06-22Update runtests.py : grammar correctionPreveen P-1/+1
2023-06-16Apply changes to fix python linting errorsTrevor Gross-9/+12
2023-06-06Rollup merge of #111962 - theIDinside:better-gdb, r=Mark-SimulacrumMatthias Krüger-1/+12
Make GDB Python Pretty Printers loadable after spawning GDB, avoiding required `rust-gdb` Fixes #111961 Makes the Python pretty printer library source'able from within GDB after spawn, making the wrapper script `rust-gdb` become not the required approach to use the pretty printer library. Allows for integration into GUI:s that wrap GDB extremely easy. The previous design complicates this feature.
2023-06-05Fix #111961 r=Mark-SimulacrumSimon Farre-1/+12
Makes the Python pretty printer library source'able from within GDB after spawn. This makes `rust-gdb` not the required approach. It also provides the possibility for GUI:s that wrap GDB, to debug Rust using the pretty printer library; as well as other projects such as for instance Pernosco, which previously was not possible. This won't introduce any new unexpected behaviors for users of `rust-gdb`
2023-06-03Rollup merge of #111998 - jyn514:ra-dogfooding, r=Mark-SimulacrumMatthias Krüger-1/+8
Add other workspaces to `linkedProjects` in rust_analyzer_settings This makes go-to-definition, etc. work in cg_clif, cg_gcc, rust-analyzer, and src/tools/x.
2023-06-01Rollup merge of #112146 - jyn514:locked-deps, r=clubby789Matthias Krüger-1/+1
Fix `src/etc/pre-push.sh` when `build.locked-deps` is already set Before, cargo would error: ``` ; git push Running pre-push script /home/jyn/src/rust/x test tidy Building bootstrap Finished dev [unoptimized] target(s) in 0.02s Build stage0 tool tidy (x86_64-unknown-linux-gnu) error: the argument '--locked' cannot be used multiple times Usage: cargo build [OPTIONS] For more information, try '--help'. Build completed unsuccessfully in 0:00:00 error: failed to push some refs to 'github.com:jyn514/rust.git' ```
2023-05-31Fix `src/etc/pre-push.sh` when `build.locked-deps` is already set in config.tomljyn-1/+1
Before, cargo would error: ``` ; git push Running pre-push script /home/jyn/src/rust/x test tidy Building bootstrap Finished dev [unoptimized] target(s) in 0.02s Build stage0 tool tidy (x86_64-unknown-linux-gnu) error: the argument '--locked' cannot be used multiple times Usage: cargo build [OPTIONS] For more information, try '--help'. Build completed unsuccessfully in 0:00:00 error: failed to push some refs to 'github.com:jyn514/rust.git' ```
2023-05-31Explicit set `workspace.resolver = "1"`Weihang Lo-0/+1
rust-lang/cargo#10910 starts emitting warning if resolver is not set for 2021 edition package. We want to surpress the warning for now.
2023-05-26Add other workspaces to `linkedProjects` in `rust_analyzer_settings.json`jyn-1/+8
This makes go-to-definition, etc. work in cg_clif, cg_gcc, rust-analyzer, and src/tools/x.
2023-05-24Auto merge of #111566 - clubby789:bootstrap-override-config, r=ozkanonurbors-15/+105
Override config.toml options from command line https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/Running.20tests.20on.20precompiled.20rustc/near/357763280 cc `@jyn514`
2023-05-19Override config.toml options from command lineclubby789-15/+105
2023-05-17Fix typo in bootstrap command descriptionJakub Beránek-2/+2
2023-05-10Generate shell completions for bootstrap with Clapclubby789-0/+2726
2023-04-28Fix unavailable urlcui fliter-1/+1
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-20Spelling tools/compiletestJosh Soref-4/+4
spelling: exactly spelling: synthetic Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-14Typo fix in src/etc/rust-gdbAlan Somers-1/+1
Co-authored-by: SNCPlay42 <SNCPlay42@gmail.com>
2023-04-14Fix rust-gdb and rust-gdbgui on FreeBSDAlan Somers-3/+3
"\w" is a GNU-specific extension to sed. Avoid it. Fixes #110334 Signed-off-by: Alan Somers <asomers@gmail.com>