-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
Subtree sync for rustc_codegen_cranelift #119117
Commits on Nov 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for abf0832 - Browse repository at this point
Copy the full SHA abf0832View commit details
Commits on Nov 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1988cf4 - Browse repository at this point
Copy the full SHA 1988cf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b82fe2 - Browse repository at this point
Copy the full SHA 6b82fe2View commit details -
Auto merge of rust-lang#118279 - bjorn3:sync_cg_clif-2023-11-25, r=bj…
…orn3 Subtree sync for rustc_codegen_cranelift The main highlights this time are implementing a bunch of new vendor intrinsics and fixing some existing ones. And fixing polymorphization for coroutines. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
Configuration menu - View commit details
-
Copy full SHA for 400cd47 - Browse repository at this point
Copy the full SHA 400cd47View commit details
Commits on Nov 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 62dbc19 - Browse repository at this point
Copy the full SHA 62dbc19View commit details
Commits on Nov 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f5a74dc - Browse repository at this point
Copy the full SHA f5a74dcView commit details -
Merge pull request rust-lang#1432 from simonbuchan/windows-y-wrappers
Add Windows wrappers for ./y
Configuration menu - View commit details
-
Copy full SHA for db91a41 - Browse repository at this point
Copy the full SHA db91a41View commit details
Commits on Dec 4, 2023
-
Give
Handler::fatal
andSession::fatal
the same return type.Currently, `Handler::fatal` returns `FatalError`. But `Session::fatal` returns `!`, because it calls `Handler::fatal` and then calls `raise` on the result. This inconsistency is unfortunate. This commit changes `Handler::fatal` to do the `raise` itself, changing its return type to `!`. This is safe because there are only two calls to `Handler::fatal`, one in `rustc_session` and one in `rustc_codegen_cranelift`, and they both call `raise` on the result. `HandlerInner::fatal` still returns `FatalError`, so I renamed it `fatal_no_raise` to emphasise the return type difference.
Configuration menu - View commit details
-
Copy full SHA for 0657c1b - Browse repository at this point
Copy the full SHA 0657c1bView commit details
Commits on Dec 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9d9459a - Browse repository at this point
Copy the full SHA 9d9459aView commit details
Commits on Dec 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2559532 - Browse repository at this point
Copy the full SHA 2559532View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e81ade - Browse repository at this point
Copy the full SHA 3e81adeView commit details -
ctfe interpreter: extend provenance so that it can track whether a po…
…inter is immutable
Configuration menu - View commit details
-
Copy full SHA for 994d36b - Browse repository at this point
Copy the full SHA 994d36bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1095e01 - Browse repository at this point
Copy the full SHA 1095e01View commit details -
Auto merge of rust-lang#118324 - RalfJung:ctfe-read-only-pointers, r=…
…saethlin compile-time evaluation: detect writes through immutable pointers This has two motivations: - it unblocks rust-lang#116745 (and therefore takes a big step towards `const_mut_refs` stabilization), because we can now detect if the memory that we find in `const` can be interned as "immutable" - it would detect the UB that was uncovered in rust-lang#117905, which was caused by accidental stabilization of `copy` functions in `const` that can only be called with UB When UB is detected, we emit a future-compat warn-by-default lint. This is not a breaking change, so completely in line with [the const-UB RFC](https://rust-lang.github.io/rfcs/3016-const-ub.html), meaning we don't need t-lang FCP here. I made the lint immediately show up for dependencies since it is nearly impossible to even trigger this lint without `const_mut_refs` -- the accidentally stabilized `copy` functions are the only way this can happen, so the crates that popped up in rust-lang#117905 are the only causes of such UB (in the code that crater covers), and the three cases of UB that we know about have all been fixed in their respective crates already. The way this is implemented is by making use of the fact that our interpreter is already generic over the notion of provenance. For CTFE we now use the new `CtfeProvenance` type which is conceptually an `AllocId` plus a boolean `immutable` flag (but packed for a more efficient representation). This means we can mark a pointer as immutable when it is created as a shared reference. The flag will be propagated to all pointers derived from this one. We can then check the immutable flag on each write to reject writes through immutable pointers. I just hope perf works out.
Configuration menu - View commit details
-
Copy full SHA for 6353599 - Browse repository at this point
Copy the full SHA 6353599View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ff8e7b - Browse repository at this point
Copy the full SHA 3ff8e7bView commit details
Commits on Dec 9, 2023
-
Add simd_masked_{load,store} platform-intrinsics
This maps to the LLVM intrinsics: llvm.masked.load and llvm.masked.store
Configuration menu - View commit details
-
Copy full SHA for 8ab225d - Browse repository at this point
Copy the full SHA 8ab225dView commit details
Commits on Dec 10, 2023
-
detects redundant imports that can be eliminated. for rust-lang#117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
Configuration menu - View commit details
-
Copy full SHA for e637663 - Browse repository at this point
Copy the full SHA e637663View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc1b10c - Browse repository at this point
Copy the full SHA fc1b10cView commit details
Commits on Dec 11, 2023
-
Auto merge of rust-lang#117758 - Urgau:lint_pointer_trait_comparisons…
…, r=davidtwco Add lint against ambiguous wide pointer comparisons This PR is the resolution of rust-lang#106447 decided in rust-lang#117717 by T-lang. ## `ambiguous_wide_pointer_comparisons` *warn-by-default* The `ambiguous_wide_pointer_comparisons` lint checks comparison of `*const/*mut ?Sized` as the operands. ### Example ```rust let ab = (A, B); let a = &ab.0 as *const dyn T; let b = &ab.1 as *const dyn T; let _ = a == b; ``` ### Explanation The comparison includes metadata which may not be expected. ------- This PR also drops `clippy::vtable_address_comparisons` which is superseded by this one. ~~One thing: is the current naming right? `invalid` seems a bit too much.~~ Fixes rust-lang#117717
Configuration menu - View commit details
-
Copy full SHA for b5c0dd6 - Browse repository at this point
Copy the full SHA b5c0dd6View commit details
Commits on Dec 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for aa3dc4c - Browse repository at this point
Copy the full SHA aa3dc4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ace694c - Browse repository at this point
Copy the full SHA ace694cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ec47d1 - Browse repository at this point
Copy the full SHA 7ec47d1View commit details
Commits on Dec 13, 2023
-
Auto merge of rust-lang#118534 - RalfJung:extern-type-size-of-val, r=…
…WaffleLapkin codegen: panic when trying to compute size/align of extern type The alignment is also computed when accessing a field of extern type at non-zero offset, so we also panic in that case. Previously `size_of_val` worked because the code path there assumed that "thin pointer" means "sized". But that's not true any more with extern types. The returned size and align are just blatantly wrong, so it seems better to panic than returning wrong results. We use a non-unwinding panic since code probably does not expect size_of_val to panic.
Configuration menu - View commit details
-
Copy full SHA for e3d2831 - Browse repository at this point
Copy the full SHA e3d2831View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1cd90a - Browse repository at this point
Copy the full SHA b1cd90aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45fab3a - Browse repository at this point
Copy the full SHA 45fab3aView commit details
Commits on Dec 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bb7a126 - Browse repository at this point
Copy the full SHA bb7a126View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1c925b - Browse repository at this point
Copy the full SHA b1c925bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89ab75e - Browse repository at this point
Copy the full SHA 89ab75eView commit details
Commits on Dec 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 576b921 - Browse repository at this point
Copy the full SHA 576b921View commit details -
Configuration menu - View commit details
-
Copy full SHA for b44315c - Browse repository at this point
Copy the full SHA b44315cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b60e208 - Browse repository at this point
Copy the full SHA b60e208View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b5a5da - Browse repository at this point
Copy the full SHA 8b5a5daView commit details -
Configuration menu - View commit details
-
Copy full SHA for eeb3db1 - Browse repository at this point
Copy the full SHA eeb3db1View commit details -
Configuration menu - View commit details
-
Copy full SHA for fdcf56c - Browse repository at this point
Copy the full SHA fdcf56cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 697aa0a - Browse repository at this point
Copy the full SHA 697aa0aView commit details -
Implement has_ptr_meta without computing type layout
This matches type_has_metadata in cg_ssa and doesn't require computing the layout of the type. It is also a bit faster.
Configuration menu - View commit details
-
Copy full SHA for c4567c1 - Browse repository at this point
Copy the full SHA c4567c1View commit details -
fix dynamic size/align computation logic for packed types with dyn tr…
…ait tail cc rust-lang#118538
Configuration menu - View commit details
-
Copy full SHA for 1ab05b6 - Browse repository at this point
Copy the full SHA 1ab05b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 973dd56 - Browse repository at this point
Copy the full SHA 973dd56View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6c0006 - Browse repository at this point
Copy the full SHA f6c0006View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d98f79 - Browse repository at this point
Copy the full SHA 9d98f79View commit details
Commits on Dec 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4a1466a - Browse repository at this point
Copy the full SHA 4a1466aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a9bf72 - Browse repository at this point
Copy the full SHA 3a9bf72View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5c38de - Browse repository at this point
Copy the full SHA d5c38deView commit details