-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 8 pull requests #126300
Rollup of 8 pull requests #126300
Commits on Apr 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8e91a51 - Browse repository at this point
Copy the full SHA 8e91a51View commit details
Commits on Apr 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 22319bf - Browse repository at this point
Copy the full SHA 22319bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4df1303 - Browse repository at this point
Copy the full SHA 4df1303View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30b676c - Browse repository at this point
Copy the full SHA 30b676cView commit details
Commits on Jun 10, 2024
-
docs(core): make more const_ptr doctests assert instead of printing
fixes rust-lang#124669
binarycat committedJun 10, 2024 Configuration menu - View commit details
-
Copy full SHA for fe52b54 - Browse repository at this point
Copy the full SHA fe52b54View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfb7757 - Browse repository at this point
Copy the full SHA bfb7757View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e31349 - Browse repository at this point
Copy the full SHA 6e31349View commit details
Commits on Jun 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1462f3d - Browse repository at this point
Copy the full SHA 1462f3dView commit details -
Simplify
[T; N]::try_map
signaturePeople keep making fun of this signature for being so gnarly. Associated type bounds lend it a much simpler scribbling. ChangeOutputType can also come along for the ride.
Configuration menu - View commit details
-
Copy full SHA for d695544 - Browse repository at this point
Copy the full SHA d695544View commit details -
Make issue-122805.rs big endian compatible
Instead of not generating the function at all on big endian (which makes the CHECK lines fail), instead use to_le() on big endian, so that we essentially perform a bswap for both endiannesses.
Configuration menu - View commit details
-
Copy full SHA for 26fa5c2 - Browse repository at this point
Copy the full SHA 26fa5c2View commit details -
Make
storage-live.rs
robust against rustc internal changes.Currently it can be made to fail by rearranging code within `compiler/rustc_mir_transform/src/lint.rs`.
Configuration menu - View commit details
-
Copy full SHA for 1a60597 - Browse repository at this point
Copy the full SHA 1a60597View commit details
Commits on Jun 12, 2024
-
Rollup merge of rust-lang#123374 - mgeier:doc-slice-from-raw-parts, r…
…=scottmcm DOC: Add FFI example for slice::from_raw_parts() For some discussion, see https://users.rust-lang.org/t/missing-guidance-on-converting-ffi-ptr-length-to-slice/106048 See also rust-lang#120608.
Configuration menu - View commit details
-
Copy full SHA for a53da66 - Browse repository at this point
Copy the full SHA a53da66View commit details -
Rollup merge of rust-lang#126210 - lolbinarycat:ptr_doctest_assert, r…
…=workingjubilee docs(core): make more const_ptr doctests assert instead of printing improves on rust-lang#124669
Configuration menu - View commit details
-
Copy full SHA for fa02a77 - Browse repository at this point
Copy the full SHA fa02a77View commit details -
Rollup merge of rust-lang#126228 - BoxyUwU:nested_repeat_expr_generic…
…s, r=compiler-errors Provide correct parent for nested anon const Fixes rust-lang#126147 99% of this PR is just comments explaining what the issue is. `tcx.parent(` and `hir().get_parent_item(` give different results as the hir owner for all the hir of anon consts is the enclosing function. I didn't attempt to change that as being a hir owner requires a `DefId` and long term we want to stop creating anon consts' `DefId`s before hir ty lowering. So i just opted to change `generics_of` to use `tcx.parent` to get the parent for `AnonConst`'s. I'm not entirely sure about this being what we want, it does seem weird that we have two ways of getting the parent of an `AnonConst` and they both give different results. Alternatively we could just go ahead and make `const_evaluatable_unchecked` a hard error and stop providing generics to repeat exprs. Then this isn't an issue. (The FCW has been around for almost 4 years now) r? ``@compiler-errors``
Configuration menu - View commit details
-
Copy full SHA for 092b0fb - Browse repository at this point
Copy the full SHA 092b0fbView commit details -
Rollup merge of rust-lang#126242 - yaahc:simplify-provider, r=jhpratt
Simplify provider api to improve llvm ir This PR seeks to resolve the last concern in rust-lang#99301 (comment) We resolve the issue by moving the type_id to be stored in the `Request` itself rather than being accessed through the `Erased` trait, letting the compiler infer that the value of the type id will not change between lookups. ### LLVM Codegen **Before** ``` ; <provider_test::MyError as core::error::Error>::provide ; Function Attrs: nonlazybind uwtable define void `@"_ZN61_$LT$provider_test..MyError$u20$as$u20$core..error..Error$GT$7provide17hd9c9de412063aa73E"(ptr` noalias nocapture noundef nonnull readonly align 1 %self, ptr noundef nonnull align 1 %request.0, ptr noalias nocapture noundef readonly align 8 dereferenceable(32) %request.1) unnamed_addr #0 personality ptr `@rust_eh_personality` { start: %0 = getelementptr inbounds i8, ptr %request.1, i64 24 %self.1.val.i = load ptr, ptr %0, align 8 %1 = tail call { i64, i64 } %self.1.val.i(ptr noundef nonnull align 1 %request.0), !noalias !15 %2 = extractvalue { i64, i64 } %1, 0 %3 = extractvalue { i64, i64 } %1, 1 %_18.i.i = icmp ne i64 %2, 1101338453689927725 %_2.i.i = icmp ne i64 %3, 472224167662714873 %or.cond.i.not.i = select i1 %_18.i.i, i1 true, i1 %_2.i.i br i1 %or.cond.i.not.i, label %_ZN4core5error7Request7provide17h8f8125d2543333e0E.exit, label %bb2.i ``` **After** ``` ; <provider_test::MyError as provider_test::Error>::provide ; Function Attrs: mustprogress nofree norecurse nosync nounwind nonlazybind willreturn memory(argmem: readwrite) uwtable define void `@"_ZN63_$LT$provider_test..MyError$u20$as$u20$provider_test..Error$GT$7provide17h5bbf091795a6d359E"(ptr` noalias nocapture noundef nonnull readonly align 1 %self, ptr nocapture noundef nonnull align 8 %request.0, ptr noalias nocapture noundef readonly align 8 dereferenceable(24) %request.1) unnamed_addr rust-lang#2 personality ptr `@rust_eh_personality` { start: %_19.i = load i64, ptr %request.0, align 8, !noalias !3, !noundef !3 switch i64 %_19.i, label %_ZN13provider_test7Request7provide17heb3ee140962e3b2fE.exit [ i64 7665305208997882008, label %bb12.i i64 7050211241160863540, label %bb12.i3 i64 9112786072622981063, label %bb12.i11 ] ```
Configuration menu - View commit details
-
Copy full SHA for d412d51 - Browse repository at this point
Copy the full SHA d412d51View commit details -
Rollup merge of rust-lang#126249 - workingjubilee:simplify-try-map-si…
…gnature, r=scottmcm Simplify `[T; N]::try_map` signature People keep making fun of this signature for being so gnarly. Associated type bounds admit a much simpler scribbling. r? ``@scottmcm``
Configuration menu - View commit details
-
Copy full SHA for 68d9dcd - Browse repository at this point
Copy the full SHA 68d9dcdView commit details -
Rollup merge of rust-lang#126256 - ferrocene:lw-target-subst, r=alber…
…tlarsan68 Add {{target}} substitution to compiletest In ferrocene we have ui tests testing the cli interface of the compiler, one of which tests the `--target` flag. To be able to run this on all targets we require a way to specify a valid target in the `compile-flags` directive that is target independent, as otherwise we can only run the test against the one target we choose to supply in the flags. See https://github.com/ferrocene/ferrocene/blob/383cbc80f4e85859a4055f121f15dac329908346/tests/ui/ferrocene/compiler-arguments/target/target.rs We figured the project might be able to make use of this substitution as well in the future. try-job: dist-x86_64-msvc
Configuration menu - View commit details
-
Copy full SHA for 095fd15 - Browse repository at this point
Copy the full SHA 095fd15View commit details -
Rollup merge of rust-lang#126263 - nikic:s390x-codegen-test-fix, r=ji…
…eyouxu Make issue-122805.rs big endian compatible Instead of not generating the function at all on big endian (which makes the CHECK lines fail), instead use to_le() on big endian, so that we essentially perform a bswap for both endiannesses.
Configuration menu - View commit details
-
Copy full SHA for e644975 - Browse repository at this point
Copy the full SHA e644975View commit details -
Rollup merge of rust-lang#126286 - nnethercote:fix-test-LL-CC, r=lqd
Make `storage-live.rs` robust against rustc internal changes. Currently it can be made to fail by rearranging code within `compiler/rustc_mir_transform/src/lint.rs`. This is a precursor to rust-lang#125443. r? `@lqd`
Configuration menu - View commit details
-
Copy full SHA for 8e25298 - Browse repository at this point
Copy the full SHA 8e25298View commit details