about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-12-28Auto merge of #134845 - jieyouxu:temp-drop-warning, r=onur-ozkanbors-13/+4
bootstrap: drop warning for top-level test suite path check due to false positives The current top-level test suite directory does not exist warning logic doesn't quite handle the more exotic path suffix matches that test filters seem to accept (e.g. `library/test` can be matched with `--exclude test`), so avoid warning on non-existent top-level test suites for now. To avoid false positives, we probably need to query test `Step`s for their `should_run(exclude_filter)` logic. This retains the fix for the Windows path handling (unlike #134843). r? `@onur-ozkan`
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-28Document virality of `feature(rustc_private)`Tamir Duberstein-2/+5
Since 9cb1998ea15e179482504e07cad8fa121e169a32 this feature is viral.
2024-12-28Auto merge of #134790 - onur-ozkan:cfg-test, r=clubby789bors-22/+19
replace bootstrap-self-test feature flag with cfg(test) This makes it in more rusty way.
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-28bootstrap: Allow `./x check compiletest`Zalathar-0/+4
2024-12-28Document `x test --no-capture` (#2174)clubby789-0/+8
2024-12-28bootstrap: drop warning for top-level test suite path check许杰友 Jieyou Xu (Joe)-13/+4
This doesn't quite handle the more exotic path suffix matches that test filters seem to accept (e.g. `library/test` can be matched with `--exclude test`), so avoid warning on non-existent top-level test suites for now. A proper fix will need to possibly query test `Step`s for their exclude logic.
2024-12-28Remove the `-test` suffix from normalize directives (#2172)Stuart Cook-8/+4
2024-12-28remove deprecated option `parallel-compiler`onur-ozkan-10/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-12-28read to `String` directly without extra conversiononur-ozkan-2/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-12-28remove an invalid FIXME noteonur-ozkan-2/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
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-27Auto merge of #134690 - clubby789:ci-clang-lto, r=Kobzolbors-2/+11
CI: Add LTO support to clang in dist-x86_64-linux After https://github.com/rust-lang/cc-rs/pull/1279, we attempt to pass `-flto=thin` to clang. In `dist-x86_64-linux`, we don't build clang with the `LLVMgold.so` library so this fails. This attempts to resolve this First, pass the binutils plugin include directory to Clang, [which will build the library](https://github.com/llvm/llvm-project/blob/2d6d723a85c2d007b0359c206d66cd2e5a9f00e1/llvm/docs/GoldPlugin.rst#how-to-build-it) Second, this library depends on the *version of libstdc++ that we built* specifically. However, despite both the RPATH and LD_LIBRARY_PATH pointing to `/rustroot/lib`, we incorrectly resolve to the system libstdc++, which doesn't load. ``` # LD_DEBUG=libs,files 2219: file=libstdc++.so.6 [0]; needed by /rustroot/bin/../lib/LLVMgold.so [0] 2219: find library=libstdc++.so.6 [0]; searching 2219: search path=/rustroot/bin/../lib/../lib (RPATH from file /rustroot/bin/../lib/LLVMgold.so) 2219: trying file=/rustroot/bin/../lib/../lib/libstdc++.so.6 2219: search path=/usr/lib64/tls:/usr/lib64 (system search path) 2219: trying file=/usr/lib64/tls/libstdc++.so.6 2219: trying file=/usr/lib64/libstdc++.so.6 ``` Using `LD_PRELOAD` causes it to correctly load the library I think this is probably not the most maintainable way to do this, so opening to see if this is desired and if there's a better way of doing this
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-27Auto merge of #134830 - matthiaskrgr:rollup-7hdjojz, r=matthiaskrgrbors-40/+117
Rollup of 6 pull requests Successful merges: - #133663 (Add a compiler intrinsic to back `bigint_helper_methods`) - #134798 (Make `ty::Error` implement all auto traits) - #134808 (compiletest: Remove empty 'expected' files when blessing) - #134809 (Add `--no-capture`/`--nocapture` as bootstrap arguments) - #134826 (Add spastorino to users_on_vacation) - #134828 (Add clubby789 back to bootstrap review rotation) r? `@ghost` `@rustbot` modify labels: rollup
2024-12-27Rollup merge of #134809 - clubby789:nocapture, r=jieyouxuMatthias Krüger-3/+36
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-27Auto merge of #134803 - clubby789:strip-debuginfo, r=Kobzolbors-2/+14
Strip debuginfo from rustc-main and rustdoc r? `@Kobzol` Split from #134690
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-27Rollup merge of #134815 - 9names:sort_platform_md_targets, r=jieyouxu许杰友 Jieyou Xu (Joe)-52/+52
Sort triples by name in platform_support.md When looking for riscv32emc support, I missed it at first because it was at the end of the tier3 target list [here](https://doc.rust-lang.org/rustc/platform-support.html#tier-3). These lists are *mostly* dictionary sorted so I assumed it should be near the riscv32i* targets. This PR puts all targets back in dictionary order. There were only a few outside of tier3. I ended up writing a small program to sort them because I did not trust myself to do it manually, but I stopped short of fully automating it. I have manually reviewed the output to confirm it still has the same number of entries, and that the changed values do follow the ordering I would expect. For folks who would prefer to review code than manual textual changes, the sorting program (including inputs) is [here.](https://github.com/9names/platform_sort_arch/blob/main/src/main.rs)
2024-12-27Rollup merge of #134806 - notriddle:notriddle/parent-path-is-better, ↵许杰友 Jieyou Xu (Joe)-9/+10
r=GuillaumeGomez rustdoc: use shorter paths as preferred canonical paths This is a solution to [the `std::sync::poison` linking problem](https://github.com/rust-lang/rust/pull/134692#issuecomment-2560373308), and, in general, makes intra-doc links shorter and clearer. > Done. This helped with the search, but not with the things like `MutexGuard`'s doc's reference to `Mutex::lock` being converted to the absolute (unstable) `std::sync::poison::Mutex` path. cc `@tgross35` r? `@GuillaumeGomez`
2024-12-27Rework the driver docs (#2162)bjorn3-198/+272
2024-12-27Add change tracker entryclubby789-0/+5
2024-12-27Document `forbid-output` for UI tests (#2171)clubby789-1/+1
2024-12-27compiletest: Remove/don't write empty 'expected' filesclubby789-37/+81
2024-12-27compiletest: Replace `--nocapture` with `--no-capture`clubby789-2/+8
2024-12-27Add `--no-capture` as a bootstrap argumentclubby789-2/+24
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