about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-06-08Migrate runmake tests away from custom commands and `command_output`Jakub Beránek-34/+90
2024-06-08Introduce a custom `Command` wrapper in `run-make-support`Jakub Beránek-122/+129
2024-06-08Auto merge of #3655 - RalfJung:simd-bitmask, r=RalfJungbors-1/+39
portable-simd: add test for non-power-of-2 bitmask `@calebzulawski` is that the intended behavior? Specifically for arrays, the bitmask `[1, 0, 0, 1, 0, 0, 1, 0, 1, 0]` becomes - `[0b01001001, 0b01]` on little endian - `[0b10010010, 0b10]` on big endian
2024-06-08portable-simd: add test for non-power-of-2 bitmaskRalf Jung-1/+39
2024-06-08comment nitsRalf Jung-5/+5
2024-06-08Auto merge of #126097 - Kobzol:runmake-change-cwd, r=jieyouxubors-62/+76
Change how runmake v2 tests are executed This PR makes execution of v2 runmake tests more sane, by executing each test in a temporary directory by default, rather than running it inside `tests/run-make`. This will have.. a lot of conflicts. Fixes: https://github.com/rust-lang/rust/issues/126080 Closes https://github.com/rust-lang/rust/issues/125726, because it removes `tmp_dir`, lol. r? `@jieyouxu` try-job: x86_64-msvc
2024-06-08add support for `pclmulqdq`Folkert-0/+117
2024-06-08Auto merge of #17365 - DropDemBits:diagnostic-snippet-cap, r=Veykrilbors-6/+13
internal: Expose snippet capability to diagnostic quickfixes Fixes #16767
2024-06-08Remove unnecessary functions and the last mention of TMPDIR from ↵Jakub Beránek-20/+1
`run-make-support`
2024-06-08Auto merge of #17368 - Veykril:dist-fix, r=Veykrilbors-5/+3
fix: Fix generated markers not being patchable in package.json I think the newlines are tripping up CI, so I hope clearing the property to leave an empty object won't make VSCode made here.
2024-06-08fix: Fix generated markers not being patchable in package.jsonLukas Wirth-5/+3
2024-06-08Auto merge of #126111 - Zalathar:fulldeps-hotplug, r=jieyouxubors-0/+22
Port `tests/run-make-fulldeps/hotplug_codegen_backend` to ui-fulldeps This is the last remaining run-make-fulldeps test, which means I actually had to leave behind a dummy README file to prevent compiletest from complaining about a missing directory. (Removing the run-make-fulldeps suite entirely is non-trivial, so I intend to do so in a separate PR after this one.) --- I wasn't sure about adding a new kind of aux build just for this one test, so I also tried to just port this test from Makefile to [rmake](https://github.com/rust-lang/rust/issues/121876) instead. But I found that I couldn't get rmake to fully work for a run-make-fulldeps test, which convinced me that getting rid of run-make-fulldeps is worthwhile. r? `@jieyouxu`
2024-06-08Auto merge of #126143 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 8 commits in 34a6a87d8a2330d8c9d578f927489689328a652d..b1feb75d062444e2cee8b3d2aaa95309d65e9ccd 2024-06-04 15:31:01 +0000 to 2024-06-07 20:16:17 +0000 - Keep lints updated (rust-lang/cargo#14030) - test(lints): Ensure unused optional dep fires for shadowed dep (rust-lang/cargo#14028) - Add `cargo update --breaking` (rust-lang/cargo#13979) - Add tooling to document lints (rust-lang/cargo#14025) - Rename --out-dir to --artifact-dir (rust-lang/cargo#13809) - fix(lints): Add unknown_lints to lints list (rust-lang/cargo#14024) - docs(contrib): Suggest atomic commits with separate test commits (rust-lang/cargo#14014) - test(semver): track the behavior of `--precise <prerelease>` (rust-lang/cargo#14013) r? ghost
2024-06-08Rollup merge of #126057 - Sunshine40:rustdoc-search-non-english, r=notriddleLeón Orell Valerian Liehr-2/+2
Make html rendered by rustdoc allow searching non-English identifier / alias Fix alias search result showing `undefined` description. Inspired by https://github.com/rust-lang/mdBook/issues/2393 . Not sure if it's worth it adding full-text search functionality to rustdoc rendered html.
2024-06-08Rollup merge of #125951 - slanterns:error_in_core_stabilization, r=AmanieuLeón Orell Valerian Liehr-4/+10
Stabilize `error_in_core` Closes: https://github.com/rust-lang/rust/issues/103765. `@rustbot` label: +T-libs-api r? libs-api
2024-06-07Update cargoWeihang Lo-0/+0
2024-06-07internal: Expose snippet capability to diagnostic quickfixesDropDemBits-6/+13
2024-06-08Add eventfd shimtiif-19/+257
2024-06-07Remove --stage entirely from contributingNilstrieb-1/+1
2024-06-07Fix stage in contributingNilstrieb-2/+2
2024-06-07Rollup merge of #126112 - Kobzol:runmake-source-root, r=jieyouxuMatthias Krüger-3/+2
Clean up source root in run-make tests The name `S` isn't exactly the most descriptive, and we also shouldn't need to pass it when building (actually I think that most of the env. vars that we pass to `cargo` here are probably not really needed). Related issue: https://github.com/rust-lang/rust/issues/126071 r? ```@jieyouxu```
2024-06-07Rollup merge of #126047 - cuviper:installer-try_for_each, r=albertlarsan68Matthias Krüger-9/+3
Simplify the rayon calls in the installer Rayon's `try_for_each` makes the `CombinedEncoder` a lot simpler.
2024-06-07Auto merge of #17359 - Veykril:status-bar, r=Veykrilbors-24/+46
Add version info to status bar item
2024-06-07Add version info to status bar itemLukas Wirth-24/+46
2024-06-07fix: Fix renaming imports of foreign items touching foreign sourcesLukas Wirth-11/+30
2024-06-07Port `tests/run-make-fulldeps/hotplug_codegen_backend` to ui-fulldepsZalathar-0/+19
2024-06-07Address review commentsJakub Beránek-1/+1
2024-06-07Auto merge of #17058 - alibektas:13529/ratoml, r=Veykrilbors-541/+2099
feat: TOML based config for rust-analyzer > Important > > We don't promise _**any**_ stability with this feature yet, any configs exposed may be removed again, the grouping may change etc. # TOML Based Config for RA This PR ( addresses #13529 and this is a follow-up PR on #16639 ) makes rust-analyzer configurable by configuration files called `rust-analyzer.toml`. Files **must** be named `rust-analyzer.toml`. There is not a strict rule regarding where the files should be placed, but it is recommended to put them near a file that triggers server to start (i.e., `Cargo.{toml,lock}`, `rust-project.json`). ## Configuration Types Previous configuration keys are now split into three different classes. 1. Client keys: These keys only make sense when set by the client (e.g., by setting them in `settings.json` in VSCode). They are but a small portion of this list. One such example is `rust_analyzer.files_watcher`, based on which either the client or the server will be responsible for watching for changes made to project files. 2. Global keys: These keys apply to the entire workspace and can only be set on the very top layers of the hierarchy. The next section gives instructions on which layers these are. 3. Local keys: Keys that can be changed for each crate if desired. ### How Am I Supposed To Know If A Config Is Gl/Loc/Cl ? #17101 ## Configuration Hierarchy There are 5 levels in the configuration hierarchy. When a key is searched for, it is searched in a bottom-up depth-first fashion. ### Default Configuration **Scope**: Global, Local, and Client This is a hard-coded set of configurations. When a configuration key could not be found, then its default value applies. ### User configuration **Scope**: Global, Local If you want your configurations to apply to **every** project you have, you can do so by setting them in your `$CONFIG_DIR/rust-analyzer/rust-analyzer.toml` file, where `$CONFIG_DIR` is : | Platform | Value | Example | | ------- | ------------------------------------- | ---------------------------------------- | | Linux | `$XDG_CONFIG_HOME` or `$HOME`/.config | /home/alice/.config | | macOS | `$HOME`/Library/Application Support | /Users/Alice/Library/Application Support | | Windows | `{FOLDERID_RoamingAppData}` | C:\Users\Alice\AppData\Roaming | ### Client configuration **Scope**: Global, Local, and Client Previously, the only way to configure rust-analyzer was to configure it from the settings of the Client you are using. This level corresponds to that. > With this PR, you don't need to port anything to benefit from new features. You can continue to use your old settings as they are. ### Workspace Root Configuration **Scope**: Global, Local Rust-analyzer already used the path of the workspace you opened in your Client. We used this information to create a configuration file that won't affect your other projects and define global level configurations at the same time. ### Local Configuration **Scope**: Local You can also configure rust-analyzer on a crate level. Although it is not an error to define global ( or client ) level keys in such files, they won't be taken into consideration by the server. Defined local keys will affect the crate in which they are defined and crate's descendants. Internally, a Rust project is split into what we call `SourceRoot`s. This, although with exceptions, is equal to splitting a project into crates. > You may choose to have more than one `rust-analyzer.toml` files within a `SourceRoot`, but among them, the one closer to the project root will be
2024-06-07Auto merge of #17308 - mathew-horner:prefer-workspace, r=Veykrilbors-1/+46
Add preference modifier for workspace-local crates when using auto import. `@joshka` pointed out some odd behavior of auto import ordering. It doesn't seem that the current heuristics were applying any sort of precedence to imports from the workspace. I've went ahead and added that. I hope to get some feedback on the modifier numbers here. I just went with something that felt like it balanced giving more power to workspace crates without completely ignoring relative path distance. closes https://github.com/rust-lang/rust-analyzer/issues/17303
2024-06-07Fix processing of ratoml filesLukas Wirth-166/+115
2024-06-07Small refactoringJakub Beránek-9/+7
2024-06-07Remove all usages of `tmp_dir` from testsJakub Beránek-4/+7
2024-06-07Remove dependence on `tmp_dir`Jakub Beránek-34/+14
And also remove some environment variables passed to compilation of `rmake.rs`.
2024-06-07Fix `mixing-formats` run-make testJakub Beránek-3/+26
2024-06-07Do not run run-make tests in the test source directoryJakub Beránek-3/+32
2024-06-07Auto merge of #125918 - oli-obk:const_block_ice, r=compiler-errorsbors-34/+10
Revert: create const block bodies in typeck via query feeding as per the discussion in https://github.com/rust-lang/rust/pull/125806#discussion_r1622563948 It was a mistake to try to shoehorn const blocks and some specific anon consts into the same box and feed them during typeck. It turned out not simplifying anything (my hope was that we could feed `type_of` to start avoiding the huge HIR matcher, but that didn't work out), but instead making a few things more fragile. reverts the const-block-specific parts of https://github.com/rust-lang/rust/pull/124650 `@bors` rollup=never had a small perf impact previously fixes https://github.com/rust-lang/rust/issues/125846 r? `@compiler-errors`
2024-06-07Revert "Create const block DefIds in typeck instead of ast lowering"Oli Scherer-34/+10
This reverts commit ddc5f9b6c1f21da5d4596bf7980185a00984ac42.
2024-06-07Rename `S` environment variable to `SOURCE_ROOT` in run-make testsJakub Beránek-2/+2
2024-06-07Do not pass source root when building run-make testsJakub Beránek-1/+0
2024-06-07compiletest: Don't pass `--out-dir` if the compile flags include `-o`Zalathar-0/+3
2024-06-07Merge from rustcThe Miri Cronjob Bot-92/+220
2024-06-07Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-06-06Rollup merge of #126101 - lqd:revert-124099, r=wesleywiserJubilee-10/+10
Revert "Disallow ambiguous attributes on expressions" on nightly As discussed in [today's t-compiler meeting](https://rust-lang.zulipchat.com/#narrow/stream/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202024-06-06/near/443079505), this reverts PR #124099 to fix P-critical beta regressions #125199. r? ``@wesleywiser`` Opening as draft so that ``@wesleywiser`` and ``@apiraino,`` you can tell me whether you wanted: 1. a `beta-accepted` revert of #124099 on nightly (this PR)? That will need to be backported to beta (even though #126093 may be the last of those) 2. a revert of #124099 on beta? 3. all of the above? I also opened #126102, another draft PR to revert #124099 on beta, should you choose options 2 or 3.
2024-06-07Other EcmaScript version bumpSunshine-2/+2
2024-06-07bless `std_instead_of_core`Slanterns-4/+10
2024-06-06chore: Prefer tracing span shorthand macrosWilfred Hughes-275/+240
2024-06-06Auto merge of #126104 - workingjubilee:rollup-t1ac2ld, r=workingjubileebors-13/+16
Rollup of 12 pull requests Successful merges: - #125220 (Repair several `riscv64gc-unknown-linux-gnu` codegen tests) - #126033 (CI: fix publishing of toolstate history) - #126034 (Clarify our tier 1 Windows Server support) - #126035 (Some minor query system cleanups) - #126051 (Clarify an `x fmt` error.) - #126059 (Raise `DEFAULT_MIN_STACK_SIZE` to at least 64KiB) - #126064 (Migrate `run-make/manual-crate-name` to `rmake.rs`) - #126072 (compiletest: Allow multiple `//@ run-flags:` headers) - #126073 (Port `tests/run-make-fulldeps/obtain-borrowck` to ui-fulldeps) - #126081 (Do not use relative paths to Rust source root in run-make tests) - #126086 (use windows compatible executable name for libcxx-version) - #126096 ([RFC-2011] Allow `core_intrinsics` when activated) r? `@ghost` `@rustbot` modify labels: rollup
2024-06-06Rollup merge of #126081 - Kobzol:run-make-relative-paths, r=jieyouxuJubilee-2/+3
Do not use relative paths to Rust source root in run-make tests Pre-requisite for https://github.com/rust-lang/rust/issues/126080. Fixes: https://github.com/rust-lang/rust/issues/126071 r? `@jieyouxu`
2024-06-06Rollup merge of #126072 - Zalathar:run-flags, r=jieyouxuJubilee-10/+12
compiletest: Allow multiple `//@ run-flags:` headers While working on some tests, I was annoyed to find that multiple `// `@run-flags:`` headers do not combine with each other (as `//@ compile-flags:` headers do), and instead all but one are silently discarded. This makes it impossible to split long flag lists into multiple lines. Fortunately it's easy to just recycle the existing logic from the other command-line-flags headers.
2024-06-06Rollup merge of #126064 - GuillaumeGomez:migrate-run-make-manual-crate-name, ↵Jubilee-1/+0
r=jieyouxu Migrate `run-make/manual-crate-name` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? ``@jieyouxu``