-
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 5 pull requests #132371
Rollup of 5 pull requests #132371
Commits on Oct 27, 2024
-
rustdoc: make doctest span tweak a 2024 edition change
Fixes rust-lang#132203 This is a compatibility hack, because I think the new behavior is better. When an A `include_str!` B, and B `include_str!` C, the path to C should be resolved relative to B, not A. That's how `include!` itself works, so that's how `include_str!` with should work.
Configuration menu - View commit details
-
Copy full SHA for 1819b4f - Browse repository at this point
Copy the full SHA 1819b4fView commit details
Commits on Oct 28, 2024
-
force-recompile library changes on download-rustc="if-unchanged"
This makes download-rustc="if-unchanged" more functional and useful for library developers. Signed-off-by: onur-ozkan <work@onurozkan.dev>
Configuration menu - View commit details
-
Copy full SHA for 5cf6b8b - Browse repository at this point
Copy the full SHA 5cf6b8bView commit details -
update download-rustc doc in config.example.toml
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Configuration menu - View commit details
-
Copy full SHA for 7e064e7 - Browse repository at this point
Copy the full SHA 7e064e7View commit details
Commits on Oct 29, 2024
-
compiler:
rustc_abi::Abi
=>BackendRepr
The initial naming of "Abi" was an awful mistake, conveying wrong ideas about how psABIs worked and even more about what the enum meant. It was only meant to represent the way the value would be described to a codegen backend as it was lowered to that intermediate representation. It was never meant to mean anything about the actual psABI handling! The conflation is because LLVM typically will associate a certain form with a certain ABI, but even that does not hold when the special cases that actually exist arise, plus the IR annotations that modify the ABI. Reframe `rustc_abi::Abi` as the `BackendRepr` of the type, and rename `BackendRepr::Aggregate` as `BackendRepr::Memory`. Unfortunately, due to the persistent misunderstandings, this too is now incorrect: - Scattered ABI-relevant code is entangled with BackendRepr - We do not always pre-compute a correct BackendRepr that reflects how we "actually" want this value to be handled, so we leave the backend interface to also inject various special-cases here - In some cases `BackendRepr::Memory` is a "real" aggregate, but in others it is in fact using memory, and in some cases it is a scalar! Our rustc-to-backend lowering code handles this sort of thing right now. That will eventually be addressed by lifting duplicated lowering code to either rustc_codegen_ssa or rustc_target as appropriate.
Configuration menu - View commit details
-
Copy full SHA for 7086dd8 - Browse repository at this point
Copy the full SHA 7086dd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d5d8b5 - Browse repository at this point
Copy the full SHA 6d5d8b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0349209 - Browse repository at this point
Copy the full SHA 0349209View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3059ed8 - Browse repository at this point
Copy the full SHA 3059ed8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11f9217 - Browse repository at this point
Copy the full SHA 11f9217View commit details
Commits on Oct 30, 2024
-
tests: cross-compile multi-platform ZST ABI tests
This allows them to be blessed, regardless of platform.
Configuration menu - View commit details
-
Copy full SHA for 0b9d1eb - Browse repository at this point
Copy the full SHA 0b9d1ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 083a362 - Browse repository at this point
Copy the full SHA 083a362View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6e1214 - Browse repository at this point
Copy the full SHA b6e1214View commit details -
Configuration menu - View commit details
-
Copy full SHA for d693e19 - Browse repository at this point
Copy the full SHA d693e19View commit details -
Configuration menu - View commit details
-
Copy full SHA for d804ef8 - Browse repository at this point
Copy the full SHA d804ef8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27c958f - Browse repository at this point
Copy the full SHA 27c958fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f6e0a6 - Browse repository at this point
Copy the full SHA 8f6e0a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d74d8f - Browse repository at this point
Copy the full SHA 2d74d8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 802f3a7 - Browse repository at this point
Copy the full SHA 802f3a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac7de1a - Browse repository at this point
Copy the full SHA ac7de1aView commit details -
Rollup merge of rust-lang#129383 - cjgillot:opaque-noremap, r=compile…
…r-errors,petrochenkov Remap impl-trait lifetimes on HIR instead of AST lowering Current AST->HIR lowering goes out of its way to remap lifetimes for opaque types. This is complicated and leaks into upstream and downstream code. This PR stops trying to be clever during lowering, and prefers to do this remapping during the HIR->ty lowering. The remapping computation easily fits into the bound var resolution code. Its result can be used in by `generics_of` and `hir_ty_lowering::new_opaque` to add the proper parameters and arguments. See an example on the doc for query `opaque_captured_lifetimes`. Based on rust-lang#129244 Fixes rust-lang#125249 Fixes rust-lang#126850 cc `@compiler-errors` `@spastorino` r? `@petrochenkov`
Configuration menu - View commit details
-
Copy full SHA for 6b60f03 - Browse repository at this point
Copy the full SHA 6b60f03View commit details -
Rollup merge of rust-lang#132210 - notriddle:notriddle/doctest-span-h…
…ack, r=GuillaumeGomez rustdoc: make doctest span tweak a 2024 edition change Fixes rust-lang#132203 This is a compatibility hack, because I think the new behavior is better. When an A `include_str!` B, and B `include_str!` C, the path to C should be resolved relative to B, not A. That's how `include!` itself works, so that's how `include_str!` with should work.
Configuration menu - View commit details
-
Copy full SHA for 62ba25d - Browse repository at this point
Copy the full SHA 62ba25dView commit details -
Rollup merge of rust-lang#132246 - workingjubilee:campaign-on-irform,…
… r=compiler-errors Rename `rustc_abi::Abi` to `BackendRepr` Remove the confabulation of `rustc_abi::Abi` with what "ABI" actually means by renaming it to `BackendRepr`, and rename `Abi::Aggregate` to `BackendRepr::Memory`. The type never actually represented how things are passed, as that has to have `PassMode` considered, at minimum, but rather it just is how we represented some things to the backend. This conflation arose because LLVM, the primary backend at the time, would lower certain IR forms using certain ABIs. Even that only somewhat was true, as it broke down when one ventured significantly afield of what is described by the System V AMD64 ABI either by using different architectures, ABI-modifying IR annotations, the same architecture **with different ISA extensions enabled**, or other... unexpected delights. Unfortunately both names are still somewhat of a misnomer right now, as people have written code for years based on this misunderstanding. Still, their original names are even moreso, and for better or worse, this backend code hasn't received as much maintenance as the rest of the compiler, lately. Actually arriving at a correct end-state will simply require us to disentangle a lot of code in order to fix, much of it pointlessly repeated in several places. Thus this is not an "actual fix", just a way to deflect further misunderstandings.
Configuration menu - View commit details
-
Copy full SHA for 847b6fe - Browse repository at this point
Copy the full SHA 847b6feView commit details -
Rollup merge of rust-lang#132267 - onur-ozkan:rustc-if-unchanged-forc…
…e-library, r=Kobzol force-recompile library changes on download-rustc="if-unchanged" This makes the download-rustc="if-unchanged" option more functional and useful for library developers. Implements the second item from [this tracking issue](rust-lang#131744).
Configuration menu - View commit details
-
Copy full SHA for f90abe7 - Browse repository at this point
Copy the full SHA f90abe7View commit details -
Rollup merge of rust-lang#132344 - compiler-errors:same-thing, r=lcnr
Merge `HostPolarity` and `BoundConstness` They're basically the same thing, and I think `BoundConstness` is easier to use. r? fee1-dead or reassign
Configuration menu - View commit details
-
Copy full SHA for 7b19508 - Browse repository at this point
Copy the full SHA 7b19508View commit details