about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-11-01Auto merge of #132435 - workingjubilee:rollup-3mgogw9, r=workingjubileebors-4/+9
Rollup of 9 pull requests Successful merges: - #131168 (Fix `target_os` for `mipsel-sony-psx`) - #132209 (Fix validation when lowering `?` trait bounds) - #132294 (Bump Fuchsia) - #132357 (Improve missing_abi lint) - #132385 (compiler: Move `rustc_target::spec::abi::Abi` to `rustc_abi::ExternAbi`) - #132403 (continue `TypingMode` refactor) - #132417 (macOS: Document the difference between Clang's `-darwin` and `-macosx` targets) - #132421 (Remove `""` case from RISC-V `llvm_abiname` match statement) - #132422 (llvm: Match new LLVM 128-bit integer alignment on sparc) r? `@ghost` `@rustbot` modify labels: rollup
2024-10-31Rollup merge of #132417 - madsmtm:document-darwin-macos-difference, r=jieyouxuJubilee-0/+5
macOS: Document the difference between Clang's `-darwin` and `-macosx` targets `rustc`'s `*-apple-darwin` targets are badly named (they should've been called `*-apple-macos`), and this causes confusion wrt. the similarly named but somewhat incompatible Clang targets. So let's document the difference to at least make things a _little_ easier on our users. ``@rustbot`` label O-macos A-docs
2024-10-31Rollup merge of #132403 - lcnr:typing-mode, r=compiler-errorsJubilee-3/+3
continue `TypingMode` refactor There are still quite a few places which (indirectly) rely on the `Reveal` of a `ParamEnv`, but we're slowly getting there r? `@compiler-errors`
2024-10-31Rollup merge of #132294 - tmandry:bump-fuchsia, r=lqdJubilee-1/+1
Bump Fuchsia r? `@Kobzol` try-job: x86_64-fuchsia https://fxbug.dev/376114512
2024-10-31Auto merge of #132206 - tgross35:update-builtins, r=wesleywiserbors-0/+1
Update compiler-builtins to 0.1.136 This includes: * The license change https://github.com/rust-lang/compiler-builtins/pull/717 * The `libm` submodule update, which also has a license change https://github.com/rust-lang/libm/pull/317 * Re-enabling `math` on i686 UEFI https://github.com/rust-lang/compiler-builtins/pull/715 Fixes: https://github.com/rust-lang/rust/issues/128533
2024-10-31Adjust ranking so that duplicates count against rankMichael Howell-14/+11
2024-10-31Bump FuchsiaTyler Mandry-1/+1
2024-11-01update rfl ci job policy (#2108)David Wood-10/+16
2024-10-31Document the difference between Clang's `-darwin` and `-macosx` targetsMads Marquart-0/+5
2024-10-31stop using `ParamEnv::reveal` while handling MIRlcnr-1/+1
2024-10-31Parse patterns with leading pipe properly in all placesChayim Refael Friedman-16/+73
2024-10-31Auto merge of #132401 - matthiaskrgr:rollup-599ieqr, r=matthiaskrgrbors-37/+136
Rollup of 5 pull requests Successful merges: - #130693 (Add `minicore` test auxiliary and support `//@ add-core-stubs` directive in ui/assembly/codegen tests) - #132316 (CI: use free runners for 3 fast windows jobs) - #132354 (Add `lp64e` RISC-V ABI) - #132395 (coverage: Avoid ICE when `coverage_cx` is unexpectedly unavailable) - #132396 (CI: use free runners for x86_64-gnu-tools and x86_64-rust-for-linux) r? `@ghost` `@rustbot` modify labels: rollup
2024-10-31Merge pull request #18447 from ChayimFriedman2/cleanup-tylowerctxLukas Wirth-224/+201
Avoid interior mutability in `TyLoweringContext`
2024-10-31Remove support for compressed dylib metadata from rust-analyzerbjorn3-23/+4
2024-10-31rustc_codegen_llvm: Add a new 'pc' option to branch-protectionKajetan Puchalski-1/+2
Add a new 'pc' option to -Z branch-protection for aarch64 that enables the use of PC as a diversifier in PAC branch protection code. When the pauth-lr target feature is enabled in combination with -Z branch-protection=pac-ret,pc, the new 9.5-a instructions (pacibsppc, retaasppc, etc) will be generated.
2024-10-31Remove support for decompressing dylib metadatabjorn3-2/+0
We haven't been compressing dylib metadata for a while now. Removing decompression support will regress error messages about an incompatible rustc version being used, but dylibs are pretty rare anyway.
2024-10-31clippy: we've got a `LateContext` use it for `TypingMode`lcnr-1/+1
2024-10-31`ConstCx` stop using `ParamEnv::reveal`lcnr-2/+2
2024-10-31Rollup merge of #132396 - ↵Matthias Krüger-2/+2
MarcoIeni:ci-use-free-runners-for-x86_64-gnu-tools-and-x86_64-rust-for-linux, r=Kobzol CI: use free runners for x86_64-gnu-tools and x86_64-rust-for-linux try-job: x86_64-gnu-tools try-job: x86_64-rust-for-linux
2024-10-31Rollup merge of #132316 - MarcoIeni:ci-free-runners-windows, r=Mark-SimulacrumMatthias Krüger-3/+3
CI: use free runners for 3 fast windows jobs try-job: dist-i686-msvc try-job: dist-i686-mingw try-job: dist-x86_64-mingw try-job: dist-x86_64-msvc-alt
2024-10-31CI: use free runners for x86_64-gnu-tools and x86_64-rust-for-linuxMarcoIeni-2/+2
2024-10-31compiletest: stamp `minicore.rs` to rerun tests on changes许杰友 Jieyou Xu (Joe)-0/+6
2024-10-31compiletest: conditionally build and provide `minicore` as extern prelude ↵许杰友 Jieyou Xu (Joe)-2/+48
when requested via `//@ add-core-stubs` directive `//@ add-core-stubs` will imply `-Cpanic=abort`.
2024-10-31compiletest: register `--minicore-path` flag and `//@ add-core-stubs` directive许杰友 Jieyou Xu (Joe)-1/+41
2024-10-31compiletest: localize `compile_test_and_save_assembly` to assembly test module许杰友 Jieyou Xu (Joe)-29/+31
2024-10-31bootstrap: pass minicore path when running compiletest step许杰友 Jieyou Xu (Joe)-0/+5
2024-10-31Auto merge of #132301 - compiler-errors:adjust, r=lcnrbors-8/+8
Remove region from adjustments It's not necessary to store this region, because it's only used in THIR and MemCat/ExprUse, both of which already basically only deal with erased regions anyways.
2024-10-31CI: use free runners for 3 fast windows jobsMarcoIeni-3/+3
2024-10-31bootstrap: pass `--with-{rustc,std}-debug-assertions` to compiletest许杰友 Jieyou Xu (Joe)-21/+26
And rename local variables and field names in bootstrap from `debug_assertions{,_std}` -> `{rustc,std}-debug-assertions` to avoid confusion where applicable.
2024-10-31compiletest: add `{ignore,needs}-{rustc,std}-debug-assertions` directive support许杰友 Jieyou Xu (Joe)-9/+77
And retire the old `only-debug` directive which was ambiguous and only for std debug assertions.
2024-10-31Use protected symbols when building rustc_driverDavid Lattimore-0/+8
2024-10-31Merge pull request #18448 from Veykril/push-zwuuoytnmnqzLukas Wirth-90/+88
Move `child_by_source` from `hir-def` to `hir`
2024-10-31Move child_by_source from hir-def to hirLukas Wirth-90/+88
2024-10-31Merge pull request #18437 from sam-mccall/publish_fixtureLukas Wirth-1/+1
Publish test-fixture => ra_ap_test_fixture
2024-10-31silence clippyRalf Jung-0/+2
2024-10-31Rollup merge of #132365 - onur-ozkan:less-rustc-overhead, r=KobzolMatthias Krüger-3/+1
pass `RUSTC_HOST_FLAGS` at once without the for loop For obvious reasons...
2024-10-31fmtThe Miri Cronjob Bot-1/+1
2024-10-31Merge from rustcThe Miri Cronjob Bot-211/+276
2024-10-31Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-10-31Fix internal and incomplete links (#2107)Thomas Nyman-9/+12
* Fix broken link in syntax-intro.md * Fix broken link in tests/compiletest.md * Fix incorrectly formatted reference-style link in compiler-src.md * Fix broken links to rustc-driver.md to point to rustc-driver/intro.md * Define URLs for incomplete links to rustc sources in stabilization_guide.md * Define link to coherence.md for incomplete link in solve/invariants.md
2024-10-31Merge pull request #4003 from YohDeadfall/windows-shim-typoBen Kimock-1/+1
Fixed a typo in the GetThreadDescription shim
2024-10-31Fixed a typo in the GetThreadDescription shimYoh Deadfall-1/+1
2024-10-31Remove support for `-Zprofile` (gcov-style coverage instrumentation)Zalathar-33/+2
2024-10-31pass `RUSTC_HOST_FLAGS` at once without the for looponur-ozkan-3/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-10-30Rollup merge of #132267 - onur-ozkan:rustc-if-unchanged-force-library, r=KobzolJubilee-16/+22
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](https://github.com/rust-lang/rust/issues/131744).
2024-10-30Rollup merge of #132246 - workingjubilee:campaign-on-irform, r=compiler-errorsJubilee-20/+31
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.
2024-10-30Rollup merge of #132210 - notriddle:notriddle/doctest-span-hack, ↵Jubilee-1/+13
r=GuillaumeGomez rustdoc: make doctest span tweak a 2024 edition change Fixes #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.
2024-10-30Rollup merge of #129383 - cjgillot:opaque-noremap, ↵Jubilee-57/+41
r=compiler-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 https://github.com/rust-lang/rust/pull/129244/ Fixes https://github.com/rust-lang/rust/issues/125249 Fixes https://github.com/rust-lang/rust/issues/126850 cc `@compiler-errors` `@spastorino` r? `@petrochenkov`
2024-10-30style-guide: Only use the new binop heuristic for assignmentsJosh Triplett-11/+6
This avoids pathological cases where chains of binops get progressively deeper.
2024-10-30rustdoc-search: simplify rules for generics and type paramsMichael Howell-96/+342
This commit is a response to feedback on the displayed type signatures results, by making generics act stricter. Generics are tightened by making order significant. This means `Vec<Allocator>` now matches only with a true vector of allocators, instead of matching the second type param. It also makes unboxing within generics stricter, so `Result<A, B>` only matches if `B` is in the error type and `A` is in the success type. The top level of the function search is unaffected. Find the discussion on: * <https://rust-lang.zulipchat.com/#narrow/stream/393423-t-rustdoc.2Fmeetings/topic/meeting.202024-07-08/near/449965149> * <https://github.com/rust-lang/rust/pull/124544#issuecomment-2204272265> * <https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/deciding.20on.20semantics.20of.20generics.20in.20rustdoc.20search/near/476841363>