about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-04-30Auto merge of #124366 - Kobzol:remove-yaml-expansion, r=pietroalbinibors-594/+32
CI: remove `expand-yaml-anchors` This PR unifies all CI outcome jobs in a single job, and then removes the `expand-yaml-anchors` tool, since it is no longer needed after this change. I have tested try builds for both situations with the new `outcome` job (note that these two workflow runs use a different step structure in the outcome job, I have simplified it since): - [Success](https://github.com/rust-lang-ci/rust/actions/runs/8831529677/job/24251135366) - [Failure](https://github.com/rust-lang-ci/rust/actions/runs/8833052319/job/24251628792) r? `@ghost`
2024-04-30Auto merge of #124547 - matthiaskrgr:rollup-9tv8upg, r=matthiaskrgrbors-4/+15
Rollup of 4 pull requests Successful merges: - #124519 (adapt a codegen test for llvm 19) - #124524 (Add StaticForeignItem and use it on ForeignItemKind) - #124540 (Give proof tree visitors the ability to instantiate nested goals directly) - #124543 (codegen tests: Tolerate `range()` qualifications in enum tests) r? `@ghost` `@rustbot` modify labels: rollup
2024-04-30Rollup merge of #124524 - spastorino:make-foreign-static-use-struct, r=oli-obkMatthias Krüger-4/+15
Add StaticForeignItem and use it on ForeignItemKind This is in preparation for unsafe extern blocks that adds a safe variant for functions inside extern blocks. r? `@oli-obk` cc `@compiler-errors`
2024-04-30Auto merge of #124507 - Zalathar:coverage-level, r=compiler-errorsbors-6/+11
coverage: Replace boolean options with a `CoverageLevel` enum After #123409, and some discussion at https://github.com/rust-lang/rust/issues/79649#issuecomment-2042093553 and #124120, it became clear to me that we should have a unified concept of “coverage level”, instead of having several separate boolean flags that aren't actually independent. This PR therefore introduces a `CoverageLevel` enum, to replace the existing boolean flags for `branch` and `mcdc`. The `no-branch` value (for `-Zcoverage-options`) has been renamed to `block`, instructing the compiler to only instrument for block coverage, with no branch coverage or MD/DC instrumentation. `@rustbot` label +A-code-coverage cc `@ZhuUx` `@Lambdaris` `@RenjiSann`
2024-04-30Auto merge of #124398 - klensy:trailing-ws, r=compiler-errorsbors-6/+6
tests: remove some trailing ws Cleans one more case of trailing whitespace in tests.
2024-04-29Output `run_type` from the matrix calculation jobJakub Beránek-1/+14
2024-04-29Rename `JobType` to `WorkflowRunType`Jakub Beránek-13/+13
2024-04-29Remove the `expand-yaml-anchors` toolJakub Beránek-278/+5
2024-04-29Replace dynamically generated `ci.yml` file with the original templateJakub Beránek-301/+0
2024-04-29Unify outcome jobsJakub Beránek-19/+18
2024-04-29Auto merge of #124527 - jieyouxu:rollup-eslzncy, r=jieyouxubors-89/+71
Rollup of 7 pull requests Successful merges: - #124269 (Pretty-print parenthesis around binary in postfix match) - #124415 (Use probes more aggressively in new solver) - #124475 (Remove direct dependencies on lazy_static, once_cell and byteorder) - #124484 (Fix #124478 - offset_of! returns a temporary) - #124504 (Mark unions non-const-propagatable in `KnownPanicsLint` without calling layout) - #124508 (coverage: Avoid hard-coded values when visiting logical ops) - #124522 ([Refactor] Rename `Lint` and `LintGroup`'s `is_loaded` to `is_externally_loaded` ) r? `@ghost` `@rustbot` modify labels: rollup
2024-04-29Rollup merge of #124475 - GKFX:more-dependency-pruning, r=oli-obk许杰友 Jieyou Xu (Joe)-89/+71
Remove direct dependencies on lazy_static, once_cell and byteorder The relevant functionality of all three crates is now available and stable in the standard library, i.e. `std::sync::OnceLock` and `{integer}::to_le_bytes`. I think waiting for `LazyLock` (#109736) would give marginally more concise code, but not by much.
2024-04-29Auto merge of #124332 - Kobzol:toolstate-auto-build, r=pietroalbinibors-198/+110
CI: remove `master` job It only had one job (pun intended), to publish the toolstate. We could probably do that at the end of `auto` builds instead, which is what is done in this PR. r? `@pietroalbini`
2024-04-29Add StaticForeignItem and use it on ForeignItemKindSantiago Pastorino-4/+15
2024-04-29coverage: Replace boolean options with a `CoverageLevel` enumZalathar-6/+11
2024-04-29Auto merge of #124505 - Enselic:aux-bin-fix, r=jieyouxubors-0/+1
aux-bin: Avoid old .so files from old tests; clean auxiliary dir root Also fix the typo pointed out [here](https://github.com/rust-lang/rust/pull/123316/files#r1577081531). Closes #124465
2024-04-29aux-bin: Avoid old .so files from old tests; clean auxiliary dir rootMartin Nordholts-0/+1
2024-04-28Move rustfmt changes outGeorge Bateman-20/+33
Now in https://github.com/rust-lang/rustfmt/pull/6154
2024-04-28Rollup merge of #124473 - Urgau:port-print-cfg, r=jieyouxuMatthias Krüger-1/+0
Port `print-cfg` run-make test to Rust-based rmake.rs This PR port the `print-cfg` run-make test to Rust-based rmake.rs tests. The actual test is now split in two: - the first part for the `--print=cfg` part - and the second part for the `=PATH` part of `--print` Part of #121876. r? `@jieyouxu`
2024-04-28Add some missing comments to describe what the inlined SVG isGuillaume Gomez-0/+4
2024-04-28Inline `wheel.svg` into CSSGuillaume Gomez-3/+14
2024-04-28Inline `clipboard.svg` into CSSGuillaume Gomez-3/+11
2024-04-28Port print-cfg run-make to Rust-based rmake.rsUrgau-1/+0
2024-04-28Remove direct dependencies on lazy_static, once_cell and byteorderGeorge Bateman-122/+91
The functionality of all three crates is now available in the standard library.
2024-04-28Auto merge of #124261 - onur-ozkan:drop-llvm-if-available, r=Mark-Simulacrumbors-5/+0
drop deprecated value `if-available` for `download-ci-llvm` option It's been 5 months since we deprecated this. It should be fine to drop its support now.
2024-04-28Auto merge of #123546 - Rajveer100:branch-for-issue-122128, r=onur-ozkanbors-0/+29
Bootstrap: Check validity of `--target` and `--host` triples before starting a build Resolves #122128 As described in the issue, validating the `target` and `host` triples would save a lot of time before actually starting a build. This would also check for custom targets by looking for a valid JSON spec if the specified target does not exist in the [supported](https://github.com/rust-lang/rust/blob/42825768b103c28b10ce0407749acb21d32abeec/compiler/rustc_target/src/spec/mod.rs#L1401-L1689) list of targets.
2024-04-28Auto merge of #124454 - Mark-Simulacrum:bump-version, r=Mark-Simulacrumbors-1/+1
Bump version to 1.80 https://forge.rust-lang.org/release/process.html#bump-the-stable-version-number-t-6-days-friday-the-week-before r? `@Mark-Simulacrum`
2024-04-28Rollup merge of #124429 - Enselic:document-builder, r=Mark-SimulacrumMatthias Krüger-0/+23
bootstrap: Document `struct Builder` and its fields I'm exploring the code of bootstrap and had a bit of a hard time understanding exactly what `Builder` is for at first. I decided to help document it and its field to help future explorers.
2024-04-28Rollup merge of #124242 - workingjubilee:describe-bootstrap-files-better, ↵Matthias Krüger-6/+28
r=Mark-Simulacrum bootstrap: Describe build_steps modules One of my preferred ways to understand source code is to start with its API. This implies the code is documented reasonably accurately, even if it is a private API. The description of one of these modules had not been updated since 2015 and so was both terse and confusing, so I rewrote it. Then I noticed many others went unremarked, so I offered some remarks.
2024-04-28Rollup merge of #123942 - onur-ozkan:x-vendor, r=Mark-SimulacrumMatthias Krüger-12/+348
`x vendor` This PR implements `x vendor` on bootstrap; enabling dependency vendoring without the need for developers to have `cargo` installed on their system (previously, we suggested running `cargo vendor ...` but now we can accomplish the same task with `x vendor`). In addition, fixes #112391 problem.
2024-04-27Bump version to 1.80Mark Rousskov-1/+1
2024-04-27Auto merge of #124448 - matthiaskrgr:rollup-iloy9vz, r=matthiaskrgrbors-144/+120
Rollup of 7 pull requests Successful merges: - #124370 (Fix substitution parts having a shifted underline in some cases) - #124394 (Fix ICE on invalid const param types) - #124425 (Do not ICE on invalid consts when walking mono-reachable blocks) - #124434 (Remove lazycell and once_cell from compiletest dependencies) - #124437 (doc: Make the `mod.rs` in the comment point to the correct location) - #124443 (Elaborate in comment about `statx` probe) - #124445 (bootstrap: Change `global(true)` to `global = true` for flags for consistency) r? `@ghost` `@rustbot` modify labels: rollup
2024-04-27Rollup merge of #124445 - Enselic:global-true, r=onur-ozkanMatthias Krüger-40/+40
bootstrap: Change `global(true)` to `global = true` for flags for consistency All other arg properties use the `prop = value` style, which makes it slightly annoying to use the `prop(value)` only style for `global`. Change to `prop = value` also for `global` for consistency.
2024-04-27Rollup merge of #124434 - GKFX:remove-lazy-dependencies, r=jieyouxuMatthias Krüger-104/+80
Remove lazycell and once_cell from compiletest dependencies Use the standard library `OnceLock` instead of third-party equivalents. A macro is used for the regexes to make their initialization less unwieldy.
2024-04-27Auto merge of #124405 - RalfJung:miri-core-alloc-tests, r=clubby789bors-3/+0
miri core/alloc tests: do not test a 2nd target check-aux seems to be one of the slowest runners since we started running standard library tests in Miri on it. So maybe it'd be better to reduce test coverage a bit by not doing cross-target testing of core and alloc? I don't recall finding target-specific issues in these libraries ever (and we still have the extra test coverage via our [out-of-tree nightly tests](https://github.com/rust-lang/miri-test-libstd)). This gives us more buffer to deal with the fact that the number of tests we run will only grow over time. Cc `@rust-lang/miri` `@rust-lang/infra`
2024-04-27Bootstrap: Check validity of `--target` and `--host` triples before starting ↵Rajveer-0/+29
a build Resolves #122128
2024-04-27bootstrap: Change `global(true)` to `global = true` for flags for consistencyMartin Nordholts-40/+40
All other arg properties use the `prop = value` style, which makes it slightly annoying to use the `prop(value)` style for `global`. Change to `prop = value` also for `global` for consistency.
2024-04-27bootstrap: Document `struct Builder` and its fieldsMartin Nordholts-0/+23
2024-04-27Add missing checkout stepJakub Beránek-0/+4
2024-04-27Remove lazycell and once_cell from compiletest dependenciesGeorge Bateman-104/+80
2024-04-27Move `TOOLSTATE_REPO` to top-level envJakub Beránek-1/+3
2024-04-27Auto merge of #124430 - RalfJung:miri, r=RalfJungbors-568/+675
Miri subtree update r? `@ghost`
2024-04-27clippy: bless testsklensy-6/+6
2024-04-27Rollup merge of #124382 - petrochenkov:itemvisit, r=lcnrMatthias Krüger-24/+24
ast: Generalize item kind visiting And avoid duplicating logic for visiting `Item`s with different kinds (regular, associated, foreign). The diff is better viewed with whitespace ignored.
2024-04-27Auto merge of #124416 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 9 commits in c9392675917adc2edab269eea27c222b5359c637..b60a1555155111e962018007a6d0ef85207db463 2024-04-23 19:35:19 +0000 to 2024-04-26 16:37:29 +0000 - fix(toml): Remove underscore field support in 2024 (rust-lang/cargo#13804) - fix: emit 1.77 syntax error only when msrv is incompatible (rust-lang/cargo#13808) - docs(ref): Index differences between virtual / real manifests (rust-lang/cargo#13794) - refactor(toml): extract dependency-to-source-id to function (rust-lang/cargo#13802) - Add where lint was set (rust-lang/cargo#13801) - fix(toml): Don't double-warn when underscore is used in workspace dep (rust-lang/cargo#13800) - fix(toml): Be more forceful with underscore/dash redundancy (rust-lang/cargo#13798) - Fix warning suppression for config.toml vs config compat symlinks (rust-lang/cargo#13793) - Cleanup linting system (rust-lang/cargo#13797) r? ghost
2024-04-27Auto merge of #124424 - jhpratt:rollup-o3ngkjy, r=jhprattbors-1/+0
Rollup of 5 pull requests Successful merges: - #124341 (resolve: Remove two cases of misleading macro call visiting) - #124383 (Port run-make `--print=native-static-libs` to rmake.rs) - #124391 (`rustc_builtin_macros` cleanups) - #124408 (crashes: add more tests) - #124410 (PathBuf: replace transmuting by accessor functions) r? `@ghost` `@rustbot` modify labels: rollup
2024-04-26Rollup merge of #124383 - Urgau:port-print-native-static-libs, r=jieyouxuJacob Pratt-1/+0
Port run-make `--print=native-static-libs` to rmake.rs This PR port the run-make `--print=native-static-libs` test to rmake.rs The dedup was really awful in the `Makefile`, I'm glad to finally have a proper dedup detection for this. Related to https://github.com/rust-lang/rust/issues/121876 r? `@jieyouxu`
2024-04-26Auto merge of #124296 - cuviper:dist-cargo-tests, r=onur-ozkanbors-0/+6
bootstrap: keep all cargo test files in dist rustc-src Cargo tests use some files that we would otherwise exclude, especially the `cargo init` tests that are meant to deal with pre-existing `.git` and `.hg` repos and their ignore files. Keeping these in our dist tarball doesn't take much space, and allows distro builds to run these tests successfully.
2024-04-26env: split up Windows and Unix environment variable handlingRalf Jung-530/+606
2024-04-26Update cargoWeihang Lo-0/+0