about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-11-11Add -Z llvm_module_flagPaul Menage-0/+68
Allow adding values to the `!llvm.module.flags` metadata for a generated module. The syntax is `-Z llvm_module_flag=<name>:<type>:<value>:<behavior>` Currently only u32 values are supported but the type is required to be specified for forward compatibility. The `behavior` element must match one of the named LLVM metadata behaviors.viors. This flag is expected to be perma-unstable.
2023-11-11Auto merge of #115694 - clarfonthey:std-hash-private, r=dtolnaybors-232/+308
Add `std::hash::{DefaultHasher, RandomState}` exports (needs FCP) This implements rust-lang/libs-team#267 to move the libstd hasher types to `std::hash` where they belong, instead of `std::collections::hash_map`. <details><summary>The below no longer applies, but is kept for clarity.</summary> This is a small refactor for #27242, which moves the definitions of `RandomState` and `DefaultHasher` into `std::hash`, but in a way that won't be noticed in the public API. I've opened rust-lang/libs-team#267 as a formal ACP to move these directly into the root of `std::hash`, but for now, they're at least separated out from the collections code in a way that will make moving that around easier. I decided to simply copy the rustdoc for `std::hash` from `core::hash` since I think it would be ideal for the two to diverge longer-term, especially if the ACP is accepted. However, I would be willing to factor them out into a common markdown document if that's preferred. </details>
2023-11-11Auto merge of #117820 - Mark-Simulacrum:bump-version, r=Mark-Simulacrumbors-1/+1
Bump nightly version https://forge.rust-lang.org/release/process.html#bump-the-stable-version-number-t-6-days-friday-the-week-before r? `@Mark-Simulacrum`
2023-11-11Bump nightly versionMark 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 #115229 - iSwapna:issue-115222-fix, r=estebankbors-3/+84
On method chain expression failure, look for missing method in earlier segments of the chain This PR tries to fix the issue: https://github.com/rust-lang/rust/issues/115222 As suggested by `@estebank` , I did the following: 1. Add new test `tests/ui/structs/method-chain-expression-failure.rs` 2. In `compiler/rusct_hir_tycheck/src/method/suggest.rs` walking up the method chain and calling `probe_for_name` with the method name. But the call fails to return `Ok`.
2023-11-10Recurse over the method chain and maintain a stack to peek at previous ↵Swapna Iyer-3/+84
receiver to align spans
2023-11-10Auto merge of #117779 - bjorn3:sync_cg_clif-2023-11-10, r=bjorn3bors-67/+961
Subtree update for rustc_codegen_cranelift Significantly improved support for simd intrinsics. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
2023-11-10Merge commit 'c84d1871dc4456539b7b578830268ab3539915d0' into ↵bjorn3-67/+961
sync_cg_clif-2023-11-10
2023-11-10Rustup to rustc 1.75.0-nightly (0f44eb32f 2023-11-09)bjorn3-6/+5
2023-11-10Sync from rust 0f44eb32f1123ac93ab404d74c295263ce468343bjorn3-1/+0
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 #117572 - RalfJung:addr_of, r=cuviperbors-6/+24
update and clarify addr_of docs This updates the docs to match https://github.com/rust-lang/reference/pull/1387. Cc `@rust-lang/opsem` `@chorman0773` not sure if you had anything else you wanted to say here, I'd be happy to get your feedback. :) Fixes https://github.com/rust-lang/rust/issues/114902, so Cc `@joshlf`
2023-11-10mention null explicitlyRalf Jung-2/+2
Co-authored-by: Josh Stone <cuviper@gmail.com>
2023-11-10Auto merge of #117750 - klensy:icu-followup, r=Nilstriebbors-27/+18
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-10Auto merge of #117769 - matthiaskrgr:rollup-4efjlg3, r=matthiaskrgrbors-229/+442
Rollup of 6 pull requests Successful merges: - #114191 (Update exploit mitigations documentation) - #117039 (Clarify UB in `get_unchecked(_mut)`) - #117730 (Closure-consuming helper functions for `fmt::Debug` helpers) - #117741 (Fix typo in internal.rs) - #117743 (Suggest removing `;` for `;` within let-chains) - #117751 (rustdoc-json: Fix test so it actually checks things) r? `@ghost` `@rustbot` modify labels: rollup
2023-11-10Rollup merge of #117751 - aDotInTheVoid:unkind, r=GuillaumeGomezMatthias Krüger-2/+3
rustdoc-json: Fix test so it actually checks things After #111427, no item has a `kind` field, so these assertions could never fail. Instead, assert that those two items arn't present. r? `@GuillaumeGomez`
2023-11-10Rollup merge of #117743 - sjwang05:issue-117720, r=estebankMatthias Krüger-4/+97
Suggest removing `;` for `;` within let-chains Fixes #117720
2023-11-10Rollup merge of #117741 - eltociear:patch-23, r=compiler-errorsMatthias Krüger-1/+1
Fix typo in internal.rs covert -> convert
2023-11-10Rollup merge of #117730 - jmillikin:fmt-debug-helper-fns, r=cuviperMatthias Krüger-13/+136
Closure-consuming helper functions for `fmt::Debug` helpers ACP: https://github.com/rust-lang/libs-team/issues/288 Tracking issue: https://github.com/rust-lang/rust/issues/117729
2023-11-10Rollup merge of #117039 - scottmcm:clarify-get-unchecked, r=cuviperMatthias Krüger-0/+10
Clarify UB in `get_unchecked(_mut)` Inspired by #116915, it was unclear to me what exactly "out-of-bounds index" means in `get_unchecked`. One could [potentially](https://rust.godbolt.org/z/hxM764orW) interpret it that `get_unchecked` is just another way to write `offset`, but I think `get_unchecked(len)` is supposed to be UB even though `.offet(len)` is well-defined (as is `.get_unchecked(..len)`), so write that more directly in the docs. **libs-api folks**: Can you confirm whether this is what you expect this to mean? And is the situation any different for `<*const [T]>::get_unchecked`?
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-10Closure-consuming helper functions for `fmt::Debug` helpersJohn Millikin-13/+136
2023-11-09Auto merge of #117727 - saethlin:inline-derived-fmt, r=nnethercotebors-3/+23
Emit #[inline] on derive(Debug) While working on https://github.com/rust-lang/rust/pull/116583 I noticed that the `cross_crate_inlinable` query identifies a lot of derived `Debug` impls as a MIR body that's little more than a call, which suggests they may be a good candidate for `#[inline]`. So here I've implemented that change specifically. It seems to provide a nice improvement to build times.
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-09Emit #[inline] on derive(Debug)Ben Kimock-3/+23
2023-11-09Auto merge of #117712 - lcnr:expand-coroutine, r=jackh726bors-91/+140
generator layout: ignore fake borrows fixes #117059 We emit fake shallow borrows in case the scrutinee place uses a `Deref` and there is a match guard. This is necessary to prevent the match guard from mutating the scrutinee: https://github.com/rust-lang/rust/blob/fab1054e1742790c22ccc92a625736d658363677/compiler/rustc_mir_build/src/build/matches/mod.rs#L1250-L1265 These fake borrows end up impacting the generator witness computation in `mir_generator_witnesses`, which causes the issue in #117059. This PR now completely ignores fake borrows during this computation. This is sound as thse are always removed after analysis and the actual computation of the generator layout happens afterwards. Only the second commit impacts behavior, and could be backported by itself. r? types
2023-11-09fmtPietro Albini-4/+1
2023-11-09Auto merge of #117734 - nnethercote:rm-Zstrip, r=davidtwcobors-12/+2
Remove `-Z strip`. It was stabilized as `-C strip` in November 2021. The unstable option was kept around as a temporary measure to ease the transition. Two years is more than enough! r? `@tmandry`
2023-11-09rustdoc-json: Fix test so it actuall checks thingsAlona Enraght-Moony-2/+3
After #111427, no item has a `kind` field, so these assertions could never fail. Instead, assert that those two items arn't present.
2023-11-09bump few ICU4X leftover depsklensy-27/+18
implements https://github.com/rust-lang/rust/pull/117632#issuecomment-1795027801 suggestion
2023-11-09Auto merge of #117632 - Nilstrieb:icup, r=davidtwcobors-898/+286
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-09Suggest fix for ; within let-chainssjwang05-4/+97
2023-11-09Fix typo in internal.rsIkko Eltociear Ashimine-1/+1
covert -> convert
2023-11-09Auto merge of #117736 - TaKO8Ki:rollup-fjrtmlb, r=TaKO8Kibors-74/+152
Rollup of 6 pull requests Successful merges: - #116762 (Fixup `Atomic*::from_ptr` safety docs) - #117645 (Extend builtin/auto trait args with error when they have >1 argument) - #117694 (Move `BorrowedBuf` and `BorrowedCursor` from `std:io` to `core::io`) - #117705 (triagebot.toml: use inclusive language) - #117723 (speed up `x clean`) - #117724 (Restore rustc shim error message) r? `@ghost` `@rustbot` modify labels: rollup
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-09Rollup merge of #117705 - tshepang:patch-2, r=NilstriebTakayuki Maeda-1/+1
triagebot.toml: use inclusive language
2023-11-09Rollup merge of #117694 - jmillikin:core-io-borrowed-buf, r=m-ou-seTakayuki Maeda-22/+31
Move `BorrowedBuf` and `BorrowedCursor` from `std:io` to `core::io` Tracking issue: https://github.com/rust-lang/rust/issues/117693 ACP: https://github.com/rust-lang/libs-team/issues/290
2023-11-09Rollup merge of #117645 - compiler-errors:auto-trait-subst, r=petrochenkovTakayuki Maeda-6/+36
Extend builtin/auto trait args with error when they have >1 argument Reuse `extend_with_error` to add error args to any auto trait (or built-in trait like `Copy` that is defined incorrectly) that has additional non-`Self` args. Fixes #117628
2023-11-09Rollup merge of #116762 - WaffleLapkin:fixup_fromptr_docs, r=RalfJungTakayuki Maeda-43/+81
Fixup `Atomic*::from_ptr` safety docs See https://github.com/rust-lang/rust/pull/115719#issuecomment-1762725010 cc ``@RalfJung``
2023-11-09Auto merge of #117557 - Zoxc:panic-prio, r=petrochenkovbors-14/+30
Make `FatalErrorMarker` lower priority than other panics This makes `FatalErrorMarker` lower priority than other panics in a parallel sections. If any other panics occur, they will be unwound instead of `FatalErrorMarker`. This ensures `rustc` will exit with the correct error code on ICEs. This fixes https://github.com/rust-lang/rust/issues/116659.