diff --git a/library/std/src/sync/mutex.rs b/library/std/src/sync/mutex.rs index d417034f5af85..ee60a720ef8b2 100644 --- a/library/std/src/sync/mutex.rs +++ b/library/std/src/sync/mutex.rs @@ -183,8 +183,35 @@ pub struct Mutex { // these are the only places where `T: Send` matters; all other // functionality works fine on a single thread. + +/// SAFETY +/// +/// - impl Send for Mutex +/// +/// Mutex is a container that wraps `T`, so it's necessary for `T` to be `Send` +/// to safely send `Mutex` to another thread. This ensures that the protected +/// data can be accessed safely from multiple threads without causing data races +/// or other unsafe behavior. + +/// +/// - impl Sync for Mutex +/// +/// `Mutex` provides mutable access to `T` to one thread at a time. However, it's essential +/// for `T` to be `Send` because it's not safe for non-`Send` structures to be accessed in +/// this manner. For instance, consider `Rc`, a non-atomic reference counted smart pointer, +/// which is not `Send`. With `Rc`, we can have multiple copies pointing to the same heap +/// allocation with a non-atomic reference count. If we were to use `Mutex>`, it would +/// only protect one instance of `Rc` from shared access, leaving other copies vulnerable +/// to potential data races. + +/// It's important to note that `Mutex` can be `Sync` even if its inner type `T` +/// is not `Sync` itself. This is because `Mutex` provides a safe interface for +/// accessing `T` through locking mechanisms, ensuring that only one thread can +/// access `T` at a time. +/// #[stable(feature = "rust1", since = "1.0.0")] unsafe impl Send for Mutex {} + #[stable(feature = "rust1", since = "1.0.0")] unsafe impl Sync for Mutex {} diff --git a/tatus b/tatus new file mode 100644 index 0000000000000..28ff340e9d89c --- /dev/null +++ b/tatus @@ -0,0 +1,871 @@ +0f147d8fba9e (HEAD -> master, origin/master, origin/HEAD) Merge branch 'rust-lang:master' into master +3139ff09e9d0 (upstream/master) Auto merge of #128861 - khuey:mir-inlining-parameters-debuginfo, r=wesleywiser +026e9ed3f0c5 Auto merge of #128037 - beetrees:repr128-c-style-use-natvis, r=michaelwoerister +c416a6fc7365 Auto merge of #129066 - weihanglo:update-cargo, r=weihanglo +0ba9db87e61a Auto merge of #129108 - matthiaskrgr:rollup-t4rjwgp, r=matthiaskrgr +e14f171e96f3 Rollup merge of #129100 - ehuss:fix-dependencies-update, r=Kobzol +c582c0c13701 Rollup merge of #129067 - cuviper:append, r=wesleywiser +d14fa852c7f4 Rollup merge of #129015 - rustbot:docs-update, r=ehuss +6c242a0da442 Rollup merge of #128963 - GuillaumeGomez:output-to-stdout, r=aDotInTheVoid +cd1b42c3e9a2 Rollup merge of #128946 - orlp:faster-ip-hash, r=joboet +9938349c7167 Rollup merge of #128925 - dingxiangfei2009:smart-ptr-helper-attr, r=compiler-errors +442ba180d656 Rollup merge of #127905 - BKPepe:powerpc-muslspe, r=wesleywiser +0bed4d1f1c87 Rollup merge of #125970 - RalfJung:before_exec, r=m-ou-se +13a52890dde8 Auto merge of #128407 - Oneirical:feline-dotestication, r=jieyouxu +4a2d0d9233b8 Fix dependencies cron job +e29360ce4d42 Update Cargo.lock +b85bedcb24e3 rewrite no-alloc-shim to rmake +5e04cefb0115 rewrite min-global-align to rmake +355a307a8740 Auto merge of #129092 - jieyouxu:rollup-z2522nm, r=jieyouxu +4d8c0b3b5dc6 Rollup merge of #129088 - Jaic1:fix-doc, r=GuillaumeGomez +7472d1bbaf1a Rollup merge of #129071 - Zalathar:sysroot-unstable, r=jieyouxu +220091065939 Rollup merge of #129059 - compiler-errors:subtyping-correct-type, r=lcnr +049b3e549ebb Rollup merge of #128954 - zachs18:fromresidual-no-default, r=scottmcm +59ad2aec492d Rollup merge of #128828 - lcnr:search-graph-11, r=compiler-errors +196d256b2022 Rollup merge of #128570 - folkertdev:stabilize-asm-const, r=Amanieu +5ae03863ded6 CommandExt::before_exec: deprecate safety in edition 2024 +0f442e265c16 Auto merge of #129054 - lnicola:sync-from-ra, r=lnicola +fbce03b195c0 Auto merge of #129060 - matthiaskrgr:rollup-s72gpif, r=matthiaskrgr +8557b56ec7ed Add `|` to make the html doc of `Level` rendered correctly +9859bf27fd98 Auto merge of #129076 - matthiaskrgr:rollup-rg8mi2x, r=matthiaskrgr +e01d6141a403 Rollup merge of #129062 - Nadrieril:fix-129009, r=compiler-errors +cd6852b9ea77 Rollup merge of #129061 - compiler-errors:lang-item, r=Urgau +a4261a0bc055 Rollup merge of #129001 - cblh:fix/128713, r=Noratrieb +f4c860a99641 Rollup merge of #128873 - ChrisDenton:windows-targets, r=Mark-Simulacrum +85180cd365f2 Rollup merge of #128759 - notriddle:notriddle/spec-to-string, r=workingjubilee,compiler-errors +2cb59087dbbb Rollup merge of #128410 - Oneirical:dwarf-fortestress, r=jieyouxu +e9c965df7b75 Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors +342b37404303 Port `run-make/sysroot-crates-are-unstable` to rmake +ce67e68cce3f Update `indexmap` and use `IndexMap::append` +822961f2920b Update cargo +e5b3e68abf17 Auto merge of #126245 - GuillaumeGomez:doctest-improvement-v2, r=t-rustdoc +8419c0956e1c stabilize `asm_const` +249a588cadc3 Remove a no-longer-true `assert` +bac19686a5f7 Use is_lang_item more +0a34ce49ceab Add and use `IndexVec::append` +5df13af56fb1 Use the right type when coercing fn items to pointers +850bcbdc2e18 Test showing previous behavior +24a46c57aebd Rollup merge of #129058 - michaelwoerister:mwback082024, r=jackh726 +c013e2c3df97 Rollup merge of #129056 - Kobzol:fix-target-triple, r=onur-ozkan +5ef33d4c6168 Rollup merge of #129050 - GuillaumeGomez:generate-link-to-definition-warning, r=notriddle +65054ed35ede Rollup merge of #129049 - Zalathar:json-like, r=jieyouxu +d4f5a89f6e9f Rollup merge of #129034 - henryksloan:coroutine-must-use, r=joboet +f68a28d95c47 Rollup merge of #127857 - tbu-:pr_deprecated_safe_todo, r=petrochenkov +bc9c31df69f0 Rollup merge of #122884 - mzabaluev:pow-remove-exit-branch, r=Amanieu +fe4fa2f1dad8 Use the `enum2$` Natvis visualiser for repr128 C-style enums +5082e2526306 Add mw back to review rotation +05fb8ff4f560 Fix intra-doc link +1d75f78ea26f Ignore cross compile check for `tests/run-make/doctests-keep-binaries-2024` test +488614d2dd0f Update `tests/run-make/doctests-keep-binaries-2024/rmake.rs` test to new run-make API +f1c1c4921637 Run fmt +a708d0bc779a Fix commands syntax in rustdoc-ui tests +903d2db4d22e Only keep "useful" code in `tests/rustdoc-ui/2024-doctests-checks.rs` +7dcb841de040 Add doctest to ensure that doctests with crate-level attributes are not part of merged doctest +cbf6fe05e78c Add more merged doctests tests +c9f730e2236a Improve documentation for internal doctest API +baf8ce83b82d Move `is_multiple_tests` argument into `RunnableDocTest` +ab3d90e037a3 Unify naming of `DocTest` +4b1db071d13a Don't special-case if there is only one merged doctest +72aeffa78ccc Remove need for `unsafe` code in merged doctests +a3bc2c747866 Improve code readability +0fbc32ce42ac If there are crate attributes, we prevent doctest to be merged with others +ffc18c5cfb4d Rename `DocTest` into `DocTestBuilder` +1e1743a37988 Reduce merged doctest source code size +d512438435aa Run mergeable doctest as part of standalone doctests if there is only one +bfabf1db4463 Add documentation on `DocTest` and `RunnableDoctest` structs +6d552ba44698 Improve code by removing unneeded function arguments +84d9b67dabd1 Add 2024 edition doctests to cover corner cases +14f80f9e69be Correctly handle macros using `$crate` in merged doctests +112e44740e83 Disable merged doctests by default +0bd2c99ce8a3 Only show rustdoc doctest compilation output if `nocapture` is used +c5ae545fbd28 If no argument is provided to merged doctests binary, they will be run in the same process (needed for miri) +ec4d9101907b Correctly handle `internal_features` attribute +475824d8110f Mark location doctest as standalone since file information will not work in merged doctest file +995858eed36f Don't change indent in merged doctests +0f0681e941f7 Make merged doctests run in their own process +dcc77b4cbcaf Fix weird memory allocation failure in merged doctests by storing doctest list into a const +b6831bbdda3a Don't merge doctests with `#[global_allocator]` +6eabffbaec94 Greatly improve handling of doctests attributes, making it possible to merge doctests more efficiently +03118fa80a95 Simplify `has_main_fn` to be a boolean instead of a `Option` +010731d5b6d3 Add new `run-make` tests for doctests +2fd8d1c1cee3 Add/update `rustdoc-ui` tests to check new merged doctests +7ec3cabe1776 Correctly handle doctests with invalid AST +59a9e0986d06 Correctly handle the case where there is no doctests to run +a0ae8ac861d5 If there is any AST error with a doctest, we make it a standalone test +b7079c5c8341 Prevent merged doctests to break stdin if the generated file is too big +23badff4fef4 Add documentation for the doctest `standalone` attribute +3147520d3475 Add new doc codeblock `standalone` attribute +58cd70e06256 Only merge doctests starting 2024 edition +6ae35248358f Split doctests into two categories: mergeable ones and standalone ones +96051f20e212 Split standalone and mergeable doctests +39f029a85241 Split doctests between standalone and mergeable ones +7d724824315c Simplify doctest tests +5e244370fe1a Add `DocTest` type +05fbfde17d34 Clean up rustdoc make_test function code +c6fb0f344e0c diagnostics: use `DeepRejectCtxt` for check +87a4c325d276 Fix target triple in bootstrap +0aa17a4c4de2 implement a performant and fuzzed solver cache +f96e296927cc Auto merge of #17880 - lnicola:sync-from-rust, r=lnicola +28af7e09581c Merge from rust-lang/rust +ddb8551e03a1 Preparing for merge from rust-lang/rust +00423bb1d85f Auto merge of #17853 - ShoyuVanilla:min-exhaustive-pat, r=ShoyuVanilla +4ea0db907cf3 Bump `rustc_pattern_analysis` +6911d9f0664a Temporarily remove non-working test case +20971602d538 feat: `min-exhaustive-patterns +afbab80681de Update rustdoc-ui test for `--generate-link-to-definition` option +d2177d90b04e Emit a warning instead of an error if `--generate-link-to-definition` is used with other output formats than HTML +53e87d211ca3 Remove duplicated rustdoc ui test +80eb5a8e910e Auto merge of #129046 - matthiaskrgr:rollup-9x4xgak, r=matthiaskrgr +355f264d32cf Remove a confusing comment +2a000c8d7073 Don't panic on unknown JSON-like output lines +42f70c240a4d Rollup merge of #129040 - Zalathar:bless-rmake, r=jieyouxu +41aa9631ef43 Rollup merge of #129026 - rcvalle:rust-cfi-move-cfi-ui-tests-to-cfi-directory, r=compiler-errors +9d9c9acc6e6a Rollup merge of #128983 - Kobzol:bootstrap-target, r=onur-ozkan +0643c3b91099 Rollup merge of #128841 - lqd:rustc-args, r=onur-ozkan +37b956787a52 Rollup merge of #128745 - dtolnay:spawnunchecked, r=workingjubilee +c977deb24b11 Rollup merge of #128655 - joboet:play_with_the_dice, r=ChrisDenton +00d040e50a8a Rollup merge of #128643 - beetrees:ppc64-abi-fix, r=bjorn3 +811d7dd11302 `#[deprecated_safe_2024]`: Also use the `// TODO:` hint in the compiler error +399ef23d2bf2 Allow to customize `// TODO:` comment for deprecated safe autofix +a2e1d154d53d Auto merge of #128962 - devnexen:fs_get_mode_haiku, r=workingjubilee +1c0c2c3ad66f Implement `AsRef` for `TargetSelection` +0cfbfa953227 Create a `TargetSelection` method for recognizing `*-windows-gnu` targets +acc2c5d67ac4 Auto merge of #17876 - Veykril:semantics-include-simplify, r=Veykril +705a89e72fcd Remove unreachable logic for include token mapping +cc58cf6443a1 Fix blessing of rmake tests +6d91017b026a Extract a helper method for blessing in `Diff` +84ac708b4587 Auto merge of #17867 - ShoyuVanilla:issue-17854, r=Veykril +ac88b330b875 Revert to original loop for const pow exponents +591ecb88dffd Auto merge of #128742 - RalfJung:miri-vtable-uniqueness, r=saethlin +1e445f48d4d0 Add must_use attribute to Coroutine trait +1c5e3c90cf2d Rework MIR inlining debuginfo so function parameters show up in debuggers. +e9e27ab0cf37 Auto merge of #128868 - s7tya:port-rustc-perf-cmp-command, r=Kobzol +c4333026a008 chore(lib): fmt core::fmt::Formatter's write_fmt method +70e0f6963259 trying common codepath for every unixes +a7be5bf683be std::fs: get_mode implementation for haiku. +db5704ffca0e Auto merge of #129024 - matthiaskrgr:rollup-uj1pd0x, r=matthiaskrgr +66c93ac8bad2 CFI: Move CFI ui tests to cfi directory +522d43673a69 Rollup merge of #129017 - its-the-shrimp:core_fmt_from_fn, r=Noratrieb +0dfb5b9cb84c Rollup merge of #129013 - Kobzol:remove-unused-git-clone-sha-file, r=jieyouxu +301a4cab68e0 Rollup merge of #129000 - RalfJung:miri-bootstrap-clear, r=onur-ozkan +85eb465a1058 Rollup merge of #128912 - compiler-errors:do-not-recommend-impl, r=lcnr +4c494184725f Rollup merge of #128712 - compiler-errors:normalize-borrowck, r=lcnr +5534cb0a4a39 derive(SmartPointer): register helper attributes +1b6df71192db Explicitly specify type parameter on FromResidual impls in stdlib. +027b19fa9b85 std::fmt::FormatterFn -> std::fmt::FromFn +a719514777e9 Update books +6863db521926 Remove unused script from run-make tests +91376f416222 Auto merge of #129008 - GuillaumeGomez:rollup-6citttb, r=GuillaumeGomez +2abfa35acd11 add change tracker notice +ee5d15ce43ac regenerate `./x` completions +5e872568a8a2 rename `./x test`'s `--rustc-args` to `--compiletest-rustc-args` +0ad798aec713 remove unexpected `--rustc-args` from `./x miri` +bc9ca2902ea3 clarify that `--rustc-args` is for compiletest tests +754f565fe298 don't use `--rustc-args` to test the stdlib's size optimizations feature +83727eca2114 don't use rustflags for `--rustc-args` +99a785d62d84 Rollup merge of #128994 - nnethercote:fix-Parser-look_ahead-more, r=compiler-errors +7c6dca90509f Rollup merge of #128978 - compiler-errors:assert-matches, r=jieyouxu +bb35b888b5f9 Rollup merge of #128937 - lqd:clean-rmake-tests, r=jieyouxu +5b6379a86def Rollup merge of #128929 - saethlin:enable-codegen-units-tests, r=compiler-errors +ea74eff55ca0 Rollup merge of #128886 - GrigorenkoPV:untranslatable-diagnostic, r=nnethercote +355a23292a1c Rollup merge of #128878 - Kobzol:refactor-flags, r=onur-ozkan +aa6f240972f5 Rollup merge of #128632 - joboet:dont_overwrite_style, r=Amanieu +aea508796429 Rollup merge of #128537 - Jamesbarford:118980-const-vector, r=RalfJung,nikic +c6e3385d95ec Rollup merge of #128394 - GuillaumeGomez:run-button, r=t-rustdoc +095ca33bb6da Rollup merge of #128149 - RalfJung:nontemporal_store, r=jieyouxu,Amanieu,Jubilee +81561ff168e7 fix: Trailing excess comma in "Convert to named struct" assist +0a336b393491 Auto merge of #17865 - ShoyuVanilla:exhaust-block, r=Veykril +fe52572a4aa5 rewrite remap-path-prefix-dwarf to rmake +3bb7f35ec4ec fix: Missing non-exhaustive let diagnostics inside async or unsafe block +63ab7b59573a Add documentation for `-o -` +7882575a8cfa Add `run-make` test for `-` for `-o` option +e66f3db9fa89 Auto merge of #17864 - Veykril:lsif, r=Veykril +1b983e33c694 Build and run build scripts in lsif command +e2fd0c0f9aff Add `read_dir_entries_recursive` in `run_make_support` +18d62008d419 Add possibility to generate rustdoc JSON output to stdout +ff63552892f8 Auto merge of #17863 - Veykril:include-diags, r=Veykril +1ebd72725533 Resolve included files to their calling modules in IDE layer +bdc0b7859fd8 Auto merge of #17861 - Veykril:bump-lock, r=Veykril +9431039e8ae7 Allow new license combination +a2b10a39bcce Auto merge of #17862 - lnicola:publish-libs-members, r=lnicola +696ecea57532 Only keep lib/ in publish-libs +5e753ffe2575 Auto merge of #17850 - Veykril:rust-analyzer-crate, r=Veykril +e08b80c0fb76 Auto merge of #128371 - andjo403:rangeAttribute, r=nikic +6839a8f6d55e bootstrap: clear miri ui-test deps when miri sysroot gets rebuilt +563dc1cd3353 Auto merge of #17860 - Veykril:publish-libs, r=Veykril +234d383f5fea internal: Reply to requests with defaults when vfs is still loading +407944764ae9 fix: Fix publish libs workflow +69f613892ad9 minor: Bump lockfile +75743dc5a057 make the codegen test also cover an ill-behaved arch, and add links +72ef357ea31e chore(lib): Enhance documentation for core::fmt::Formatter's write_fmt method +7c53ff2da4d3 Auto merge of #17843 - mo8it:flycheck, r=Veykril +c2d15557885a Auto merge of #17842 - mo8it:crossbeam-channel, r=Veykril +757b0a5ace88 Auto merge of #17859 - Veykril:rustc_deprecated_safe_2024, r=Veykril +3355c788f18d fix: Correctly support `#[rustc_deprecated_safe_2024]` +f7c4716dbfd7 Use the send method +285285d3fd9c Add more track_caller +7586ba6bfb0e Add track_caller +94bd4da3f107 Revert "Remove unneeded `send` method" +4763d1220756 ignore some vtable/fn ptr equality tests in Miri, their result is not fully predictable +f860873983d1 split provisional cache and stack lookup +0c75c080a7d0 merge impl blocks +e83eacdfaa90 move behavior out of shared fn +9308401df573 tracing: debug to trace +e87157ba2a63 simplify match + move `debug!` call +51338ca0eb9a expand fuzzing support +7b86c98068f0 do not use the global solver cache for proof trees +99c0d768b039 std: use `/scheme/rand` on Redox +12a3d0112c03 Auto merge of #17833 - edevil:fix_expansion_limit, r=Veykril +8542cd67f058 std: do not overwrite style in `get_backtrace_style` +3ef56c2bb861 Auto merge of #17845 - ShoyuVanilla:tait, r=Veykril +bbd1c3ab73a9 Streamline some inputs/output traversals. +b9f3db6adb77 Give the field in `FnSigTys` a name. +f4a3ed02439a Avoid a `FnPtr` deconstruct-and-recreate. +1d8f135b20fa Auto merge of #128862 - cblh:fix/128855, r=scottmcm +9e95a2b9a5c4 Remove some unnecessary `skip_binder` calls. +46b4c5adc569 Fix bug in `Parser::look_ahead`. +13f8a57cfb57 Auto merge of #126793 - saethlin:mono-rawvec, r=scottmcm +f15997ffeca4 Remove struct_tail_no_normalization +b5d2079fb9c9 Rename normalization functions to raw +c5205e9d56d3 Normalize struct tail properly in borrowck and hir typeck +28a8301de98f Fix debuginfo providers/tests +41dd149fd6a6 Auto merge of #128677 - nikic:llvm19rc2, r=cuviper +cfadfabfcd96 Add range attribute to scalar function results and arguments +c361c924a08c Use assert_matches around the compiler +9cb1998ea15e Auto merge of #122362 - Zoxc:rustc_driver_static_std, r=oli-obk,lqd,bjorn3,Kobzol +715728f546ec Refactor `powerpc64` call ABI handling +97a6fc65f17f Fix deadlock +fce1decc3c65 Do not use unnecessary endian conversion. +5e5ec8af1b34 Auto merge of #128916 - jieyouxu:dump-ice-dump-ice, r=compiler-errors +6dc300ba4531 tests: ignore `dump-ice-to-disk` on windows +dcd6170c89ae use `rfs` in rustdoc io rmake test +c9bd03cb724e Auto merge of #128959 - matthiaskrgr:rollup-6jdqi3l, r=matthiaskrgr +2c88eb9805c1 Rollup merge of #128882 - RalfJung:local-waker-will-wake, r=cuviper +eff9120b7c50 Rollup merge of #128875 - bvanjoi:cleanup-import-used, r=petrochenkov +32e0fe129d49 Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors +bd7075c69e74 Rollup merge of #128592 - evelynharthbrooke:master, r=Mark-Simulacrum +853255e28d63 Rollup merge of #128536 - Zalathar:print-cleanup, r=Nadrieril +e8f6819db7ea Rollup merge of #120314 - mina86:i, r=Mark-Simulacrum +b22253c45489 Keep rustc's std copy +960e7b55e1b7 tests: tidy up `dump-ice-to-disk` and make assertion failures extremely verbose +dd3f7578ee52 Exclude just `std` from rustc deps +56beb1d744cf Update the unstable book +486864f23593 Don't statically link `std` into `rustc_driver` for `windows-gnu` +736a249954ae Ask the user to use `feature(rustc_private)` when linking to `rustc_driver` +3ee43259ac9d Link `std` statically in `rustc_driver` +a04a1e464f6c Fix stability annotation and expand comment +ba620344301a Hash Ipv*Addr as an integer +730d5d4095a2 Auto merge of #128572 - compiler-errors:fix-elaborate-box-derefs-on-debug, r=saethlin +04dff01740de Auto merge of #128400 - petrochenkov:nowhole3, r=bjorn3 +f4cb0de44eb2 remove other warnings from rmake tests +141d9dc3a57e remove unused imports from rmake tests +03b6c2f2d4ac Fix and enable disabled codegen-units tests +ec0306832095 Auto merge of #17844 - Veykril:find-path-std-fix, r=Veykril +04ba50e82330 Auto merge of #128927 - GuillaumeGomez:rollup-ei2lr0f, r=GuillaumeGomez +2e0f5f6336cf Auto merge of #17849 - Veykril:rust-analyzer-crate, r=Veykril +01262d972a03 Add comments regarding workspace structure change querying +e219ac64c06f Move some stuff +893b9f3a5ad6 Rollup merge of #128923 - GuillaumeGomez:negative-impls-items, r=fmease +50e9fd1a1d0c Rollup merge of #128910 - estebank:assoc-fn, r=compiler-errors +48fd9fdd4294 Rollup merge of #128909 - saethlin:run-make-ice-yes, r=jieyouxu +0d0265c1f0f6 Rollup merge of #128908 - notriddle:notriddle/self-inferred-lifetime-bounds, r=compiler-errors +ac27536258c1 Rollup merge of #128905 - mrkajetanp:gitignore-editors, r=jieyouxu +6d3f764332c5 Rollup merge of #128903 - kraktus:patch-3, r=aDotInTheVoid +a7e188a8f65c Rollup merge of #128807 - ChrisDenton:bloat, r=jieyouxu +65875b2f5a48 Rollup merge of #128273 - Voultapher:improve-ord-violation-help, r=workingjubilee +5baf7c21cfb8 Add regression tests for negative impls not showing their items +6a90be31b137 Stop showing impl items for negative impls +8291d68d926c Auto merge of #122792 - Nadrieril:stabilize-min-exh-pats2, r=fee1-dead +217ee32ac7f9 rm `import.used` +f09a2b047d9a rustc_passes: make some messages in check_attr translatable +fcdb37435af3 rustc_passes: remove a redundant `#[allow(rustc::untranslatable_diagnostic)]` +007cc2c23a05 rustc_metadata: make "link {arg,cfg} is unstable" translatable +d5486360ae21 rustc_metadata: remove a redundant `#[allow(rustc::untranslatable_diagnostic)]` +2babab6e4382 rustc_lint: remove some redundant `#[allow(rustc::untranslatable_diagnostic)]` +cbae581bb0c9 rustc_interface: remove a redundant `#[allow(rustc::untranslatable_diagnostic)]` +137307477f99 rustc_expand: make a message translatable +fbc245901561 rustc_expand: remove some redundant `#[allow(rustc::untranslatable_diagnostic)]` +f43cdcea221c rustc_borrowck: fmt +1481ab3f7557 rustc_borrowck: make "implicit static" suff translatable +1b6cc24c2055 rustc_borrowck: make some suggestion about static lifetimes translatable +446e03e3c92d rustc_borrowck: make suggestion to move closure translatable +48413cf0783e rustc_borrowck: make dereference suggestion translatable +67602980de67 rustc_ast_lowering: make asm-related unstability messages translatable +290df4fa5613 rustc_ast_lowering: make "yield syntax is experimental" translatable +334a097137eb rustc_ast_lowering: make "using `_` for array lengths is unstable" translatable +c36b21a4c8d9 rustc_attr: make "compact `cfg(target(..))` is unstable" translatable +a11922d56886 rustc_const_eval: make LazyLock suggestion translatable +3a18c6b55fa5 rustc_const_eval: make message about "const stable" translatable +43f3a218eaa3 rustc_const_eval: remove redundant `#[allow(rustc::untranslatable_diagnostic)]` +f83b085a0c62 rustc_attr: remove redundant `#[allow(rustc::untranslatable_diagnostic)]` +48090b11b52b Auto merge of #128746 - compiler-errors:cache-super-outlives, r=lcnr +e77612d3e4ff Fixes in various places +8615a6b006c4 Test that 0/unknown-length arrays are nonempty +c256de225331 Update std and compiler +99468bb7609a Update tests +cd40769c02e3 Stabilize `min_exhaustive_patterns` +cbd00f1dda7f fix: Fix find_path not respecting non-std preference config correctly +7347f8e4e007 Auto merge of #128740 - compiler-errors:generic-preds, r=estebank +18b9458d64d0 feat: Implement TAIT +19469cb536af Auto merge of #128714 - camelid:wf-struct-exprs, r=BoxyUwU +3dc083dfd80d test(std): Add codegen test for array::from_fn optimization +20a16bb3c54e Add test +ed7bdbb17b9c Store do_not_recommend-ness in impl header +69b380dc1c61 Auto merge of #128584 - DianQK:tests-for-llvm-19, r=nikic +860c8cdeafb6 Differentiate between methods and associated functions +204fb5bd4d85 Avoid the overhead of select! when possible +da15248d2607 Add an optimizer hint for the capacity that with_capacity_in returns +b44b367232ee Add a FIXME to the changed Miri test +4e98bc673013 Hoist IS_ZST check out of RawVecInner::from_*_in +d5b55436e964 Bless Miri +bd8e29c45c35 Paper over the clippy ICE +d6c0ebef5089 Polymorphize RawVec +35903a22aab2 Use select_biased +f595539b8101 Fix dump-ice-to-disk for RUSTC_ICE=0 users +4dc13c54714e diagnostics: do not warn when a lifetime bound infers itself +1c02e2b5f17f fix incorrect value +68d2e8a66e00 Auto merge of #125642 - khuey:zstd, r=Kobzol +dd90d4e122fd Simplify `check_command` while avoiding allocations +7341b88e6f1f Remove unneeded `send` method +58c614f5b489 Use crossbeam-channel from the workspace +f4b1b4bb829d Use Sender instead of boxed closure in vfs +03a7abc48fb1 Use Sender directly instead of a boxed closure +ef90df69044d Update reason why fmt-write-bloat ignores windows +2cc029edf523 Only link libc on *nix platforms +7d1de7f9942e core: optimise Debug impl for ascii::Char +6ef0ac2b5c3f gitignore: Add Zed and Helix editors +ca5d25e2c41f Auto merge of #128896 - bjorn3:sync_cg_clif-2024-08-09, r=bjorn3 +b735547025da rustdoc-json-types `Discriminant`: fix typo +19ebdcedf1f5 Auto merge of #128883 - matthiaskrgr:rollup-mkzi7my, r=matthiaskrgr +57dd967e7122 Update tidy for new cranelift-bitset crate +6e5873c08c13 Use ar_archive_writer from sysroot for cg_clif +af7ea3135deb Merge commit '69b3f5a426a5c1c05236a45b36f6679d95fbe01b' into sync_cg_clif-2024-08-09 +9a233bb9dd07 interpret: make identity upcasts a NOP again to avoid them generating a new random vtable +cea3b42f5848 Rollup merge of #128874 - Kobzol:cmd-verbose-logging, r=onur-ozkan +665a1a4b5556 Rollup merge of #128865 - jieyouxu:unicurd, r=Urgau +9eb77ac3e06d Rollup merge of #128864 - jieyouxu:funnicode, r=Urgau +2e0c5adf04fd Rollup merge of #128859 - MinxuanZ:mips-sig, r=Amanieu +2066002b8606 Rollup merge of #128852 - folkertdev:multipart-suggestion-stable-sort, r=compiler-errors +9f11eb13b803 Rollup merge of #128838 - notriddle:notriddle/invalid-tag-is-not-rust, r=GuillaumeGomez +5f1e25e65db7 Rollup merge of #128822 - onur-ozkan:add-build-config-in-tarballs, r=Kobzol +53729366a969 Rollup merge of #128817 - biabbas:vxworks_update, r=tgross35 +55329cce76bf Rollup merge of #128815 - Nadrieril:is_stolen, r=jieyouxu,lcnr +69b3f5a426a5 Couple of minor cleanups +ae09340350fd make LocalWaker::will_wake consistent with Waker::will_wake +0e20a762f12f Stop using a custom Cargo.toml and Cargo.lock for the standard library +d515e881a7b7 Disable f16 and f128 in compiler-builtins when running rustc tests +d61b0e782f1a Rustup to rustc 1.82.0-nightly (3e9bd8b56 2024-08-08) +1d19c2c00952 rustdoc: move invalid langstring test to UI +5431a93ddc1c Pass `Flags` to `Config::parse` explicitly +03ee7b59991a Move verbose help parsing to `main` +1be60b5d2b6a Fix linkchecker issue +a380d5e8f68d Do not print verbose error when a bootstrap command fails without verbose mode +8db318cc960d Install zstd in dist builder image. +7bb345e677c0 Add zlib and zstd dev packages for building lld. +9f3376eaf2d2 Test --compress-debug-sections with rust-lld. +6e9afb8dde7a Enable zstd for debug compression. +899eb03926be Auto merge of #128703 - compiler-errors:normalizing-tails, r=lcnr +a1b2b7ff78b9 Exclude windows-targets from the workspace +ce1d7d1bf2ff impl compare command and benchmark command to rustc-perf-wrapper +acb024110f33 Add windows-targets crate to std's sysroot +f72cb0415bdb Make `Build::run` comment more accurate +bee4926ae76a Auto merge of #17836 - winstxnhdw:sysroot, r=Veykril +dec5b463fbe5 do not make function addresses unique with cross_crate_inline_threshold=always (even if that breaks backtraces) +ff0d37cb0163 use absolute path for `config.toml` +a7c415c67fcb add `builder-config` into tarball sources +38874a692738 use stable sort to sort multipart diagnostics +d65f1316bba2 parser: ensure let stmt compound assignment removal suggestion respect codepoint boundaries +92520a9d4d74 tests: add regression test for #128845 +879bfd7ad0f5 hir_typeck: use `end_point` over `BytePos` manipulations +b589f86a09c8 tests: add regression test for incorrect `BytePos` manipulation triggering assertion +c4717cc9d15d Shrink `TyKind::FnPtr`. +8640998869b2 Split `split_inputs_and_output` in two. +3fc5469a8d34 Remove `Binder::split`. +97e72524a349 Auto merge of #128863 - matthiaskrgr:rollup-wmp8znk, r=matthiaskrgr +e88067927a55 Rollup merge of #128824 - GuillaumeGomez:update-compiler-builtins, r=Amanieu +521e75412f6b Rollup merge of #128823 - ChrisDenton:staticlib, r=jieyouxu +408baccd0dbd Rollup merge of #128804 - ChrisDenton:redudant, r=jieyouxu +7485f8b9abc2 Rollup merge of #128616 - compiler-errors:mir-inline-tainted, r=cjgillot +b20d9f0403f0 VxWorks: Add safety comment for vxCpuEnabledGet +bca0c5f2a939 fix: Ensure `Guard`'s `drop` method is removed at `opt-level=s` for `Copy` types +0106f5bcbab8 delete space +625432c83787 fix format +a3f8edff20a7 [SPARC] fix the name of signal 19 in sparc arch +11b801bc4e41 [MIPS] fix the name of signal 19 in mips +65b029b46803 Don't inline tainted MIR bodies +fac77538022b Auto merge of #128853 - matthiaskrgr:rollup-pr222x1, r=matthiaskrgr +9243aeecdaa0 Rollup merge of #128851 - compiler-errors:validate-mir-opt-mir, r=matthiaskrgr +58c6497e4cb5 Rollup merge of #128837 - flip1995:clippy-subtree-update, r=Manishearth +8789b95b673f Rollup merge of #128836 - its-the-shrimp:add_test_for_107278, r=aDotInTheVoid +5e388ea48e17 Rollup merge of #128834 - its-the-shrimp:fix_101105, r=aDotInTheVoid +5f0461707a10 Rollup merge of #128818 - RalfJung:std-miri-floats, r=tgross35 +f106496b8220 Rollup merge of #128806 - estebank:color-config, r=jieyouxu +bcf6f9fa76e9 Rollup merge of #128791 - compiler-errors:async-fn-unsafe, r=lcnr +95b40727bdaa Rollup merge of #128640 - RalfJung:rwlock-macos-miri, r=joboet +524e7689a9a9 Add comment that bors did not see pushed before it merged +c7b0d4e81f56 Auto merge of #128827 - weihanglo:update-cargo, r=weihanglo +a2f341392200 Merge pull request #1524 from dpaoliello/rawdylib +2756bd6ff772 Add support for raw-dylib +7c4150fce051 rustdoc: do not run doctests with invalid langstrings +fdc6a5562b07 Fix rustc test suite +c966370b1959 Tweak wording +077403a0538e minor: log error when sysroot can't be discovered +60ffec8b4a1b Rustup to rustc 1.82.0-nightly (8b3870784 2024-08-07) +3e9bd8b566a4 Auto merge of #128835 - matthiaskrgr:rollup-apzlbxy, r=matthiaskrgr +ec1c424293c0 Don't implement AsyncFn for FnDef/FnPtr that wouldnt implement Fn +8be2688e456f Update Cargo.lock +b7f07ce57af6 Merge commit 'cb806113e0f83a8f9b47d35b453b676543bcc40e' into clippy-subtree-update +cb806113e0f8 Auto merge of #13236 - flip1995:rustup, r=flip1995 +70dccc2e9b27 Rollup merge of #128826 - Alexendoo:lint-override-suggestions, r=compiler-errors +f6e00f012dfc Rollup merge of #128825 - bvanjoi:useless-resolver-field, r=petrochenkov +25fc71b7a108 Rollup merge of #128795 - zachs18:e0517-update-for-rfc-2195, r=jieyouxu +127fbc8481a1 Rollup merge of #128749 - tgross35:float-inline, r=scottmcm +53f2ac30e409 Rollup merge of #128648 - tiif:issue-125873, r=lcnr +2d7075cf0018 Rollup merge of #128612 - compiler-errors:validate-mir-opt-mir, r=davidtwco +3a9dd829d0b5 Rollup merge of #128306 - WiktorPrzetacznik:WiktorPrzetacznik-nonnull-alignoffset-update, r=Amanieu +1bf30eb5aa62 rustdoc-json: added a test for #107278 +e608b2fcf57b Bump nightly version -> 2024-08-08 +7a73a101e998 Merge remote-tracking branch 'upstream/master' into rustup +2048386fe289 Auto merge of #128639 - folkertdev:rmake-thumb-none-qemu, r=jieyouxu +85ec34182415 bump up rustc-perf's version +b9164319769c Rename struct_tail_erasing_lifetimes to struct_tail_for_codegen +c2a0d9ca6ecc rustdoc: fixed #101105 modules are now stripped based on the same logic that's used to strip other item kinds +e6d426e723dc Reuse recursion limit as expansion limit +f81549c9ca46 Normalize struct tail properly in disalignment check +d9dd5509dcf5 Normalize when computing offset_of for slice tail +85b5e42d5e5d Do normalize when computing struct tails in codegen +95c1c34fff66 review comments +82605c4b5ce5 Sync from rust 8b3870784f69d8ed2ae4246d1b56f150e3131499 +b1e87922c18f Auto merge of #13200 - Jarcho:constant_no_typeck, r=Alexendoo +ae696f847dee Split `ColorConfig` off of `HumanReadableErrorType` +e4ad36d6a8c0 Require `ConstEvalCtxt` to be constructed. +d2cb227eb458 Don't store `LateContext` in `ConstEvalLateContext` +3779062955fe Add `HasSession` trait +40a63d4f6e81 Update cargo +ffc391c76668 Auto merge of #13231 - Jarcho:no_tree_walk_in_const, r=Alexendoo +b086040121e3 Auto merge of #17832 - ShoyuVanilla:issue-17811, r=Veykril +9289f5691b29 Only suggest `#[allow]` for `--warn` and `--deny` lint level flags +ce846da6d6a1 fix: Panic while rendering function with impl trait arg +6d69b2e40833 Update compiler-builtins version to 0.1.118 +9c29e0b818a1 rm `declared_features` field in resolver +8725f7ee4c4a run-make: enable msvc for staticlib-dylib-linkage +8666a717db64 Auto merge of #17831 - Veykril:flycheck-move-to-rust-analyzer, r=Veykril +8ff6b2f16091 Split up flycheck module +1114de0c37b2 Move flycheck crate into rust-analyzer main crate +5d968705b1a1 std float tests: special-case Miri in feature detection +27ca35aa1b94 const vector passed to codegen +09ae438eb095 Add `Steal::is_stolen()` +b5c453d7a28a Add a set of tests for LLVM 19 +d3a393932eea Auto merge of #128465 - GrigorenkoPV:128200, r=estebank +2abcc6beeb6a Vxworks: Extern taskNameSet and fix build errors +1e3ea293e22f Update platform support docs for VxWorks target +fe4d83c462af Auto merge of #17827 - regexident:improve-crate-manifests-continuation, r=lnicola +5ccf5432ab98 Auto merge of #11441 - Jarcho:issue_11365, r=xFrednet +a120fb7031c7 rwlock: disable 'frob' test in Miri on macOS +3e5885f7d2ad changes after review +ae68b2fc56dd migrate `thumb-none-qemu` to rmake +bfb10f431d29 Auto merge of #13234 - Alexendoo:lintcheck-doc-links, r=xFrednet +fb1dac21ffde Fix VxWorks available parallelism: Move nonzero::uncheked into unsafe block +7869400e589c Update E0517 message to reflect RFC 2195. +9337f7afa6fd Auto merge of #128805 - tgross35:rollup-wajzi6w, r=tgross35 +36b9aee9479a Rollup merge of #128800 - clarfonthey:core-pattern-type, r=compiler-errors +fbbabb9d1514 Rollup merge of #128798 - futile:refactor/mbe-diagnostics, r=petrochenkov +f4fe5c835aaa Rollup merge of #128797 - Jeff-A-Martin:fuchsia-test-runner, r=tmandry +ca5e8a7c4dd9 Rollup merge of #128702 - yaahc:metrics-flag, r=estebank +1d820dc9a6f7 Rollup merge of #128691 - tgross35:update-builtins, r=Amanieu +6c2e06746dc1 Rollup merge of #128552 - s7tya:check-no-sanitize-attribute-pos, r=BoxyUwU +2a177c2047b8 Rollup merge of #128520 - compiler-errors:more-precisely-force-move, r=BoxyUwU +0d65e5a1806d Auto merge of #128550 - compiler-errors:shadowed-params-perf, r=petrochenkov +599bcb5cf1ea run-make: enable msvc for redundant-libs +0257f42089c1 Add tracking issue to core-pattern-type +17de8fbd068e lintcheck: disable doc links +86e7875c13f0 Auto merge of #128793 - matthiaskrgr:rollup-ork16t0, r=matthiaskrgr +5db9d4320700 Fuchsia Test Runner: enable ffx repository server +8b3870784f69 Auto merge of #128796 - matthiaskrgr:rollup-r7l68ph, r=matthiaskrgr +a70c9e1f8617 refactor(rustc_expand::mbe): Don't require full ExtCtxt when not necessary +f2deab375c9e Auto merge of #13232 - Alexendoo:path-prefix, r=flip1995 +aba506b12ae0 Rollup merge of #128782 - RalfJung:raw-addr-of-parens, r=compiler-errors +04ab8e385c0b Rollup merge of #128772 - glaubitz:sparc-elf-fix, r=nagisa +e5a3c32ffa5c Rollup merge of #128755 - yaahc:jj-crlf, r=estebank +8f5b50d4ba7c Rollup merge of #128732 - bvanjoi:immutable-import-vis, r=petrochenkov +8f39b86a6ab3 Rollup merge of #128679 - RalfJung:codegen-fn-attrs, r=nikic +e34229508a38 Rollup merge of #128353 - ferrocene:jonathanpallant/add-dependencies-to-copyright-file, r=Kobzol +2ee967833817 Rollup merge of #128261 - clarfonthey:iter-default, r=dtolnay +904f5795a0ff Rollup merge of #128221 - calebzulawski:implied-target-features, r=Amanieu +5212c759076c Add -Zerror-metrics=PATH to save diagnostic metadata to disk +d8bb3c80f5e8 Add missing `[package.description]` for 'syntax-bridge' crate +1555fd9a39c7 Make 'syntax-bridge' crate inherit `[package.repository]` from workspace +273c67db83ca codegen: better centralize function attribute computation +26787a8c0d37 Rollup merge of #128696 - Oneirical:second-linkage-rampage, r=jieyouxu +38dc3b2621aa Rollup merge of #128636 - folkertdev:rmake-thumb-none-cortex-m, r=jieyouxu +b8179000877d Rollup merge of #128384 - dheaton-arm:mte-test, r=jieyouxu +a36bf74d66d4 Rollup merge of #128363 - Oneirical:not-to-be-undertestimated, r=jieyouxu +ce20e15f01a9 Auto merge of #126158 - Urgau:disallow-cfgs, r=petrochenkov +3312f5d65244 alloc: make `to_string_str!` a bit less complex +7d1a97fae9fc rewrite pgo-indirect-call-promotion to rmake +7e5a2ea583f4 rewrite pdb-buildinfo-cl-cmd to rmake +8eaef3eca047 Add test +8225f2a79361 Add path prefixes back when compiling `clippy_dev` and `lintcheck` +8bcecfff950d Handle or patterns in `single_match` and `single_match_else` +514824ff9d6b Refactor `single_match` +2a6655a9d7ac Auto merge of #17825 - Veykril:server-things, r=Veykril +7614de46aee4 Auto merge of #17824 - ShoyuVanilla:fix-diags, r=Veykril +3e4632d99363 Offload diagnostics serialization to the task pool +e7086a35b56d Slightly quieter fatal panics +d366706cc351 Fix native diagnostics not working +8c06dc4dda85 make `import.vis` is not mutable +8d0066922b14 Auto merge of #128783 - GuillaumeGomez:rollup-2kvpg7s, r=GuillaumeGomez +920cb642a470 Rollup merge of #128758 - devnexen:vxworks_release_min, r=tgross35 +c0efd51396e8 Rollup merge of #128757 - Oneirical:calm-before-the-sltorm, r=jieyouxu +888d157417c8 Rollup merge of #128753 - compiler-errors:arbitrary-upper, r=spastorino +f739c00f4a99 Rollup merge of #128700 - Oneirical:i-ffind-these-tests-quite-simdple, r=jieyouxu +37dfe41da0da Rollup merge of #128683 - RalfJung:miri-ui-test-deps, r=onur-ozkan +a05f187b156f Rollup merge of #128656 - ChrisDenton:rust-lld, r=lqd +493233ce290e Rollup merge of #128527 - estebank:ambiguity-suggestion, r=Nadrieril +a6caceee4d32 Rollup merge of #128424 - fee1-dead-contrib:fx-clean, r=oli-obk +355eb9c79fed Rollup merge of #128206 - bjorn3:import_lib_writing_refactor, r=jieyouxu +16633a2d7b17 Replace `in_constant` with `is_in_const_context`. Use only the state in `LateContext` to avoid walking the HIR tree. +c1897960c016 unused_parens: do not lint against parens around &raw +6fc5d09ab280 Auto merge of #17823 - Veykril:mod-unconfigured-diag, r=Veykril +c4809d0d6ec1 Fix unconfigured diagnostic being attached to the wrong file for modules +359d5b92839c Auto merge of #17821 - Veykril:project-model-cleanup, r=Veykril +2b584dc777f7 bootstrap: clear miri's ui test deps when rustc changes +f1f048c9c9c7 Fix cargo config get env parsing +dbf2c126a305 Remove unnecessary CfgFlag definition in project-model +c0c57b3e2953 Disallow setting built-in cfgs via set the command-line +eedb32dd122e Make `Span` optional in `BufferedEarlyLint` +482412c98ad7 Use `TyCtxt::is_diagnostic_item` +29245ec75914 Avoid using `ty::tls::with` in `write_struct_like` +582208b0f26d Simplify hoisting of ref patterns (`&` and `&mut`) +a245bfa61792 Simplify hoisting of array/slice patterns +c4c518d2d496 Use more slice patterns inside the compiler +34cde836d501 Auto merge of #17809 - nicolas-guichard:index-vendored, r=Veykril +9bad7ba32409 Auto merge of #128196 - Oneirical:poltergeist-manitestation, r=jieyouxu +c764bea0c3d8 Simplify hoisting of struct-like patterns +a5ed6fb646f5 Split out hoisting/printing of `box` patterns +7f48851416c0 Split out a `hoist` helper in `hoist_witness_pat` +e98e19e49108 Replace an unnecessary slice pattern with `has_dot_dot: bool` +4cd800503f0c Remove an impossible case under `EnumInfo::NotEnum` +74f76ae5ea1a Unify `Variant` and `Leaf` into `print::PatKind::StructLike` +ccfd94e33473 Break up `print::Pat` printing into several helper functions +f58e737554be Update ar_archive_writer to 0.3.3 +14d020f88d88 Remove no longer used vendor intrinsic implementations +76f615ef1fbe Rustup to rustc 1.82.0-nightly (60d146580 2024-08-06) +6ef49b2ea3e8 Run abi-cafe tests for pull requests too +6b3feb49c603 Mark `{f32,f64}::{next_up,next_down,midpoint}` inline +d1d21ede8261 rustc_codegen_ssa: Set architecture for object crate for 32-bit SPARC +0713a4704508 Auto merge of #17813 - roife:fix-issue-17803, r=Veykril +c8eacd617e4a Specify a minimum supported version for VxWorks +937ef11c55cb Auto merge of #17818 - alibektas:hidden_rust_project_json, r=Veykril +6a2cd0d50c9b Auto merge of #128768 - tgross35:rollup-aaq1ny7, r=tgross35 +8818c9552821 Disallow enabling features without their implied features +0b98a0c72769 Fix typo +83276f568032 Hide implicit target features from diagnostics when possible +6b96a60611c5 Add implied features to non-target-feature functions +500671174444 Remove redundant implied features +a25da077cf76 Don't use LLVM to compute -Ctarget-feature +484aca885765 Don't use LLVM's target features +fbd618d4aa8f Refactor and fill out target feature lists +3c48f6548bce Bless tests +34f29a24bbd4 Add +sse4.2 due to #128426 +c866e1f812b7 Add missing features +520a5a535f4a Fix codegen tests +22c59529441d Add test to ensure implied target features work with asm, and fix failing tests +74653b61a67a Add implied target features to target_feature attribute +2f3dc46465c0 Auto merge of #128763 - weihanglo:update-cargo, r=weihanglo +701bc03c52fd Rollup merge of #128766 - Monadic-Cat:patch-1, r=tgross35 +6ccb3569f898 Rollup merge of #128649 - ChrisDenton:param-passing, r=jieyouxu +0761d2af6162 Rollup merge of #128647 - ChrisDenton:link-args-order, r=jieyouxu +cc42e3439186 Rollup merge of #128638 - ChrisDenton:link-dedup, r=jieyouxu +b3bfd666273d Rollup merge of #128417 - tgross35:f16-f128-math, r=dtolnay +10a7f93f12fa Rollup merge of #128362 - folkertdev:naked-function-symbol-visibility, r=bjorn3 +0aaffdb25fa8 Rollup merge of #128107 - Oneirical:tomato-hartester, r=jieyouxu +f34ff1e05a21 Trivial grammar fix in const keyword docs +51e68c3006f4 Update `compiler-builtins` to 0.1.117 +e00e42567154 Update cargo +7af01f7c90e6 Allow rust-project.json to be hidden +20c833c632d7 diagnostics: `Box` suggestion with multiple matching impl +6696447f784a Auto merge of #128761 - matthiaskrgr:rollup-5p1mlqq, r=matthiaskrgr +6ed9a33001ba Rollup merge of #128751 - devnexen:vxworks_set_thread_name, r=tgross35 +3158a86b67ad Rollup merge of #128718 - jieyouxu:check-cfg_attr, r=nnethercote +f9325b72d9cb Rollup merge of #128710 - ChrisDenton:null, r=jieyouxu +03fabc033d92 Rollup merge of #128692 - tgross35:update-triagebot, r=Mark-Simulacrum +52c365b73155 Rollup merge of #128687 - RalfJung:interpret-call-refactor, r=WaffleLapkin +f00a55188fa7 Rollup merge of #128539 - biabbas:deny_unsafe, r=workingjubilee +7e1360b1e133 Rollup merge of #128406 - lolbinarycat:bufreader_peek, r=Mark-Simulacrum +16b251be1019 Rollup merge of #125048 - dingxiangfei2009:stable-deref, r=amanieu +38e631ee04d3 Rollup merge of #124944 - estebank:multiple-crate-versions, r=fee1-dead +0ddead30f02a Auto merge of #128748 - matthiaskrgr:rollup-dzvi5f7, r=matthiaskrgr +1b587a6e7620 alloc: add ToString specialization for `&&str` +0149ba33bbfa rewrite pgo-gen-lto to rmake +b174cf827bc0 Integrate crlf directly into related test file instead via of .gitattributes +b9e8e99198a7 std::thread: set_name implementation proposal for vxWorks. +201ca3f65ce1 changes after review +c656ce7aebe2 Don't arbitrarily choose one upper bound for hidden captured region +034b73ba54f8 fix test +5ead90f13ae3 Auto merge of #12150 - ithinuel:add_misleading_use_of_ok, r=y21 +47a2f14e49ad Rollup merge of #128736 - GuillaumeGomez:fix-remap-path-prefix, r=notriddle +8912318a4cdf Rollup merge of #128720 - y21:issue119620, r=compiler-errors +4b29f42ffc21 Rollup merge of #128693 - notriddle:notriddle/impl-disambiguator-2024, r=GuillaumeGomez +fb54b45c3f2b Rollup merge of #128685 - bjorn3:rust_src_remove_leftover, r=onur-ozkan +5f9ebb5d2632 Rollup merge of #128517 - clubby789:overflowing-lit-span, r=petrochenkov +333c63b9fcf4 Rollup merge of #128377 - veera-sivarajan:fix-128249, r=davidtwco +d3d9aae96076 Rollup merge of #128369 - GrigorenkoPV:let-underscore-translatable, r=davidtwco +5e26c8d3c925 Move test to be make instead of ui +f4bad4fa3990 Change test to be only-linux and ignore-wasm32 +edd41623939c fix rebase +d8b07718f4a3 Add `help` about using `cargo tree` +ba3267321584 Add test for mixing types from two incompatible crate versions +4868680ee915 On trait bound mismatch, detect multiple crate versions in dep tree +db6c05f9b93f Maintain highlighting in `note` and `help` even when they have a span +79228526bfa3 Cache supertrait outlives of impl header for soundness check +ba3cb156cb5e Remove unused lifetime parameter from spawn_unchecked +5cab8ae4a4a0 miri: make vtable addresses not globally unique +cc96efd7e30c Stop unnecessarily taking GenericPredicates by &self +fe4cd9aa8deb rewrite long-linker-command-lines-cmd-exe to rmake +fe6feb8c6e55 rewrite long-linker-command-lines to rmake +342b807e1a34 rewrite cross-lang-lto-upstream-rlibs to rmake +608b322f4918 rewrite staticlib-dylib-linkage to rmake +9d9a0dcb6440 Auto merge of #13225 - Jarcho:warnings, r=flip1995 +f43e92b4dfe7 Add regression test for #69264 +fd89197d1bea Fix rustdoc missing handling of `remap-path-prefix` option +4e57b2c46f6f Use `-D warnings` instead of `deny-warnings` feature. +3a183256ad74 rustdoc-search: account for numeric disambiguators on impls +ac7c46651533 fix: tyck for non-ADT types when searching refs for `Self` kw +6c1d83b725e1 Include vendored crates in StaticIndex +1c2705c6229c various cleanups based on review +60d146580c10 Auto merge of #128245 - Oneirical:total-linkage-ownage, r=jieyouxu +99579f3ec1ee Apparently library/std is now part of a workspace at library/ +4e24e9b1adb8 Update to rinja 0.3 +5277b67b6977 generate-copyright: gather files inside interesting folders +30ac7c9a8177 generate-copyright: Render Node with rinja too. +37ab09010cb6 REUSE.toml: Copyright text isn't parsed as Markdown. +f7e6bf61a9c3 generate-copyright: use rinja to format the output +dbab595d78f1 generate-copyright: use cargo-metadata +56f84796a4e8 generate-copyright: Fix typo +204e3eadf132 generate-copyright: Produce HTML, not Markdown +ba0d6c973994 Update generate-copyright +a411267453b7 Auto merge of #13210 - Alexendoo:lintcheck-force-warn, r=xFrednet +5783e73f4662 make some Frame fields more private +522af10cccd9 interpret: refactor function call handling to be better-abstracted +93ea767e2928 Auto merge of #126804 - estebank:short-error-primary-label, r=davidtwco +e686ffe2de09 Auto merge of #17745 - regexident:improve-crate-manifests, r=Veykril +15982b2fcae0 rustc_errors: fix inaccurate comment +b0a89441208e rustc_errors: enforce OUTPUT_REPLACEMENTS is sorted with a compile-time assertion +54362cadba29 Auto merge of #17805 - ShoyuVanilla:issue-17578, r=Veykril +97cbc2083fd2 check_attr: treat cfg_attr like cfg +fdb64b94786a tests: add regression test to make sure `cfg_attr` isn't considered unhandled +cfb38819cca4 Auto merge of #13145 - xFrednet:07797-restriction-and-then-why, r=Jarcho +1bbaf6eb2f08 On short error format, append primary span label to message +8c7e0e160831 Auto merge of #128200 - estebank:normalize-whitespace, r=pnkfelix +c9687a95a602 Auto merge of #125558 - Amanieu:const-asm-type, r=lcnr +2f4603b71580 Test more cases of WF-checking for fields +9479792cb4e6 WF-check struct field types at construction site +18906754ccee Add test for WF check of implied unsizing in struct fields +4c6a3f4b6eb4 pass the right `ParamEnv` to `might_permit_raw_init_strict` +fdf3b31165be pass the right `ParamEnv` to `might_permit_raw_init_strict` +3fd645e25456 Check staticlib name falls back to `rust_out` +b586701f78a6 Auto merge of #128707 - matthiaskrgr:rollup-63klywk, r=matthiaskrgr +c6d94821f063 Don't ICE if getting the input's file_stem fails +584f9543ea97 Replace `[package.repository] = "…"` of published crates with `[package.repository.workspace] = true` +e15ffa5629a6 Unify package descriptions by adding references to "rust-analyzer" +08d3d44c7d5f Apply Veykril's change suggestions +ccc417791119 Replace "`ra_ap_ide`" with "`ide` (aka `ra_ap_ide`)" +54e68e6adfb5 Fix spelling of "data structure" +cc67602501c7 Fix spelling of "object-oriented" +a22691afd9e4 Fix obsolete repository URL in `[package.repository]` of `rust-analyzer` crate +163534182de2 Add repository URL for published crates' missing `[package.repository]` fields +88ea306270e6 Replace `"TBD"` with more helpful desciptions in published crates' `[package.description]` fields +c8d50ef2ee71 Windows: Test if `\\.\NUL` works as an input file +c53698b39912 Rollup merge of #128697 - RalfJung:nullary-op, r=compiler-errors +77f57cbcac3e Rollup merge of #128694 - compiler-errors:norm, r=WaffleLapkin +83155b39002b Rollup merge of #128688 - RalfJung:custom-mir-tail-calls, r=compiler-errors +9cb3688f1feb Rollup merge of #128580 - compiler-errors:cfi-param-env, r=lcnr +8cbf1c1b229e Rollup merge of #122049 - Amanieu:riscv64-musl-tier2, r=Mark-Simulacrum +46896d6f667b interpret: move nullary-op evaluation into operator.rs +e57f3090aec3 Auto merge of #128699 - RalfJung:miri-sync, r=RalfJung +4af77dfea529 implement BufReader::peek +5f6d07b64ebf Auto merge of #13222 - dtolnay-contrib:deterministic, r=flip1995 +ad4e8155baa2 fix: Panic in path transform with default type parameters +52f1ea49156b Don't skip running abi-cafe tests that give SIGILL on Windows +1054054a46b8 rewrite simd-ffi to rmake +f6edc8a07c83 update lockfile +c6f8672dd5e1 Normalize when equating dyn tails in MIR borrowck +19679510c756 add test for symbol visibility of `#[naked]` functions +a554f4d71597 Auto merge of #3789 - RalfJung:deps, r=RalfJung +c369c2034f7b Add a triagebot mention for `library/Cargo.lock` +014fdb56b455 bump dependencies +d1ad05a43a48 Auto merge of #3790 - RalfJung:ui-test-folder, r=RalfJung +b113bbec4f95 use a Miri-specific folder for ui tests +747adbdbe8fe Merge pull request #1515 from lqd/abi-cafe +f7eefec4e03f Auto merge of #128689 - matthiaskrgr:rollup-ukyn8wq, r=matthiaskrgr +9213c6c93f43 bump rustc-build-sysroot dependency +1f19cdf659f1 mark busted tests for `aarch64-apple-darwin` and `aarch64-unknown-linux-gnu` +86798401df96 Rollup merge of #128686 - onur-ozkan:unnecessary-type-cast, r=Kobzol +48e47a688984 Rollup merge of #128664 - fuzzypixelz:add-codegen-ssa-debug-impls, r=lcnr +9d924d11c4ba Rollup merge of #128631 - onur-ozkan:hotfix, r=Mark-Simulacrum +63482af9821b Rollup merge of #128559 - compiler-errors:elaborate, r=lcnr +376a6f9f431c Rollup merge of #128385 - its-the-shrimp:fix_114039, r=aDotInTheVoid +212417b87f84 custom MIR: add support for tail calls +b3df6dcb6069 ensure the download folder exists when running `abi-cafe` +9f6536ce6f51 Use a deterministic number of digits in rustc_tools_util commit hashes +ab690d31ceef fix the invalid argument type in `helpers::get_closest_merge_base_commit` +34e087890c25 Don't re-elaborated already elaborated caller bounds in method probe +e4e1b9b80525 Remove the root Cargo.lock from the rust-src component +2b78d920964e Auto merge of #124336 - compiler-errors:super-outlives, r=lcnr +20332dae2f33 rewrite cdylib-dylib-linkage to rmake +37f75693a1eb Auto merge of #17802 - Veykril:arg-mismatch-no-ty-mismatch, r=Veykril +64cd3da35da3 Auto merge of #17772 - Veykril:debug.ts, r=Veykril +3e23c4541b33 Surpress type mismatches in calls with mismatched arg counts +011727f14ebf rewrite redundant-libs to rmake +f31f8c488aa2 rewrite raw-dylib-c to rmake +131d453248b4 rewrite raw-dylib-alt-calling-conventions to rmake +7dd258a36d4a Auto merge of #17771 - Veykril:parallel-vfs-config, r=Veykril +d95a4b8d2bed Reorganize debug.ts +fa9ae7b9d3e7 Elaborate supertraits in dyn candidates +314f30167f9b Slightly optimize watch list in vfs +6a891ec4fe0d Enforce supertrait outlives obligations hold when confirming impl +81cbc780965e Auto merge of #17791 - ShoyuVanilla:await-outside-of-async, r=Veykril +22f7c0802f4c Auto merge of #17775 - ShoyuVanilla:segregate-diags, r=Veykril +c082bc2cb853 Auto merge of #13136 - xFrednet:07797-restriction-and-then, r=blyxyas +e17d254e2bd3 Auto merge of #13180 - Jarcho:deprecated_shrink, r=flip1995 +c2186e14de00 Make `cargo dev deprecate` require a reason +2c34d58159b6 Store deprecated lints as an array of tuples. Remove legacy deprecations. Remove "View Source" link for deprecated lints. +80c8786408b0 perf: Segregate syntax and semantic diagnostics +1672d5d4ed54 Mark some lint deprecations as renames +56a79223777c Auto merge of #17801 - Veykril:unbrick-metrics, r=Veykril +e611c8e1c4cc Auto merge of #13217 - dtolnay-contrib:toolsutil, r=flip1995 +92a07b8b9c6b minor: Fix metrics not running +3e809f8f1f80 feat: Implement diagnostic for `await` outside of `async` +9d99d39eaf58 Auto merge of #17799 - Veykril:syntax-bridge, r=Veykril +56fe16602867 Auto merge of #17793 - jjoeldaniel:msvc-docs, r=Veykril +83e9b93c90bc Auto merge of #127095 - Oneirical:testiary-education, r=jieyouxu +78dea2465c5b Auto merge of #17784 - Young-Flash:block_with_label, r=Veykril +f12aca95e4ba Simplify +68253247638c Auto merge of #17794 - Veykril:source-db-simplify, r=Veykril +cdee65f5ea9b Newtype ErasedFileAstId +90803b16c19d Split out syntax-bridge into a separate crate +2e7db9c69ffe Simplify FileDelegate +d84b970e6046 Auto merge of #17795 - Veykril:library-dep-loading, r=Veykril +7499e21a1ef9 rustdoc-json: discard non-local inherent impls +ef7d2c5d6534 feat: Load sysroot library via cargo metadata +61ea488309ee Emit an error for invalid use of the `#[no_sanitize]` attribute +534971826741 Update to LLVM 19 rc2 +9179d9b334e3 Auto merge of #117468 - daxpedda:wasm-relaxed-simd, r=alexcrichton +5e944bb19c65 Auto merge of #3786 - RalfJung:rustup, r=RalfJung +61463fd04252 fmt +34aa09aa53cb Merge from rustc +59cb15946df9 Prevent clicking on a link or on a button to toggle the code example buttons visibility +e2da2fb387c0 Update rustdoc tests +be71bd9cec14 Update GUI tests for code example buttons +a282e520b253 Unify run button display with "copy code" button and with mdbook buttons +697787a92d88 RISC-V also has sane nontemporal stores +28e090711107 nontemporal_store: make sure that the intrinsic is truly just a hint +d28083728d49 Preparing for merge from rustc +9411844aff6a `OperandRef` already had a `Debug` impl +b6b4e1a9c5bf add msvc note to manual +4d48a6be74d4 Auto merge of #128673 - matthiaskrgr:rollup-gtvpkm7, r=matthiaskrgr +5fa740f613b9 Rollup merge of #128660 - matthiaskrgr:niceice, r=compiler-errors +227944defdf4 Rollup merge of #128630 - bvanjoi:resolve-comment, r=petrochenkov +74df517b90c3 Rollup merge of #128619 - glandium:last_chunk, r=scottmcm +baa00e5fb24e Rollup merge of #128611 - ChrisDenton:cygpath, r=jieyouxu +1e951b70c705 Rollup merge of #128609 - swenson:smaller-faster-dragon, r=Amanieu +f23197394119 Rollup merge of #128607 - ChrisDenton:visibility, r=jieyouxu +4adefa433472 Rollup merge of #128471 - camelid:rustdoc-self, r=notriddle +02c3837d8b74 Rollup merge of #128026 - devnexen:available_parallelism_vxworks, r=Mark-Simulacrum +1737845cb41c Enable msvc for run-make/rust-lld +29e924841f06 Auto merge of #128672 - matthiaskrgr:rollup-txf7siy, r=matthiaskrgr +20480075bd17 Rollup merge of #128623 - jieyouxu:check-attr-ice, r=nnethercote +3c8b25905ce6 Rollup merge of #128500 - clubby789:122600-test, r=Mark-Simulacrum +e4367cec5ec6 Rollup merge of #128309 - kmicklas:btreeset-cursor, r=Amanieu +f6c8b7a60a00 Rollup merge of #127974 - onur-ozkan:force-std-builds, r=Mark-Simulacrum +d10f2b32f06c Rollup merge of #127907 - RalfJung:byte_slice_in_packed_struct_with_derive, r=nnethercote +cc61dc8b2d97 Rollup merge of #127655 - RalfJung:invalid_type_param_default, r=compiler-errors +70ab51f988ae Correct the const stabilization of `<[T]>::last_chunk` +41ec376edde2 Add `Debug` impls to API types in `rustc_codegen_ssa` +dac7f20e1308 Add test for `Self` not being a generic in search index +b4f77df9f854 rustdoc: Delete `ReceiverTy` (formerly known as `SelfTy`) +e452e3def69d Use `match` instead of sequence of `if let`s +4e348fa80372 rustdoc: Stop treating `Self` as a generic in search index +664b3ffbe932 rustdoc: Create `SelfTy` to replace `Generic(kw::SelfUpper)` +249d686c7005 rustdoc: Rename `SelfTy` to `ReceiverTy` +69de294c311c tests: more crashes +77fe1cb96c1c Auto merge of #17789 - ShoyuVanilla:issue-17191, r=Veykril +176e54520954 Auto merge of #128534 - bjorn3:split_stdlib_workspace, r=Mark-Simulacrum +234ea1fcd91e Check exit status of subcommands spawned by rustc_tools_util +207ee73b7afa std: refactor UNIX random data generation +178886e92305 Update incorrect comment +3268b2e18d33 Enable msvc for link-args-order +fbe7233c0a17 fix: Insert a generic arg for `impl Trait` when lowering generic args +7ac242c3d0d3 Auto merge of #13213 - Alexendoo:multispan-sugg, r=y21 +ab1527f1d656 Auto merge of #128544 - compiler-errors:perf-warn_if_unreachable, r=fmease +1ea7bddbdfc7 Remove `multispan_sugg[_with_applicability]` +ebd08d8ed5c8 Auto merge of #128634 - matthiaskrgr:rollup-l5a2v5k, r=matthiaskrgr +d8c2b767c6a1 run-make: enable msvc for link-dedup +a95ff26fdcb0 test: add test case for inlay hint support for expr with label +f71a627073ce migrate `thumb-none-cortex-m` to rmake +f1c4c0f548a2 Rollup merge of #128620 - GuillaumeGomez:update-rinja, r=notriddle +badf983c96e9 Rollup merge of #128615 - notriddle:notriddle/anchor-a11y, r=GuillaumeGomez +ad5b9c24c010 Rollup merge of #128589 - onur-ozkan:llvm-configs, r=cuviper +8c826923aeac Rollup merge of #128578 - camelid:cache-index-cleanup, r=notriddle +19bceedd784f Rollup merge of #128531 - RalfJung:miri-recursive-validity, r=saethlin +c8a33f7e34ff Rollup merge of #128526 - tshepang:patch-1, r=Amanieu +b6b8330b9dbf Rollup merge of #128305 - folkertdev:asm-parser-unsupported-operand, r=Amanieu +58fb508fe328 Auto merge of #127877 - Rejyr:migrate-print-rmake, r=jieyouxu +2ac09692e7a7 handle crates when they are not specified for std docs +9ad44ba73714 enable abi-cafe tests on aarch64-apple-darwin +249afea2ff4a docs(resolve): more explain about `target` +80b74d397fff Implement a implicit target feature mechanism +90521399b4bf Stabilize Wasm relaxed SIMD +007d9e1c26da rustdoc: Re-add missing `stripped_mod` check; explain orphan impls +2e5341aecd85 Enable msvc for no-duplicate-libs +b46237bdd73a Enable msvc for zero-extend-abi-param-passing +36cf385e886d Ensure `Rustc::print` use in `rmake` tests +1ca959e3f00f Migrate `print-target-list` to `rmake` +b389b0ab72cb Auto merge of #128466 - sayantn:stdarch-update, r=tgross35 +9d0eaa2ad78c check_attr: cover multi-segment attributes on specific check arms +9e5c9c14c7fb tests: add regression test for incorrect "builtin attribute is checked" assertion ICE +f9d7e4c0a96f Remove cygpath from run-make-support +3a41a11a8f8a Migrate `run-make/print-calling-conventions` to ui-test +8f63e9f8732d Auto merge of #128441 - Bryanskiy:delegation-perf, r=petrochenkov +cb7c596681c3 Update rinja version to 0.3.0 +9963a6c400f7 Add platform support document for riscv64gc-unknown-linux-musl +a937a3b5a164 Make riscv64gc-unknown-linux-musl dynamically linked by default +de26ad1a2a30 Promote riscv64gc-unknown-linux-musl to tier 2 +01bda01e3374 Update stdarch +b94a9c1b1230 Remove skipping symbols with the `__imp_` prefix +2cde11f2d145 Chore: add `x86_amx_intrinsics` feature flag to `core/lib.rs` and remove `issue-120720-reduce-nan.rs` +64ebd39da5ec Auto merge of #128614 - matthiaskrgr:rollup-d2fextz, r=matthiaskrgr +eb2de64aa1cb rustdoc: make the hover trail for doc anchors a bit bigger +470ada2de0ec Make validate_mir pull optimized/ctfe MIR for all bodies +0655ed234f94 Rollup merge of #128603 - ChrisDenton:used, r=jieyouxu +3a9d4325896d Rollup merge of #128581 - jieyouxu:checked-attr, r=nnethercote +e488ee7efd6c Rollup merge of #128573 - GuillaumeGomez:simplify-body, r=notriddle +06133811a638 Rollup merge of #128551 - Konippi:refactor-backtrace-style-in-panic, r=tgross35 +53a56190afed Rollup merge of #128530 - scottmcm:repeat-n-unchecked, r=joboet +0afbe482f06c Rollup merge of #128283 - lolbinarycat:bootstrap-custom-target, r=albertlarsan68 +377d72ae8b74 Auto merge of #13194 - sheshnath-at-knoldus:fix-typos, r=Jarcho +7d9ed2a864f5 Rollup merge of #127921 - spastorino:stabilize-unsafe-extern-blocks, r=compiler-errors +bbf60c897e18 Auto merge of #127324 - DianQK:match-br, r=cjgillot +b9716dd32a24 fix-typos +8497800abde9 Add test for updating enum discriminant through pointer +f28d1570912c Update rmake.rs +8dd459d4c750 Auto merge of #13209 - Alexendoo:nonminimal-bool-limit-ops, r=y21 +36a805939e6e Remove unnecessary constants from flt2dec dragon +edc4dc337b28 Auto merge of #128370 - petrochenkov:libsearch, r=bjorn3 +eb7b6769f1fe Auto merge of #13208 - alex-semenyuk:fix_doc_from_iter_instead_of_collect, r=llogiq +c2523c954360 Use object in run-make/symbols-visibility +35dcc9bbfa32 Add clarification for from_iter_instead_of_collect +a3a09b488fde Simplify `body` usage in rustdoc +613155c96ab3 Apply review comments to PartialOrd section +1f47624f9aba Auto merge of #128404 - compiler-errors:revert-dead-code-changes, r=pnkfelix +eb451464a755 Remove BAR for run-make/used.rs +b564b70d1cb3 Update run-make/used to use `any_symbol_contains` +d18ce7cea04a lintcheck: force warn all lints +b2d063130081 Limit number of nonminimal_bool ops +106cf7bec201 Remove another false-negative hidden by dead code changes +a57b8b91dbcb Bless test fallout +cbd27db9a996 Suppress new false-negatives that were masked by dead code analysis changes +ac56007ea7ba Revert "Rollup merge of #125572 - mu001999-contrib:dead/enhance, r=pnkfelix" +d29818c9f552 Revert "Rollup merge of #126315 - mu001999-contrib:fix/126289, r=petrochenkov" +22da61624590 Revert "Rollup merge of #126618 - mu001999-contrib:dead/enhance, r=pnkfelix"