summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2024-10-15Auto merge of #131742 - flip1995:clippy-stable-backport, r=Mark-Simulacrum 1.82.0bors-1/+1
[stable] Clippy: Move `too_long_first_doc_paragraph` to `nursery` r? `@cuviper` See: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/too_long_first_doc_paragraph.20to.20nursery.3F/near/476448239
2024-10-15Move `too_long_first_doc_paragraph` to `nursery`Philipp Krones-1/+1
2024-10-14Auto merge of #131695 - cuviper:stable-1.82.0, r=cuviperbors-2/+189
[stable] Prepare Rust 1.82.0 r? ghost
2024-10-14bump channel to stableJosh Stone-1/+1
2024-10-14Sync release notes from master and #131137Josh Stone-1/+188
2024-10-12Auto merge of #131423 - cuviper:beta-next, r=cuviperbors-32/+251
[beta] backports - Only add an automatic SONAME for Rust dylibs #130960 - Reject leading unsafe in `cfg!(...)` and `--check-cfg` #131057, resolving https://github.com/rust-lang/rust/issues/131055 - Disable jump threading `UnOp::Not` for non-bool #131201 - Update LLVM submodule #131448 - Split x86_64-msvc-ext into two jobs #130072 - Use a small runner for msvc-ext2 job #130151 r? ghost
2024-10-11Use small runner for msvc-ext2 jobChris Denton-1/+5
(cherry picked from commit ebe4fc4e1269157e018cc127d69c8128d1a56702)
2024-10-11Fix bash syntaxChris Denton-1/+1
(cherry picked from commit 0d94e6bac90a804041cf1847e034001b7517e29a)
2024-10-11Fix checktools.sh non-msvc buildsChris Denton-6/+7
(cherry picked from commit 2f6307d1cca53c153bddee83f4331fe979c61fe4)
2024-10-11Split x86_64-msvc-ext into two jobsChris Denton-5/+21
(cherry picked from commit 7358429c00bb874420866d5f78b7166e79ad9f1f)
2024-10-11Update LLVM submoduleDianQK-1/+1
(cherry picked from commit e1c0f0488bb1eda68e45ff58c0eb5ce411a62275)
2024-10-11Disable jump threading UnOp::Not for non-boolMichael Goulet-2/+55
(cherry picked from commit f0bfba258330884df9c9d14a0aafd741ca9bbdc9)
2024-10-11Failing diff testMichael Goulet-0/+58
(cherry picked from commit 9c91a4ef1652e5f01742185f43541ab22e6f01db)
2024-10-08Reject leading unsafe in `cfg!(...)` and `--check-cfg`.Urgau-5/+33
(cherry picked from commit 9cb540a13cb2249754ea3e755cb1472151d061db)
2024-10-08Only add an automatic SONAME for Rust dylibsJosh Stone-21/+80
(cherry picked from commit f46057bf1cc0dc24a0ecd7d87c9c93872e685253)
2024-09-27Auto merge of #130888 - cuviper:beta-next, r=cuviperbors-91/+145
[beta] backports - Use equality when relating formal and expected type in arg checking #129317 - Don't call `extern_crate` when local crate name is the same as a dependency and we have a trait error #130275 - bootstrap: Set the dylib path when building books with rustdoc #130536 r? cuviper
2024-09-26bootstrap: Set the dylib path when building books with rustdocJosh Stone-9/+11
The library path is needed when the toolchain has been configured with `[rust] rpath = false`. Otherwise, building the reference book will get an error when it tries to run rustdoc, like: rustdoc: error while loading shared libraries: librustc_driver-2ec457c3b8826b72.so (cherry picked from commit de4c8975aaa05063129196e470d3dcf7558f19b1)
2024-09-26Don't call extern_crate when local crate name is the same as a dependency ↵Michael Goulet-0/+40
and we have a trait error (cherry picked from commit 9d5d03b7dec8a87c81528e9a1310313fa3f0111e)
2024-09-26Inline expected_inputs_for_expected_output into ↵Michael Goulet-77/+71
check_argument_types/check_expr_struct_fields (cherry picked from commit 95b9ecd6d671637e9e3db55ed31d06882d3cad4d)
2024-09-26Use equality when relating formal and expected type in arg checkingMichael Goulet-5/+23
(cherry picked from commit c3f9c4f4d4bbc83c7de79a09c7ec0e7fda8efc5e)
2024-09-21Auto merge of #130569 - cuviper:beta-next, r=cuviperbors-469/+213
[beta] backports - Don't warn empty branches unreachable for now #129103 - Win: Add dbghelp to the list of import libraries #130047 - `RepeatN`: use MaybeUninit #130145 - Update LLVM to 19 327ca6c #130212 - Revert #129749 to fix segfault in LLVM #130477 - Check params for unsafety in THIR #130531 r? cuviper try-job: dist-various-1
2024-09-20Limit `run-make` tests using `-Zbuild-std` to nightlyJosh Stone-0/+2
See https://github.com/rust-lang/rust/issues/130634
2024-09-19Check params for unsafety in THIRMichael Goulet-0/+52
(cherry picked from commit 12f2bcde63285bf2b2f9f9ac615d4edf139a3f0e)
2024-09-19Revert "Rollup merge of #129749 - krasimirgg:llvm-20-lto, r=nikic"Tyler Mandry-7/+3
This reverts commit 8c7a7e346be4cdf13e77ab4acbfb5ade819a4e60, reversing changes made to a00bd75b6c5c96d0a35afa2dc07ce3155112d278. (cherry picked from commit 472fef6a70d6621611a20f13f02c16be93589f5c)
2024-09-19Update LLVM to 19 327ca6cDianQK-0/+0
(cherry picked from commit 7c692e13b171c04b6bb6baa4d5aa138beecf8da8)
2024-09-18`RepeatN`: use MaybeUninitDeadbeef-15/+69
(cherry picked from commit 4c8b84ae82ce66ea62e323c8dff68475d5d375b3)
2024-09-18Win: Add dbghelp to the list of import librariesChris Denton-0/+1
(cherry picked from commit 8966207afd038cbef4b951ce2a58351e2a66b8fe)
2024-09-18Revert warning empty patterns as unreachableNadrieril-447/+86
(cherry picked from commit 5b7be148ea0128daad309cf5a123c868a65d7737)
2024-09-09Auto merge of #130045 - BoxyUwU:bump-beta-bootstrap, r=cuviperbors-444/+342
[beta] bump stage0 bumps stage0 to stable 1.81.0
2024-09-06bump stage0Boxy-444/+342
2024-09-04Auto merge of #129961 - pietroalbini:pa-cve-2024-43402-beta, r=Amanieubors-7/+27
[beta] Fix CVE-2024-43402 Backport the fix for CVE-2024-43402 in beta. See [GHSA-2xg3-7mm6-98jj](https://github.com/rust-lang/rust/security/advisories/GHSA-2xg3-7mm6-98jj) for more information about it. r? `@ghost`
2024-09-03More robust extension checkingChris Denton-7/+27
2024-09-03Auto merge of #129902 - BoxyUwU:beta, r=BoxyUwUbors-66/+67
[beta] Prepare Rust 1.82.0 r? `@ghost`
2024-09-02Backport #129917Boxy-0/+1
2024-09-02bump channel to betaBoxy-1/+1
2024-09-02replace placeholder versionBoxy-65/+65
2024-08-31Auto merge of #129831 - matthiaskrgr:rollup-befq6zx, r=matthiaskrgrbors-101/+559
Rollup of 11 pull requests Successful merges: - #128523 (Add release notes for 1.81.0) - #129605 (Add missing `needs-llvm-components` directives for run-make tests that need target-specific codegen) - #129650 (Clean up `library/profiler_builtins/build.rs`) - #129651 (skip stage 0 target check if `BOOTSTRAP_SKIP_TARGET_SANITY` is set) - #129684 (Enable Miri to pass pointers through FFI) - #129762 (Update the `wasm-component-ld` binary dependency) - #129782 (couple more crash tests) - #129816 (tidy: say which feature gate has a stability issue mismatch) - #129818 (make the const-unstable-in-stable error more clear) - #129824 (Fix code examples buttons not appearing on click on mobile) - #129826 (library: Fix typo in `core::mem`) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-31Rollup merge of #129826 - Alcaro:patch-1, r=workingjubileeMatthias Krüger-1/+1
library: Fix typo in `core::mem` This typo looks unnecessary
2024-08-31Rollup merge of #129824 - GuillaumeGomez:code-example-buttons-mobile, ↵Matthias Krüger-2/+8
r=notriddle Fix code examples buttons not appearing on click on mobile When browsing docs on mobile today, I realized that the buttons didn't appear when I tapped on the code example. One issue: I have no idea how to add a regression test for this case... r? ``@notriddle``
2024-08-31Rollup merge of #129818 - RalfJung:const-stability, r=compiler-errorsMatthias Krüger-6/+5
make the const-unstable-in-stable error more clear The default should be to add `rustc_const_unstable`, not `rustc_allow_const_fn_unstable`. Also I discovered our check for missing const stability attributes on stable functions -- but strangely that check only kicks in for "reachable" functions. `check_missing_stability` checks for reachability since all reachable functions must have a stability attribute, but I would say if a function has `#[stable]` it should also have const-stability attributes regardless of reachability.
2024-08-31Rollup merge of #129816 - RalfJung:tidy-feature-issue-mismatch, ↵Matthias Krüger-1/+2
r=compiler-errors tidy: say which feature gate has a stability issue mismatch This gives some valuable context to what the error is actually about :)
2024-08-31Rollup merge of #129782 - matthiaskrgr:c, r=jieyouxuMatthias Krüger-0/+54
couple more crash tests r? ```@jieyouxu```
2024-08-31Rollup merge of #129762 - alexcrichton:update-wasm-component-ld, r=jieyouxuMatthias Krüger-25/+34
Update the `wasm-component-ld` binary dependency This keeps it up-to-date by moving from 0.5.6 to 0.5.7. While here I've additionally updated some other wasm-related dependencies in the workspace to keep them up-to-date and try to avoid duplicate versions as well.
2024-08-31Rollup merge of #129684 - Strophox:miri-pass-pointer-to-ffi, r=RalfJungMatthias Krüger-17/+260
Enable Miri to pass pointers through FFI Following https://github.com/rust-lang/rust/pull/126787, the purpose of this PR is to now enable Miri to execute native calls that make use of pointers. > <details> > > <summary> Simple example </summary> > > ```rust > extern "C" { > fn ptr_printer(ptr: *mut i32); > } > > fn main() { > let ptr = &mut 42 as *mut i32; > unsafe { > ptr_printer(ptr); > } > } > ``` > ```c > void ptr_printer(int *ptr) { > printf("printing pointer dereference from C: %d\n", *ptr); > } > ``` > should now show `printing pointer dereference from C: 42`. > > </details> Note that this PR does not yet implement any logic involved in updating Miri's "analysis" state (byte initialization, provenance) upon such a native call. r? ``@RalfJung``
2024-08-31Rollup merge of #129651 - onur-ozkan:stage0-target-sanity-check, r=KobzolMatthias Krüger-8/+9
skip stage 0 target check if `BOOTSTRAP_SKIP_TARGET_SANITY` is set When adding a new target to `rustc` and extending `STAGE0_MISSING_TARGETS`, there is a chance that in the merge CI bootstrap target sanity check might fail [here](https://github.com/rust-lang/rust/blob/26d27b7c8729fb61fe8321fcd2ce734a79aa695d/src/bootstrap/src/core/sanity.rs#L243-L256) because the stage 0 compiler will assume to already support the new target since `opt-dist` uses the previously compiled compiler as the stage 0 compiler. This PR skips this check if `BOOTSTRAP_SKIP_TARGET_SANITY` is set, and makes `opt-dist` to set `BOOTSTRAP_SKIP_TARGET_SANITY` so bootstrap doesn't run this logic for opt-dist tests. Fixes https://github.com/rust-lang/rust/pull/127021#issuecomment-2308782315. Zulip thread: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/.60STAGE0_MISSING_TARGETS.60.20seems.20to.20check.20stage1 Blocker for https://github.com/rust-lang/rust/pull/127021
2024-08-31Rollup merge of #129650 - Zalathar:profiler-builtins, r=Mark-SimulacrumMatthias Krüger-28/+32
Clean up `library/profiler_builtins/build.rs` This PR makes a series of improvements to the long-neglected build script for `profiler_builtins`. Most notably: - The logic that silently skips missing source files has been removed, since it is currently unnecessary and makes build errors more confusing. - The script now emits `cargo::rerun-if-changed` directives for the `compiler-rt` source and include directories. Compiler behaviour and user programs should be unaffected by these changes.
2024-08-31Rollup merge of #129605 - jieyouxu:needs-llvm-components, r=Mark-SimulacrumMatthias Krüger-13/+40
Add missing `needs-llvm-components` directives for run-make tests that need target-specific codegen Without suitable `needs-llvm-components` directives, some run-make tests exercising target-specific codegen can fail if the LLVM used is built without the necessary components. Currently, the list is: ``` tests\run-make\print-target-list tests\run-make\print-to-output tests\run-make\print-cfg tests\run-make\target-without-atomic-cas ``` This PR also skips tidy checks for revisions and `needs-llvm-components` for run-make tests since revisions are not supported. Fixes #129390. Fixes #127895. cc ``@petrochenkov`` who noticed this, thanks! Would be great if you could confirm that this fixes the test errors for you locally.
2024-08-31Rollup merge of #128523 - cuviper:relnotes-1.81.0, r=Mark-SimulacrumMatthias Krüger-0/+114
Add release notes for 1.81.0 cc ``@rust-lang/release`` r? ``@Mark-Simulacrum``
2024-08-31Update mod.rsAlcaro-1/+1
This typo looks unnecessary
2024-08-31Auto merge of #129817 - matthiaskrgr:rollup-ll2ld5m, r=matthiaskrgrbors-3490/+11015
Rollup of 12 pull requests Successful merges: - #129659 (const fn stability checking: also check declared language features) - #129711 (Expand NLL MIR dumps) - #129730 (f32 docs: define 'arithmetic' operations) - #129733 (Subtree update of `rust-analyzer`) - #129749 (llvm-wrapper: adapt for LLVM API changes) - #129757 (Add a test for trait solver overflow in MIR inliner cycle detection) - #129760 (Make the "detect-old-time" UI test more representative) - #129767 (Remove `#[macro_use] extern crate tracing`, round 4) - #129774 (Remove `#[macro_use] extern crate tracing` from rustdoc and rustfmt) - #129785 (Miri subtree update) - #129791 (mark joboet as on vacation) - #129812 (interpret, codegen: tweak some comments and checks regarding Box with custom allocator) Failed merges: - #129777 (Add `unreachable_pub`, round 4) r? `@ghost` `@rustbot` modify labels: rollup