summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-12-21Auto merge of #119188 - flip1995:clippy-beta-backport, r=pietroalbini 1.75.0bors-230/+368
[beta] Clippy beta backport PR towards stable, as beta was branched a day early and I missed the notification. - https://github.com/rust-lang/rust-clippy/pull/11538 - https://github.com/rust-lang/rust-clippy/pull/11756 - https://github.com/rust-lang/rust-clippy/pull/11760 - https://github.com/rust-lang/rust-clippy/pull/11953 r? `@pietroalbini`
2023-12-21Auto merge of #11953 - Jarcho:issue_11952, r=Alexendoobors-103/+150
Fix binder handling in `unnecessary_to_owned` fixes #11952 The use of `rebind` instead of `EarlyBinder::bind` isn't technically needed, but it is the semantically correct operation. changelog: None
2023-12-21Auto merge of #11760 - compiler-errors:escaping, r=Jarchobors-2/+18
Don't check for late-bound vars, check for escaping bound vars Fixes an assertion that didn't make sense. Many valid and well-formed types *have* late-bound vars (e.g. `for<'a> fn(&'a ())`), they just must not have *escaping* late-bound vars in order to be normalized correctly. Addresses rust-lang/rust-clippy#11230, cc `@jyn514` and `@matthiaskrgr` changelog: don't check for late-bound vars, check for escaping bound vars. Addresses rust-lang/rust-clippy#11230
2023-12-21Auto merge of #11756 - y21:issue11755, r=Manishearthbors-3/+8
[`unused_enumerate_index`]: don't ICE on empty tuples Fixes #11755 changelog: [`unused_enumerate_index`]: don't ICE on empty tuples I'm going to nominate for beta backport because the code that is needed to trigger this seems likely to occur in real code `@rustbot` label +beta-nominated
2023-12-21Auto merge of #11538 - Jarcho:proc_mac, r=dswijbors-122/+192
Fix `is_from_proc_macro` patterns fixes #11533 changelog: none
2023-12-21bump channel to stablePietro Albini-1/+1
2023-12-15Include an additional cherry-pickNikita Popov-0/+0
(cherry picked from commit 601d52a7031f0f57562b661c99d30b4035d7b4af)
2023-12-15Update to LLVM 17.0.6Nikita Popov-0/+0
(cherry picked from commit bb7c483e48ea992f3759fb643962e1e706c8c029)
2023-12-12Don't ask for a specific branch in cargotestLaurențiu Nicola-1/+1
(cherry picked from commit 5808b72484204af035a4d9683731f44bd8d59529)
2023-11-27Update to LLVM 17.0.5Nikita Popov-0/+0
(cherry picked from commit 8e2fcc4ca211021d929ca424055b59307a97a8f4)
2023-11-20[beta-1.75] Update cargoWeihang Lo-0/+0
2023-11-18Bump bootstrap to released 1.74.0Mark Rousskov-378/+279
2023-11-12Cranelift isn't available on non-nightly channelsMark Rousskov-4/+1
2023-11-12Bump channel to betaMark Rousskov-1/+1
2023-11-11Auto merge of #117797 - weihanglo:update-cargo, r=weihanglobors-0/+1
Update cargo 12 commits in 7046d992f9f32ba209a8079f662ebccf9da8de25..6790a5127895debec95c24aefaeb18e059270df3 2023-11-08 03:24:57 +0000 to 2023-11-10 17:09:35 +0000 - refactor(source): Prepare for new PackageIDSpec syntax (rust-lang/cargo#12938) - credential: include license files in all published crates (rust-lang/cargo#12953) - fix: preserve jobserver file descriptors on rustc invocation in `fix_exec_rustc` (rust-lang/cargo#12951) - refactor(resolver): Consolidate logic in `VersionPreferences` (rust-lang/cargo#12930) - refactor(toml): Simplify code to make schema split easier (rust-lang/cargo#12948) - Filter `cargo-credential-*` dependencies by OS (rust-lang/cargo#12949) - refactor(util): Pull out `mod util_semver` (rust-lang/cargo#12940) - Fix the invalidate feature name message (rust-lang/cargo#12939) - refactor(util): Prepare for splitting out semver logic (rust-lang/cargo#12926) - feat: Make browser links out of HTML file paths (rust-lang/cargo#12889) - Do not allow empty feature name (rust-lang/cargo#12928) - fix(timings): unnecessary backslash when error happens (rust-lang/cargo#12934) r? ghost
2023-11-11Auto merge of #117799 - erickt:fuchsia, r=tmandrybors-8/+44
Switch `fuchsia-test-runner.py` to `ffx product` The subcommand `ffx product-bundle` has been removed, and replaced with the subcommand `ffx product`. This changes `fuchsia-test-runner.py` to use it to download the SDK and product bundle for the latest release of Fuchsia.
2023-11-10Switch `fuchsia-test-runner.py` to `ffx product`Erick Tryzelaar-8/+44
The subcommand `ffx product-bundle` has been removed, and replaced with the subcommand `ffx product`. This changes `fuchsia-test-runner.py` to use it to download the SDK and product bundle for the latest release of Fuchsia.
2023-11-10Update cargoWeihang Lo-0/+1
2023-11-10Auto merge of #117765 - onur-ozkan:fix-117762, r=clubby789bors-0/+6
enable unstable feature on `x clean [PATH]` Since https://github.com/rust-lang/rust/pull/111076 enables unstable cargo feature (`public-dependency`), we need to ensure that unstable features are enabled before reading libstd Cargo.toml. Fixes #117762 cc `@Nilstrieb`
2023-11-10Auto merge of #117750 - klensy:icu-followup, r=Nilstriebbors-0/+4
bump few ICU4X leftover deps implements https://github.com/rust-lang/rust/pull/117632#issuecomment-1795027801 suggestion There no strict version dependencies between some crates, so yoke was 0.7.2, but yoke-derive left with 0.7.1, same with zerofrom, zerofrom-derive, zerovec, zerovec-derive; drops synstructure 0.12* dependency, less syn 1.* users left.
2023-11-10Rollup merge of #114191 - rcvalle:rust-exploit-mitigations, r=cuviperMatthias Krüger-209/+195
Update exploit mitigations documentation Updates the rustc book with most up to date information about exploit mitigations supported by the Rust compiler.
2023-11-09enable unstable feature on `x clean [PATH]`onur-ozkan-0/+6
Since https://github.com/rust-lang/rust/pull/111076 enables unstable cargo feature (`public-dependency`), we need to ensure that unstable features are enabled before reading libstd Cargo.toml. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-09Auto merge of #117708 - onur-ozkan:x-setup, r=clubby789bors-104/+112
check config file before prompts on `x setup` First 2 commit moves the check of configuration existence to the first step of `x setup`. And then followed by a prompt that allows devs to decide whether to continue with the configuration override or exit bootstrap. Closes #110471 I can revert the last commit if needed. Maybe it's just me, but I feel it's better to have those tags capitalized. If you think otherwise, please let me know so that I can revert.
2023-11-09Auto merge of #117122 - ferrocene:pa-configure-git-diff, r=albertlarsan68bors-21/+93
Allow configuring the parent GitHub repository The git integration in build_helper hardcoded `rust-lang/rust` as the parent GitHub repository, and `master` as the branch name. This works great for `rust-lang/rust`, but causes problems in downstream forks like Ferrocene whenever those functions are invoked (like `./x fmt`). In `src/stage0.json` there was already a configuration key for the name of the nightly branch, but it wasn't used by build_helper. This PR adds the `github_repository` key to the file, and requires both values to be passed to build_helper whenever a git function is called. This will allow downstream forks to tweak the values.
2023-11-09fmtPietro Albini-4/+1
2023-11-09bump few ICU4X leftover depsklensy-0/+4
implements https://github.com/rust-lang/rust/pull/117632#issuecomment-1795027801 suggestion
2023-11-09Auto merge of #117632 - Nilstrieb:icup, r=davidtwcobors-2/+34
Update ICU4X This updates all ICU4X crates and regenerates rustc_baked_icu_data. Since the new unicode license under which they are licensed does not have an SPDX identifier yet, we define some exceptions. The license has to be reviewed to make sure it is still fine to use here, but I assume that is the case. I also added an exception for rustc_icu_data to the unexplained ignore doctest tidy lint. This is a bit hacky but the whole style.rs in tidy is a mess so I didn't want to touch it more than this small hack. part of #112865 r? `@davidtwco` `@wesleywiser` `@Manishearth`
2023-11-09chore(bootstrap): capitalize {error, warning, info, note} tagsonur-ozkan-92/+92
This should enhance the readability. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-09allow users to override the existing configuration during x setuponur-ozkan-1/+11
Instead of immediately terminating bootstrap, users are now given the option to decide whether they want to override the file or leave it unchanged. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-09check config file before prompts on x setuponur-ozkan-13/+11
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-09Rollup merge of #117724 - Kobzol:shim-error-message, r=onur-ozkanTakayuki Maeda-1/+3
Restore rustc shim error message Fixes: https://github.com/rust-lang/rust/pull/117595#discussion_r1382482249 The error message was originally introduced in https://github.com/rust-lang/rust/pull/111323, and subsequently broken by my change in https://github.com/rust-lang/rust/pull/116448. r? ``@onur-ozkan``
2023-11-09Rollup merge of #117723 - onur-ozkan:keep-bootstrap-on-x-clean, r=albertlarsan68Takayuki Maeda-1/+0
speed up `x clean` Since `x clean` runs with bootstrap, we can speed up this process by avoiding the cleaning of bootstrap artifacts, as they are not necessarily needed to be cleaned. ref #https://github.com/rust-lang/rust/issues/117653#issuecomment-1802482768
2023-11-08Auto merge of #117454 - shepmaster:github-actions-m1-tests, ↵bors-0/+47
r=GuillaumeGomez,onur-ozkan Run tests in CI for aarch64-apple-darwin r? `@ghost`
2023-11-08Restore rustc shim error messageJakub Beránek-1/+3
2023-11-08speed up `x clean`onur-ozkan-1/+0
Since `x clean` runs with bootstrap, we can speed up this process by avoiding the cleaning of bootstrap artifacts, as they are not necessarily needed to be cleaned. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-08Rollup merge of #117263 - onur-ozkan:change-id-fix, r=saethlinGuillaume Gomez-24/+40
handle the case when the change-id isn't found When we switch back and forth between the old and recent branches, if there was a breaking change in the bootstrap configuration in between, we have to update the change-id in the build configuration with each checkout, which can be exhausting. This change fixes that. r? saethlin
2023-11-08Update exploit mitigations documentationRamon de C Valle-60/+62
Updates the rustc book with most up to date information about exploit mitigations supported by the Rust compiler.
2023-11-08Run tests in CI for aarch64-apple-darwinJake Goulding-0/+19
2023-11-08Install tidy for aarch64-apple-darwinJake Goulding-0/+28
The GitHub Actions image has this preinstalled for x86_64 but not M1.
2023-11-08bootstrap: add more detail on change-id commentsonur-ozkan-4/+7
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-08bootstrap: improve `fn check_version`onur-ozkan-21/+21
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-08handle the case when the change-id isn't foundonur-ozkan-12/+25
When we switch back and forth between the old and recent branches, if there was a breaking change in the bootstrap configuration in between, we have to update the change-id in the build configuration with each checkout, which can be exhausting. This change fixes that. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-08Rollup merge of #117700 - Zalathar:rename-run-coverage, r=onur-ozkanMatthias Krüger-24/+24
coverage: Rename the `run-coverage` test mode to `coverage-run` Follow-up to https://github.com/rust-lang/rust/pull/117484#issuecomment-1788916563. Renaming this test mode to `coverage-run` makes it more consistent with the `coverage-map` mode and the shared `tests/coverage` test directory. --- ``@rustbot`` label +A-code-coverage
2023-11-08Rollup merge of #117667 - Alexendoo:doc-clippy-config, r=albertlarsan68Matthias Krüger-1/+1
Document clippy_config in nightly-rustc docs A new clippy crate added in https://github.com/rust-lang/rust-clippy/pull/11685
2023-11-08Rollup merge of #117663 - klensy:bump-deps, r=davidtwcoMatthias Krüger-38/+4
bump some deps * drop `num_cpus` from rust-installer as not used * update `rayon`, `rayon-core`, which drops it's deps on `num_cpus` and `crossbeam-channel` (for bootstrap too) (https://github.com/rayon-rs/rayon/blob/v1.8.0/RELEASES.md) * update `errno`, which drops `errno-dragonfly` (https://github.com/lambda-fairy/rust-errno/blob/5341791935df601306ffc57a665763c4ecd72755/CHANGELOG.md)
2023-11-08Rollup merge of #117531 - ↵Matthias Krüger-6/+3
fmease:rustdoc-effects-properly-elide-x-crate-host-args, r=GuillaumeGomez rustdoc: properly elide cross-crate host effect args Fixes FIXMEs introduced in #116670.
2023-11-08Rollup merge of #114316 - ecnelises:aix_doc, r=workingjubileeMatthias Krüger-1/+28
Add AIX platform support document
2023-11-08Auto merge of #116881 - LuuuXXX:issue-110087, r=onur-ozkanbors-29/+113
Add a new `download-ci-llvm = if-unchanged` option and enable it by default for `profile = codegen` Three tasks have been implemented here. Add a new `download-ci-llvm = if-unchange` option and enable if by default for `profile = codegen`. Include all build artifacts by traversing the llvm-project build output, Keep the downloadable llvm the same state as if you have just run a full source build. After selecting the codegen profile during ./x.py setup, the submodule will be automatically downloaded. Resolves #110087
2023-11-08Add AIX platform-support docQiu Chaofan-1/+28
2023-11-08coverage: Rename the `run-coverage` test mode to `coverage-run`Zalathar-24/+24
This makes it more consistent with the `coverage-map` mode and the shared `tests/coverage` test directory.