about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2025-02-15Add support for the Zed IDE to `./x setup`Chai T. Rex-0/+52
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
2025-01-20core: add `#![warn(unreachable_pub)]`Urgau-5/+5
2025-01-08Revert "fix missing rustfmt and clippy for msi"Pietro Albini-40/+1
This reverts commit f5577a8174685aca342b9189e625648f25a23a20.
2024-12-31Rollup merge of #134291 - Walnut356:type_annots, r=tgross35Jacob Pratt-213/+137
Use python built in type annotations in LLDB visualizer scripts Replaces type annotation comments with python's built-in type annotations. Built-in type annotations were added in python 3.5. LLDB [currently recommends (and as of LLVM 21, will enforce)](https://github.com/llvm/llvm-project/pull/114807) a minimum python version of 3.8. Rust's test suite also requires python 3.10.
2024-12-31use python built in type annotationsWalnut-213/+137
2024-12-30Fix typosericlehong-5/+5
Signed-off-by: ericlehong <193237094+ericlehong@users.noreply.github.com>
2024-12-27Add `--no-capture` as a bootstrap argumentclubby789-2/+8
2024-12-17Generate shell completions for x as wellRyan Mehri-0/+5939
2024-12-08Auto merge of #133134 - Walnut356:synth_prov, r=Mark-Simulacrumbors-1/+22
Don't use a SyntheticProvider for literally every type Replaces a glob regex with individualized imports for each standard library type. This improves debugger performance by quite a bit when populating lots of values with lots of fields With the glob, afaik every single value of every single type that the debugger renders is run through a python function that does quite a few string comparisons (i plan to fix those next) to determine the SyntheticProvider to use. It looks like DefaultSyntheticProvider's functions internally call the liblldb c++ functions, which ends up with identical behavior to not using a SyntheticProvider at all, except you have extra python round trips slowing things down. These sample vidoes were run on x86-64-pc-windows-gnu. `vect` is a 1000 element `Vec<Big>`, `Big` contains a dozen or so `Small`, and `Small` contains a dozen or so `[i32; 5]` Before: https://github.com/user-attachments/assets/07c31fe7-e126-4c2e-8ae9-cfe36e351d3f After: https://github.com/user-attachments/assets/6c0d1a45-1ffe-46de-95a0-5dbe59a173b5 --- try-job: aarch64-apple
2024-12-04Reformat Python code with `ruff`Jakub Beránek-251/+426
2024-12-01rust_analyzer_settings: force use of 'nightly' toolchainRalf Jung-0/+3
2024-11-29add explicit synthetic lookup for tuplesWalnut-0/+1
2024-11-28force expanded formatting for non-synthetic typesWalnut-0/+1
2024-11-25Rollup merge of #132803 - wangjingcun:master, r=Mark-SimulacrumMatthias Krüger-1/+1
Fix broken url
2024-11-17restrict synthetic types to standard library typesWalnut-1/+20
2024-11-13Bump bootstrap depsclubby789-230/+230
2024-11-11Fix broken urlwangjingcun-1/+1
Signed-off-by: wangjingcun <wangjingcun@aliyun.com>
2024-11-09Use a separate dir for r-a builds consistently in helix configMaybe Lapkin-2/+15
2024-11-02Rollup merge of #132333 - tshepang:patch-4, r=workingjubileeMatthias Krüger-3/+4
rust_analyzer_helix.toml: add library/ manifest
2024-11-01Remove unncessary option for default rust-analyzer settingyukang-2/+0
2024-10-29rust_analyzer_helix.toml: add library/ manifestTshepang Mbambo-3/+4
Also, sort list
2024-10-29Rename `command-list.rs` to `directive-list.rs`Zalathar-1/+1
2024-10-27remove dead code in CGREP scriptjyn-1/+0
2024-10-20Rollup merge of #131365 - heiseish:fix-issue-101993, r=Mark-SimulacrumMatthias Krüger-1/+40
Fix missing rustfmt in msi installer #101993 # Context - Fixed missing `rustfmt`, `clippy`, `miri` and `rust-analyzer` in msi installer - Fixed missing `rustfmt` for apple darwin installer - Closes #101993 r​? `@jyn514` - Please let me know if I should request from someone else instead. I divided the changes into 3 separate commits for the ease of review. The refactoring commit `fbdfd5c03c3c979bcf105ccdd05ff4ab9f37a763` is a bit more involved, but I think it helps in the long term for readability and to avoid bugs. - I changed `build-manifest` to `build_manifest` in order to invoke it as a library. Not sure if this is gonna break any upstream processes. I checked `generate-manifest-list` and `generate-release` but didn't find any obvious reference - Will push fixes for linting later
2024-10-15fix missing rustfmt and clippy for msiGiang Dao-1/+40
2024-10-11rename RcBox in other places tooJonathan Dönszelmann-3/+3
2024-10-03bootstrap: Consolidate editor LSP setupKajetan Puchalski-1/+1
Consolidate LSP setup for different editors into one `./x setup editor`.
2024-10-01bootstrap: Add support for ./x setup vimKajetan Puchalski-1/+1
2024-10-01bootstrap: Add support for ./x setup helixKajetan Puchalski-1/+1
2024-10-01bootstrap: Add support for ./x setup emacsKajetan Puchalski-26/+26
Add support for automatically setting up the recommended LSP config for Emacs. Additionally, refactor setup.rs to make it easier to add support for more editors in the future.
2024-09-27Rollup merge of #130932 - mrkajetanp:editors, r=jieyouxuMatthias Krüger-0/+78
etc: Add sample rust-analyzer configs for eglot & helix LSP configuration in editors like Emacs (eglot) and helix does not use the same JSON format as vscode and vim do. It is not obvious how to set up LSP for rustc in those editors and the dev guide currently does not cover them. Adding sample configuration files for those editors alongside the currently existing JSON one would be helpful. I figured having those included in the repo like the JSON one might save someone some time and frustration otherwise spent on trying to get the more niche editors' LSP to work properly. I'll add a section in the dev guide too.
2024-09-27etc: Add rust-analyzer configs for eglot & helixKajetan Puchalski-0/+78
LSP configuration in editors like Emacs (eglot) and helix does not use the same JSON format as vscode and vim do. It is not obvious how to set up LSP for rustc in those editors and the dev guide currently does not cover them. Adding sample configuration files for those editors alongside the currently existing JSON one would be helpful.
2024-09-27Rollup merge of #130517 - bjorn3:update_ra_config, r=onur-ozkanGuillaume Gomez-0/+1
Add the library workspace to the suggested rust-analyzer config
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-6/+6
2024-09-18Add the library workspace to the suggested rust-analyzer configbjorn3-0/+1
2024-09-07Remove unused option from x.pyGurinder Singh-145/+19
2024-08-18Generate completions after version updatesTrevor Gross-1471/+2988
Running `cargo update` changed completion output. Regenerate them here.
2024-08-12regenerate `./x` completionsRémy Rakic-13/+6
to pick up changes to `./x miri` and `./x test` commands
2024-08-12clarify that `--rustc-args` is for compiletest testsRémy Rakic-3/+3
2024-08-11Fix debuginfo providers/testsBen Kimock-16/+16
2024-08-09Polymorphize RawVecBen Kimock-5/+12
2024-07-20Rewrite `test-float-parse` in RustTrevor Gross-554/+2337
The existing implementation uses Python to launch a set of Rust-written binaries. Unfortunately, this is currently broken; it seems that some updates meant it no longer compiles. There is also a problem that support for more float types (`f16`, `f128`) would be difficult to add since this is very specialized to `f32` and `f64`. Because of these sortcomings, migrate to a version written in Rust. This version should be significantly faster; test generators can execute in parallel, and test cases are chunked and parallelized. This should also resolve the preexisting "... the worker processes are leaked and stick around forever" comment. This change also introduces genericism over float types and properties, meaning it will be much easier to extend support to newly added types. `num::BigRational` is used in place of Python's fractions for infinite-precision calculations.
2024-07-19Update jsondocck directives to follow ui_test-styleLeón Orell Valerian Liehr-0/+1
2024-07-09Auto merge of #127001 - beetrees:f16-debuginfo, r=michaelwoeristerbors-0/+26
Add Natvis visualiser and debuginfo tests for `f16` To render `f16`s in debuggers on MSVC targets, this PR changes the compiler to output `f16`s as `struct f16 { bits: u16 }`, and includes a Natvis visualiser that manually converts the `f16`'s bits to a `float` which is can then be displayed by debuggers. `gdb`, `lldb` and `cdb` tests are also included for `f16` . `f16`/`f128` MSVC debug info issue: #121837 Tracking issue: #116909
2024-07-09Add Natvis visualiser and debuginfo tests for `f16`beetrees-0/+26
2024-06-27Implement `x perf` as a separate toolJakub Beránek-3/+3
2024-06-24Allow numbers in rustdoc tests commandsGuillaume Gomez-1/+1