about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-12-29Split out `ProjectWorkspace::load_cargo`Lukas Wirth-142/+139
2024-12-29Enforce a current directory being set for spawned commandsLukas Wirth-75/+99
2024-12-29Cleanup toolchain info fetchingLukas Wirth-230/+197
2024-12-29Merge pull request #18784 from Veykril/push-pqtwsvquxotyLukas Wirth-1/+1
fix: Do not merge spans if they have different anchors
2024-12-29fix: Do not merge spans if they have different anchorsLukas Wirth-1/+1
2024-12-29Describe variance resolution approach differences to rustcLukas Wirth-36/+27
2024-12-29Merge pull request #4115 from RalfJung/epollOli Scherer-41/+40
epoll: avoid some clones
2024-12-29concurrency: Generalize UnblockCallback to MachineCallbackshamb0-130/+186
* Introduce UnblockKind enum to represent operation outcomes * Consolidate unblock/timeout methods into single callback interface * Update thread blocking system to use new callback mechanism * Refactor mutex and condvar implementations for new callback pattern Signed-off-by: shamb0 <r.raajey@gmail.com>
2024-12-29an EpollEventInterest does not need to ref both its FD and its ready listRalf Jung-15/+18
2024-12-29triagebot: enable merge conflict notificationRalf Jung-0/+8
2024-12-29Auto merge of #134867 - rust-lang:cargo_update, r=clubby789bors-14/+14
Weekly `cargo update` Automation to keep dependencies in `Cargo.lock` current. The following is the output from `cargo update`: ```txt compiler & tools dependencies: Locking 8 packages to latest compatible versions Updating anyhow v1.0.94 -> v1.0.95 Updating glob v0.3.1 -> v0.3.2 Updating quote v1.0.37 -> v1.0.38 Updating rustversion v1.0.18 -> v1.0.19 Updating serde v1.0.216 -> v1.0.217 Updating serde_derive v1.0.216 -> v1.0.217 Updating syn v2.0.90 -> v2.0.93 Updating unicase v2.8.0 -> v2.8.1 note: pass `--verbose` to see 36 unchanged dependencies behind latest library dependencies: Locking 0 packages to latest compatible versions note: pass `--verbose` to see 5 unchanged dependencies behind latest rustbook dependencies: Locking 7 packages to latest compatible versions Updating anyhow v1.0.94 -> v1.0.95 Updating cc v1.2.5 -> v1.2.6 Updating quote v1.0.37 -> v1.0.38 Updating serde v1.0.216 -> v1.0.217 Updating serde_derive v1.0.216 -> v1.0.217 Updating syn v2.0.90 -> v2.0.93 Updating unicase v2.8.0 -> v2.8.1 ```
2024-12-29cargo updategithub-actions-14/+14
compiler & tools dependencies: Locking 8 packages to latest compatible versions Updating anyhow v1.0.94 -> v1.0.95 Updating glob v0.3.1 -> v0.3.2 Updating quote v1.0.37 -> v1.0.38 Updating rustversion v1.0.18 -> v1.0.19 Updating serde v1.0.216 -> v1.0.217 Updating serde_derive v1.0.216 -> v1.0.217 Updating syn v2.0.90 -> v2.0.93 Updating unicase v2.8.0 -> v2.8.1 note: pass `--verbose` to see 36 unchanged dependencies behind latest library dependencies: Locking 0 packages to latest compatible versions note: pass `--verbose` to see 5 unchanged dependencies behind latest rustbook dependencies: Locking 7 packages to latest compatible versions Updating anyhow v1.0.94 -> v1.0.95 Updating cc v1.2.5 -> v1.2.6 Updating quote v1.0.37 -> v1.0.38 Updating serde v1.0.216 -> v1.0.217 Updating serde_derive v1.0.216 -> v1.0.217 Updating syn v2.0.90 -> v2.0.93 Updating unicase v2.8.0 -> v2.8.1
2024-12-28epoll: avoid some clonesRalf Jung-28/+24
2024-12-28Consider `Enum::Variant` even when it comes from a different crateChayim Refael Friedman-39/+66
2024-12-28Show variance of parameters on hoverLukas Wirth-12/+69
2024-12-28SimplifyLukas Wirth-101/+89
2024-12-28Get rid of constrain and solve stepsLukas Wirth-95/+44
2024-12-28Remove unnecessary VarianceTermLukas Wirth-74/+31
2024-12-28Implement parameter variance inferenceLukas Wirth-37/+1271
2024-12-28Merge pull request #18778 from Veykril/push-oontvoqmxknoLukas Wirth-3/+15
fix: Fix flycheck diagnostics flickering for binary targets
2024-12-28epoll: keep strong reference while blockingRalf Jung-39/+27
2024-12-28Add DynTyExt::principal_idLukas Wirth-12/+24
2024-12-28Downgrade salsa log levelsLukas Wirth-68/+86
2024-12-28fix: Fix flycheck diagnostics flickering for binary targetsLukas Wirth-3/+15
2024-12-28FD handling: avoid unnecessary dynamic downcastsRalf Jung-247/+243
2024-12-29Simplify `DebuggerCommands::parse_from` to only take one prefixZalathar-20/+11
2024-12-29Remove the unused `cdbg-*` debugger directive prefixZalathar-7/+1
There are no tests in `tests/debuginfo` that use this prefix.
2024-12-28fix toolchain flag parsingRyan Mehri-0/+1
2024-12-28Rollup merge of #134840 - Zalathar:normalize, r=jieyouxuStuart Cook-22/+25
compiletest: Only pass the post-colon value to `parse_normalize_rule` Addresses one of the FIXMEs noted in #134759. I started working on the other FIXME, but it became complex enough that I wanted to split it off from this PR. r? jieyouxu
2024-12-28Rollup merge of #134829 - jieyouxu:migrate-libs-through-symlinks, r=lqdStuart Cook-1/+0
Migrate `libs-through-symlink` to rmake.rs Part of https://github.com/rust-lang/rust/issues/121876. This PR migrates `tests/run-make/libs-through-symlink/` to use rmake.rs. - Regression test for #13890. - Original fix PR is #13903. - Document test intent, backlink to #13890 and fix PR #13903. - Fix the test logic: the `Makefile` version seems to not actually be exercising the "library search traverses symlink" logic, because the actual symlinked-to-library is present under the `$(TMPDIR)` directory tree when `bar.rs` is compiled, because the `$(RUSTC)` invocation has an implicit `-L $(TMPDIR)`. The symlink itself was actually broken, i.e. it should've been `ln -nsf $(TMPDIR)/outdir/$(NAME) $(TMPDIR)` but it used `ln -nsf outdir/$(NAME) $(TMPDIR)`. The rmake.rs version now explicitly separates the two directory trees and sets the CWD of the `bar.rs` rustc invocation so that the actual library is *not* present under its CWD tree. I.e. it is now ``` $test_output/ # rustc foo.rs -o actual_lib_dir/libfoo.rlib actual_lib_dir/ libfoo.rlib symlink_lib_dir/ # CWD set; rustc -L . bar.rs libfoo.rlib --> $test_output/actual_lib_dir/libfoo.rlib ``` Partially supersedes #129011. This PR is co-authored with `@Oneirical.` r? compiler
2024-12-28tests: migrate `branch-protection-check-IBT` to rmake.rs许杰友 Jieyou Xu (Joe)-1/+0
- The Makefile version *never* ran because of Makefile syntax confusion. - The test would've always failed because precompiled std is not built with `-Z cf-protection=branch`, but linkers require all input object files to indicate IBT support in order to enable IBT for the executable, which is not the case for std. - Thus, the test input file is instead changed to a `no_std` + `no_core` program. Co-authored-by: Jerry Wang <jerrylwang123@gmail.com> Co-authored-by: Oneirical <manchot@videotron.ca>
2024-12-28tests: migrate `libs-through-symlink` to rmake.rs许杰友 Jieyou Xu (Joe)-1/+0
- Document test intent, backlink to #13890 and fix PR #13903. - Fix the test logic: the `Makefile` version seems to not actually be exercising the "library search traverses symlink" logic, because the actual symlinked-to-library is present under the directory tree when `bar.rs` is compiled, because the `$(RUSTC)` invocation has an implicit `-L $(TMPDIR)`. The symlink itself was actually broken, i.e. it should've been `ln -nsf $(TMPDIR)/outdir/$(NAME) $(TMPDIR)` but it used `ln -nsf outdir/$(NAME) $(TMPDIR)`. Co-authored-by: Oneirical <manchot@videotron.ca>
2024-12-28compiletest: Make a FIXME for escaped newlines less confusingZalathar-1/+3
The old FIXME implies that we don't support escaped newlines, but in fact it was added in the same patch that added support for escaped newlines. The new FIXME makes it clear that we do currently support this, and that the FIXME is for doing so in a less ad-hoc way.
2024-12-28compiletest: Only pass the post-colon value to `parse_normalize_rule`Zalathar-21/+22
2024-12-27Only include SCIP SymbolInformation for first inherent implMichael Sloan-33/+52
2024-12-27Message updates from reviewMichael Sloan-4/+4
2024-12-27Update crates/ide/src/moniker.rsMichael Sloan-2/+1
Co-authored-by: David Barsky <me@davidbarsky.com>
2024-12-27Update crates/ide/src/moniker.rsMichael Sloan-2/+1
Co-authored-by: David Barsky <me@davidbarsky.com>
2024-12-27fix doc typoErithax-1/+1
2024-12-27Rollup merge of #134809 - clubby789:nocapture, r=jieyouxuMatthias Krüger-1/+7
Add `--no-capture`/`--nocapture` as bootstrap arguments I often try `x test ... --nocapture` => 'unknown argument' => `x test ... -- --nocapture`. As we forward several other compiletest flags, let's recognise this one in bootstrap as well.
2024-12-27Rollup merge of #134808 - clubby789:compiletest-remove-stderr, r=jieyouxuMatthias Krüger-37/+81
compiletest: Remove empty 'expected' files when blessing Fixes #134793 Fixes #134196 This also refactors `compare_output` to return an enum; returning a usize was done for convenience but is misleading
2024-12-27Rollup merge of #134816 - Integral-Tech:pathbuf-refactor, r=lqd许杰友 Jieyou Xu (Joe)-2/+2
tools: fix build failure caused by PR #134420 Someone reports build failure after merging pull request #134420: https://github.com/rust-lang/rust/pull/134420#discussion_r1898081258 This pull request fixes the build failure.
2024-12-27compiletest: Remove/don't write empty 'expected' filesclubby789-37/+81
2024-12-27compiletest: Replace `--nocapture` with `--no-capture`clubby789-1/+7
2024-12-27also clean up eventfd code in the same veinRalf Jung-30/+25
2024-12-27add test for close-while-blockedRalf Jung-8/+78
2024-12-27bring socket logic back together and fix logic bugRalf Jung-86/+74
2024-12-27Merge pull request #18744 from gbbosak/masterLukas Wirth-0/+1
Treat ; as a terminator rather part of a glued expression
2024-12-27Remove the `-test` suffix from normalize directivesZalathar-8/+7
2024-12-27Don't use `parse_cfg_name_directive` for normalize directivesZalathar-16/+49
This is a little more verbose, but also more explicit, and avoids invoking the full condition engine when only the pointer-width conditions are used.