-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 9 pull requests #100797
Rollup of 9 pull requests #100797
Commits on Jul 6, 2022
-
unit tests that inspect LLVM output directly. This relies on a human …
…being to confirm that the entries actually correspond to what is specified in each of the respective ABIs... updated to incorporate feedback: fix x86_64/i686 tests to use correct name for the corresponding llvm component.
Configuration menu - View commit details
-
Copy full SHA for 7913b85 - Browse repository at this point
Copy the full SHA 7913b85View commit details -
End-to-end regression test for 97463.
incorporated review feedback, with comment explaining why this is calling CC instead of COMPILE_OBJ or NATIVE_STATICLIB. As drive-by, removed some other unnecessary commands from the recipe.
Configuration menu - View commit details
-
Copy full SHA for b2777ab - Browse repository at this point
Copy the full SHA b2777abView commit details -
fix issue 97463 using change suggested by nbdd0121.
parameterized on target details to decide value-extension policy on calls, in order to address how Apple's aarch64 ABI differs from that on Linux and Windows. Updated to incorporate review feedback: adjust comment on new enum specifying param extension policy. Updated to incorporate review feedback: shorten enum names and those of its variants to make it less unwieldy. placate tidy.
Configuration menu - View commit details
-
Copy full SHA for 8ae5a55 - Browse repository at this point
Copy the full SHA 8ae5a55View commit details -
experiment: trying to encode the end-to-end test as a ui test via rus…
…t_test_helpers. This instance is almost certainly insufficient because we need to force optimization flags for both the C and Rust sides of the code. but lets find out for sure.
Configuration menu - View commit details
-
Copy full SHA for dfdb017 - Browse repository at this point
Copy the full SHA dfdb017View commit details
Commits on Aug 4, 2022
-
Co-authored-by: Wesley Wiser <wwiser@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 99c0f91 - Browse repository at this point
Copy the full SHA 99c0f91View commit details
Commits on Aug 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9bf3d5a - Browse repository at this point
Copy the full SHA 9bf3d5aView commit details -
Add pointer masking convenience functions
This commit adds the following functions all of which have a signature `pointer, usize -> pointer`: - `<*mut T>::mask` - `<*const T>::mask` - `intrinsics::ptr_mask` These functions are equivalent to `.map_addr(|a| a & mask)` but they utilize `llvm.ptrmask` llvm intrinsic. *masks your pointers*
Configuration menu - View commit details
-
Copy full SHA for 940f078 - Browse repository at this point
Copy the full SHA 940f078View commit details -
use shorter
ptr_mask
impl in cg craneliftCo-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 876ff21 - Browse repository at this point
Copy the full SHA 876ff21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08d488b - Browse repository at this point
Copy the full SHA 08d488bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8102e71 - Browse repository at this point
Copy the full SHA 8102e71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 729334a - Browse repository at this point
Copy the full SHA 729334aView commit details
Commits on Aug 7, 2022
-
Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1dfac52 - Browse repository at this point
Copy the full SHA 1dfac52View commit details
Commits on Aug 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for de9dc86 - Browse repository at this point
Copy the full SHA de9dc86View commit details
Commits on Aug 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ccc558a - Browse repository at this point
Copy the full SHA ccc558aView commit details
Commits on Aug 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4b16214 - Browse repository at this point
Copy the full SHA 4b16214View commit details
Commits on Aug 16, 2022
-
Revert "Revert "Allow dynamic linking for iOS/tvOS targets.""
This reverts commit 16e10bf. # Conflicts: # compiler/rustc_target/src/spec/apple_sdk_base.rs
Configuration menu - View commit details
-
Copy full SHA for 9233298 - Browse repository at this point
Copy the full SHA 9233298View commit details
Commits on Aug 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e9e46c9 - Browse repository at this point
Copy the full SHA e9e46c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 767239f - Browse repository at this point
Copy the full SHA 767239fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 944c6b6 - Browse repository at this point
Copy the full SHA 944c6b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for be2641a - Browse repository at this point
Copy the full SHA be2641aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72acd94 - Browse repository at this point
Copy the full SHA 72acd94View commit details
Commits on Aug 18, 2022
-
Do not use void pointer for
ptr_mask
intrinsicI couldn't find where exactly it's documented, but apperantly pointers to void type are invalid in llvm - void is only allowed as a return type of functions.
Configuration menu - View commit details
-
Copy full SHA for 5abe2dc - Browse repository at this point
Copy the full SHA 5abe2dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac66baa - Browse repository at this point
Copy the full SHA ac66baaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27b0444 - Browse repository at this point
Copy the full SHA 27b0444View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c8dc12 - Browse repository at this point
Copy the full SHA 8c8dc12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 438e49c - Browse repository at this point
Copy the full SHA 438e49cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fbcdf2a - Browse repository at this point
Copy the full SHA fbcdf2aView commit details
Commits on Aug 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 622e425 - Browse repository at this point
Copy the full SHA 622e425View commit details -
Update codegen tests to accommodate the potential presence/absence of…
… the extension operation depending on target architecture.
Configuration menu - View commit details
-
Copy full SHA for 59cc718 - Browse repository at this point
Copy the full SHA 59cc718View commit details -
Configuration menu - View commit details
-
Copy full SHA for f47b61d - Browse repository at this point
Copy the full SHA f47b61dView commit details
Commits on Aug 20, 2022
-
remove unnecessary string searchings
remove unnecessary string searchings for checking if function arguments have `&` and `&mut`
Configuration menu - View commit details
-
Copy full SHA for 9735107 - Browse repository at this point
Copy the full SHA 9735107View commit details -
Rollup merge of rust-lang#96946 - WaffleLapkin:ptr_mask, r=scottmcm
Add pointer masking convenience functions This PR adds the following public API: ```rust impl<T: ?Sized> *const T { fn mask(self, mask: usize) -> *const T; } impl<T: ?Sized> *mut T { fn mask(self, mask: usize) -> *const T; } // mod intrinsics fn mask<T>(ptr: *const T, mask: usize) -> *const T ``` This is equivalent to `ptr.map_addr(|a| a & mask)` but also uses a cool llvm intrinsic. Proposed in rust-lang#95643 (comment) cc `@Gankra` `@scottmcm` `@RalfJung` r? rust-lang/libs-api
Configuration menu - View commit details
-
Copy full SHA for b8f6983 - Browse repository at this point
Copy the full SHA b8f6983View commit details -
Rollup merge of rust-lang#97800 - pnkfelix:issue-97463-fix-aarch64-ca…
…ll-abi-does-not-zeroext, r=wesleywiser Aarch64 call abi does not zeroext (and one cannot assume it does so) Fix rust-lang#97463
Configuration menu - View commit details
-
Copy full SHA for ad2e624 - Browse repository at this point
Copy the full SHA ad2e624View commit details -
Rollup merge of rust-lang#99935 - CAD97:unstable-syntax-lints, r=petr…
…ochenkov Reenable disabled early syntax gates as future-incompatibility lints - MCP: rust-lang/compiler-team#535 The approach taken by this PR is - Introduce a new lint, `unstable_syntax_pre_expansion`, and reenable the early syntax gates to emit it - Use the diagnostic stashing mechanism to stash warnings the early warnings - When the hard error occurs post expansion, steal and cancel the early warning - Don't display any stashed warnings if errors are present to avoid the same noise problem that hiding type ascription errors is avoiding Commits are working commits, but in a coherent steps-to-implement manner. Can be squashed if desired. The preexisting `soft_unstable` lint seems like it would've been a good fit, but it is deny-by-default (appropriate for `#[bench]`) and these gates should be introduced as warn-by-default. It may be desirable to change the stash mechanism's behavior to not flush lint errors in the presence of other errors either (like is done for warnings here), but upgrading a stash-using lint from warn to error perhaps is enough of a request to see the lint that they shouldn't be hidden; additionally, fixing the last error to get new errors thrown at you always feels bad, so if we know the lint errors are present, we should show them. Using a new flag/mechanism for a "weak diagnostic" which is suppressed by other errors may also be desirable over assuming any stashed warnings are "weak," but this is the first user of stashing warnings and seems an appropriate use of stashing (it follows the "know more later to refine the diagnostic" pattern; here we learn that it's in a compiled position) so we get to define what it means to stash a non-hard-error diagnostic. cc ``@petrochenkov`` (seconded MCP)
Configuration menu - View commit details
-
Copy full SHA for 6c2ff7c - Browse repository at this point
Copy the full SHA 6c2ff7cView commit details -
Rollup merge of rust-lang#100129 - RalfJung:miri-test-libstd, r=thomcc
add miri-test-libstd support to libstd - The first commit mirrors what we already have in liballoc. - The second commit adds some regression tests that only really make sense to be run in Miri, since they rely on Miri's extra checks to detect anything. - The third commit makes the MPSC tests work in reasonable time in Miri by reducing iteration counts. - The fourth commit silences some warnings due to code being disabled with `cfg(miri)`
Configuration menu - View commit details
-
Copy full SHA for 80fa648 - Browse repository at this point
Copy the full SHA 80fa648View commit details -
Rollup merge of rust-lang#100500 - cjgillot:verify-self-predicate, r=…
…lcnr Ban references to `Self` in trait object substs for projection predicates too. Fixes rust-lang#100484 Fixes rust-lang#100485 r? `@lcnr`
Configuration menu - View commit details
-
Copy full SHA for 2038658 - Browse repository at this point
Copy the full SHA 2038658View commit details -
Rollup merge of rust-lang#100636 - cutsoy:revert-77716, r=davidtwco
Revert "Revert "Allow dynamic linking for iOS/tvOS targets."" This reverts commit 16e10bf (PR rust-lang#77716). The original original PR enabled `cdylib` builds for iOS. However this caused problems because: > This new feature in Rust 1.46 added a lot of headache for iOS builds with cdylib targets. cdylib target is near impossible to build if you are using any crate with native dependencies (ex. openssl, libsodium, zmq). You can't just find .so files for all architectures to perform correct linking. Usual workflow is the following: > > 1. You build staticlib and rely that native dependencies will be linked as frameworks later > 2. You setup right cocoapods in ObjectiveC/Swift wrapper. > > As cargo doesn't support platform-dependent crate types rust-lang#4881 as a result a lot of projects now broken on Rust 1.46 However, this will be soon a thing of the past since 1.64 brings us the long awaited much anticipated `--crate-type` flag. > I see that this got merged recently: rust-lang/cargo#10083. The --crate-type flag will get stabilized in 1.64. In 1.64, you could still get a successful iOS staticlib with cargo build --crate-type=statclib even if the crate has cdylib targets too. If I'm not mistaken, this solves the problem too so this PR could be reverted in 1.64 with relatively little headache. So summing up, I think this PR can be reverted in 1.64. 🤞
Configuration menu - View commit details
-
Copy full SHA for c4d57f5 - Browse repository at this point
Copy the full SHA c4d57f5View commit details -
Rollup merge of rust-lang#100773 - WaffleLapkin:addasreftest, r=TaKO8Ki
add a ui test for `.as_ref` suggestion Closes rust-lang#90286
Configuration menu - View commit details
-
Copy full SHA for e5b9afc - Browse repository at this point
Copy the full SHA e5b9afcView commit details -
Rollup merge of rust-lang#100777 - pnkfelix:expand-codegen-tests-read…
…me, r=TaKO8Ki elaborate how revisions work with FileCheck stuff in src/test/codegen elaborate how revisions work with FileCheck stuff in src/test/codegen
Configuration menu - View commit details
-
Copy full SHA for 90ca06d - Browse repository at this point
Copy the full SHA 90ca06dView commit details -
Rollup merge of rust-lang#100796 - TaKO8Ki:remove-unnecessary-string-…
…searching, r=compiler-errors Refactor: remove unnecessary string searchings This patch removes unnecessary string searchings for checking if function arguments have `&` and `&mut`.
Configuration menu - View commit details
-
Copy full SHA for 959b876 - Browse repository at this point
Copy the full SHA 959b876View commit details