summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-08-06fix github actions runner for armPietro Albini-1/+1
2024-08-06update version numberPietro Albini-1/+1
2024-07-21Cherry-pick release notesMark Rousskov-1/+1
2024-07-20Auto merge of #127904 - flip1995:clippy-beta-backport, r=Mark-Simulacrumbors-7/+44
[beta] Clippy backport r? `@Mark-Simulacrum` Really small backport this time: - https://github.com/rust-lang/rust-clippy/pull/12961 Fixes a quite annoying bug of this lint, that got into the last stable release 1.79.0. There were already 3 issues opened about it in the Clippy repo. It would be great to get this fixed for the next stable release. I confirmed that this commit is already part of `master`
2024-07-18Auto merge of #12961 - GuillaumeGomez:fix-manual_unwrap_or_default, r=Alexendoobors-7/+44
Fix incorrect suggestion for `manual_unwrap_or_default` Fixes #12928. If this not a "simple" pattern, better not emit the lint. changelog: Fix incorrect suggestion for `manual_unwrap_or_default`
2024-07-17Update dist-riscv64-linux to binutils 2.40Nikita Popov-1/+216
binutils 2.40 is required by LLVM 19, as older versions do not know about the zmmull extension. I've had to backport some patches to glibc and gcc as well, as they don't build with binutils 2.40. Alternatively, we could also switch to glibc 2.35 and gcc 12 (I think). I figured we'd want to avoid the glibc version change, but if that's fine for riscv I can go with that instead.
2024-07-16[beta-1.80] Update cargoWeihang Lo-0/+0
2024-07-11Update LLVM submoduleDianQK-0/+0
(cherry picked from commit 3d699a4fa1eee76a8d8951e449d5df37061af658)
2024-07-05Change to the NetBSD archive URL rather than the CDNTrevor Gross-12/+42
The CDN has been down for a few hours. Switch to an alternative for the time being so we can unblock CI. It appears that the CDN is quite a bit faster, so we will likely want to switch back when available. (cherry picked from commit 42ac903f4fe4e9894f8c6e97538696bdbae848dc)
2024-07-05Update LLVM submoduleDianQK-0/+0
(cherry picked from commit da81d0d940481827fb2bdd164ea0038832e3779e)
2024-06-21ci: Update centos:7 to use vault reposJosh Stone-2/+10
CentOS 7 is going EOL on June 30, after which its package repos will no longer exist on the regular mirrors. We'll still be able to access packages from the vault server though, and can start doing so now. This affects `dist-i686-linux` and `dist-x86_64-linux`. I also removed `epel-release` because we were only using that for its `cmake3`, but we've been building our own version for a while. (cherry picked from commit 6d2493bf5d6c97bc52aa109944a7f27ee456192e)
2024-06-13Bump stage0 to 1.79.0Josh Stone-430/+332
2024-06-11ensure the self-contained linker is only enabled on nightly/devRémy Rakic-1/+3
2024-06-10bump channel to betaPietro Albini-1/+1
2024-06-07Auto merge of #126134 - matthiaskrgr:rollup-vzlegsc, r=matthiaskrgrbors-27/+40
Rollup of 11 pull requests Successful merges: - #124012 (Stabilize `binary_heap_as_slice`) - #124214 (Parse unsafe attributes) - #125572 (Detect pub structs never constructed and unused associated constants) - #125781 (prefer `compile::stream_cargo` for building tools) - #126030 (Update `./x fmt` command in library/std/src/sys/pal/windows/c/README.md) - #126047 (Simplify the rayon calls in the installer) - #126052 (More `rustc_parse` cleanups) - #126077 (Revert "Use the HIR instead of mir_keys for determining whether something will have a MIR body.") - #126089 (Stabilize Option::take_if) - #126112 (Clean up source root in run-make tests) - #126119 (Improve docs for using custom paths with `--emit`) r? `@ghost` `@rustbot` modify labels: rollup
2024-06-07Rollup merge of #126119 - Zalathar:emit-filename, r=ehussMatthias Krüger-11/+29
Improve docs for using custom paths with `--emit` Recently I found myself concluding that this feature didn't exist (https://github.com/rust-lang/rust/pull/126111#discussion_r1630707215), despite having read the documentation, because it was hidden away in the middle of a paragraph full of other information. Giving this documentation more space of its own should make it easier to find.
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-07Rollup merge of #125781 - onur-ozkan:improve-tool-builder, r=albertlarsan68Matthias Krüger-3/+1
prefer `compile::stream_cargo` for building tools Previously, we were running bare commands for `ToolBuild` step and were unable to utilize some of the flags which are already handled by `compile::stream_cargo`. This change makes `ToolBuild` to use `compile::stream_cargo`, allowing us to benefit from the flags supported by the bootstrap cargo. Resolves #125666
2024-06-07Rollup merge of #124214 - carbotaniuman:parse_unsafe_attrs, r=michaelwoeristerMatthias Krüger-1/+5
Parse unsafe attributes Initial parse implementation for #123757 This is the initial work to parse unsafe attributes, which is represented as an extra `unsafety` field in `MetaItem` and `AttrItem`. There's two areas in the code where it appears that parsing is done manually and not using the parser stuff, and I'm not sure how I'm supposed to thread the change there.
2024-06-07run fmtGuillaume Gomez-18/+16
2024-06-07Fix broken rustdoc unit testsNoah Lev-22/+37
2024-06-07Parse full doctest source; extract helper for parsing codeNoah Lev-90/+104
It doesn't really make sense to skip part of the source when we're parsing it, so parse the whole doctest. This simplifies things too.
2024-06-07Move logic for "making" doctests to submoduleNoah Lev-375/+387
This code turns the raw code given by the user into something actually runnable, e.g. by adding a `main` function if it doesn't already exist. I also made a couple other items private that didn't need to be crate-public.
2024-06-07Make doctests before running them; reintroduce `RunnableDoctest`Noah Lev-42/+54
2024-06-07Move some arguments to fields and reorganize fieldsNoah Lev-58/+54
I moved some local arguments and options to either the local options struct or, if it made sense, the global options struct.
2024-06-07Remove `RunnableDoctest`Noah Lev-24/+17
It should instead be the actual input to the running logic. Currently it's not actually quite runnable since it's still missing some information.
2024-06-07Make two fields computed on-demandNoah Lev-9/+15
2024-06-07rustdoc: Remove `DoctestVisitor::get_line`Noah Lev-24/+42
This was used to get the line number of the first line from the current docstring, which was then used together with an offset within the docstring. It's simpler to just pass the offset to the visitor and have it do the math because it's clearer and this calculation only needs to be done in one place (the Rust doctest visitor).
2024-06-07Remove global options from `IndividualTestOptions`Noah Lev-40/+21
2024-06-07Merge `RustDoctest` and `MdDoctest` into one typeNoah Lev-77/+42
2024-06-07rustdoc: Extract actual doctest running logic into functionNoah Lev-75/+126
2024-06-07Separate doctest collection from runningNoah Lev-188/+237
2024-06-07Move Markdown-specific doctest code into submoduleNoah Lev-47/+51
2024-06-07Start moving format-specific code into doctest submoduleNoah Lev-120/+136
2024-06-07rustdoc: Use `write_all` to ensure all content is writtenNoah Lev-1/+1
2024-06-07rustdoc: Rename `Tester` to `DoctestVisitor`Noah Lev-14/+14
The new name more accurately captures what it is.
2024-06-07Improve docs for using custom paths with `--emit`Zalathar-11/+29
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-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-06Fix formattingcarbotaniuman-1/+1
2024-06-06Fix buildcarbotaniuman-5/+5
2024-06-06Parse unsafe attributescarbotaniuman-1/+5
2024-06-06Auto merge of #126104 - workingjubilee:rollup-t1ac2ld, r=workingjubileebors-21/+27
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 #126086 - onur-ozkan:use-exe, r=petrochenkovJubilee-1/+1
use windows compatible executable name for libcxx-version Resolves #https://github.com/rust-lang/rust/pull/125411#discussion_r1629915724
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.