Commit Graph

303456 Commits

Author SHA1 Message Date
Lukas Wirth
c5f49cf071 fix: Stabilize sort order of related_tests 2025-02-16 13:18:47 +01:00
Samuel Tardieu
6dd477ad5a Add --allow-no-vcs to cargo dev dogfood --fix
Some developers might prefer to use alternate VCS, such as Jujutsu, which
are not detected by `cargo fix`. This forwards the `--allow-no-vcs`
command line argument to `cargo fix`.
2025-02-16 13:06:03 +01:00
Lukas Wirth
9e507b2117 Merge pull request #19161 from Veykril/push-prmuyxlnxzxo
fix: Improve sort order of runnables
2025-02-16 11:37:52 +00:00
Lukas Wirth
e6eadd3114 Merge pull request #19160 from Veykril/push-f3601671f6a468a8cc0774253ddaddff
Improve error recovery when method-calling an assoc function
2025-02-16 11:26:02 +00:00
Lukas Wirth
b54269c2b1 fix: Stabilize sort order of runnables 2025-02-16 12:22:26 +01:00
Urgau
2a8fbb5f56 Re-add missing empty lines in the releases notes 2025-02-16 12:15:55 +01:00
may
345c313def fix docs for inherent str constructors 2025-02-16 12:02:06 +01:00
bors
23032f31c9 Auto merge of #136363 - notriddle:notriddle/unresolved-link-unused-refdef, r=GuillaumeGomez
rustdoc: improve refdef handling in the unresolved link lint

This commit takes advantage of a feature in pulldown-cmark that makes the list of link definitions available to the consuming application. It produces unresolved link warnings for refdefs that aren't used, and can now produce exact spans for the dest even when it has escapes.

Closes #133150 since this lint would have caught the mistake in that issue, and, along with https://github.com/rust-lang/rust-clippy/pull/13707, most mistakes in this class should produce a warning from one of them.
2025-02-16 10:59:42 +00:00
Lukas Wirth
930918d827 Improve error recovery when method-calling an assoc function 2025-02-16 11:49:48 +01:00
许杰友 Jieyou Xu (Joe)
05ba1a450a rustc-dev-guide: document COMPILER and COMPILER_FOR tracing targets 2025-02-16 18:47:57 +08:00
许杰友 Jieyou Xu (Joe)
7b118168c7 bootstrap: take target by value in is_builder_target 2025-02-16 18:47:57 +08:00
许杰友 Jieyou Xu (Joe)
b621a485fa bootstrap: add more tracing to compiler/std/llvm flows 2025-02-16 18:47:57 +08:00
Chris Denton
95a5ecc995 Enable relative-path-include-bytes on Windows 2025-02-16 10:40:04 +00:00
Lukas Wirth
0a01cab098 Merge pull request #19159 from Veykril/push-kwtzytsyktpv
fix: Set `RUSTUP_TOOLCHAIN` when loading sysroot workspace
2025-02-16 10:08:51 +00:00
Lukas Wirth
af804d23e2 Set RUSTUP_TOOLCHAIN when loading sysroot workspace 2025-02-16 10:54:08 +01:00
onur-ozkan
56f8f48e05 fix broken x {doc, build} core
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-16 12:14:34 +03:00
Chris Denton
8ae3ca98e5 Fix test that relies on error language 2025-02-16 09:08:24 +00:00
Chris Denton
f396a31075 Add an example for std::error::Error 2025-02-16 08:14:41 +00:00
Ralf Jung
be1e087e14 Merge pull request #4195 from RalfJung/rustup
Rustup
2025-02-16 08:04:42 +00:00
bit-aloo
f6c911ab43 add unit test for cc-detect 2025-02-16 13:31:20 +05:30
bit-aloo
6bdf3407b4 add docs to cc-detect 2025-02-16 13:31:20 +05:30
bors
4229b80f50 Auto merge of #137111 - jhpratt:rollup-izd98sx, r=jhpratt
Rollup of 5 pull requests

Successful merges:

 - #135797 (Import initial generated 1.85 relnotes)
 - #135909 (Export kernel descriptor for amdgpu kernels)
 - #136545 (nvptx64: update default alignment to match LLVM 21)
 - #137092 (abi_unsupported_vector_types: say which type is the problem)
 - #137097 (Ignore Self in bounds check for associated types with Self:Sized)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-02-16 07:54:08 +00:00
Ralf Jung
703154d4f0 Merge from rustc 2025-02-16 08:38:29 +01:00
Ralf Jung
acdf9133ac Preparing for merge from rustc 2025-02-16 08:37:44 +01:00
Scott McMurray
7e35729bfc Don't project into NonNull when dropping a Box 2025-02-15 23:20:52 -08:00
Jacob Pratt
7884e171f7 Rollup merge of #137097 - compiler-errors:sized-bound-self, r=oli-obk
Ignore Self in bounds check for associated types with Self:Sized

Fixes https://github.com/rust-lang/rust/issues/137053

This is morally a fix of https://github.com/rust-lang/rust/pull/112319, since the `Self: Sized` check was just missing here.

r? oli-obk
2025-02-16 00:51:25 -05:00
Jacob Pratt
f10f0f09c8 Rollup merge of #137092 - RalfJung:abi_unsupported_vector_types-better-error, r=compiler-errors
abi_unsupported_vector_types: say which type is the problem
2025-02-16 00:51:25 -05:00
Jacob Pratt
d3556c6644 Rollup merge of #136545 - durin42:nvptx64-align, r=nikic
nvptx64: update default alignment to match LLVM 21

This changed in llvm/llvm-project@91cb8f5d32. The commit itself is mostly about some intrinsic instructions, but as an aside it also mentions something about addrspace for tensor memory, which I believe is what this string is telling us.

`@rustbot` label: +llvm-main
2025-02-16 00:51:24 -05:00
Jacob Pratt
20004d4bdd Rollup merge of #135909 - Flakebi:amdgpu-kd, r=jieyouxu,workingjubilee
Export kernel descriptor for amdgpu kernels

The host runtime (HIP or HSA) expects a kernel descriptor object for each kernel in the ELF file. The amdgpu LLVM backend generates the object. It is created as a symbol with the name of the kernel plus a `.kd` suffix.

Add it to the exported symbols in the linker script, so that it can be found.

For reference, the symbol is created here in LLVM: d5457e4c16/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp (L966)
I wrote [a test](6a9115b121) for this as well, I’ll add that once the target is merged and working.
With this, all PRs to get working code for amdgpu are open (this + the target + the two patches adding addrspacecasts for alloca and global variables).

Tracking issue: #135024

r? `@workingjubilee`
2025-02-16 00:51:24 -05:00
Jacob Pratt
aa37d799fc Rollup merge of #135797 - Mark-Simulacrum:relnotes, r=Mark-Simulacrum
Import initial generated 1.85 relnotes

https://forge.rust-lang.org/release/release-notes.html#release-team-step-5-publish-relnotes-pr

r? rust-lang/release
2025-02-16 00:51:23 -05:00
lapla-cogito
a12d5a0285 add suggestion example for cast_possible_wrap 2025-02-16 14:22:18 +09:00
bors
c3fe9e7e4d Auto merge of #137078 - bjorn3:sync_cg_clif-2025-02-15, r=bjorn3
Subtree sync for rustc_codegen_cranelift

This fixes a miscompilation (https://github.com/rust-lang/rustc_codegen_cranelift/issues/1560)

r? `@ghost`

`@rustbot` label +A-codegen +A-cranelift +T-compiler
2025-02-16 04:42:16 +00:00
Zachary S
0f220efb1a Restrict DerefPure for Cow<T> impl to T = impl Clone, [impl Clone], str. 2025-02-15 21:02:00 -06:00
bors
500a686ba8 Auto merge of #137093 - matthiaskrgr:rollup-72j7mut, r=matthiaskrgr
Rollup of 8 pull requests

Successful merges:

 - #127581 (Fix crate name validation)
 - #136490 (Do not allow attributes on struct field rest patterns)
 - #136808 (Try to recover from path sep error in type parsing)
 - #137055 (rustdoc: Properly restore search input placeholder)
 - #137068 (fix(rustdoc): Fixed `Copy Item Path` in rust doc)
 - #137070 (Do not generate invalid links in job summaries)
 - #137074 (compiletest: add `{ignore,only}-rustc_abi-x86-sse2` directives)
 - #137076 (triagebot.toml: ping me on changes to `tests/rustdoc-json`)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-02-16 01:29:09 +00:00
Kornel
ca288273b4 Make ub_check message clear that it's not an assert 2025-02-16 00:56:09 +00:00
Chai T. Rex
8417684228 Check all IDE config hashes in ./x test bootstrap, update Helix hash 2025-02-15 18:30:50 -05:00
Mark Rousskov
8aa2290b86 Add relnotes for 1.85 2025-02-15 18:16:05 -05:00
León Orell Valerian Liehr
84bdc5de6e HIR analysis: Remove unnecessary abstraction over list of clauses 2025-02-15 23:54:53 +01:00
cyrgani
f0a6af0baa remove MaybeUninit::uninit_array 2025-02-15 23:36:01 +01:00
Chai T. Rex
d9f125dcf2 Add support for the Zed IDE to ./x setup 2025-02-15 17:30:20 -05:00
bors
e72df78268 Auto merge of #137034 - cuviper:version-1.87.0, r=cuviper
Bump to version 1.87.0

https://forge.rust-lang.org/release/process.html#bump-the-stable-version-number-friday-the-week-before

r? cuviper
2025-02-15 22:19:13 +00:00
Noah Lev
34db7baf88 Merge pull request #2246 from marxin/CI-more-ofter
Run CI multiple times a day
2025-02-15 17:06:46 -05:00
Noah Lev
ba340ec086 Merge pull request #2254 from marxin/start-using-latest-linkcheck2
Start using latest release where -f checks all local links
2025-02-15 17:03:50 -05:00
Martin Liska
fcfabc1076 Fix CI schedule 2025-02-15 23:03:42 +01:00
Michael Goulet
17071ff8a5 Rework name_regions to not rely on reverse scc graph for non-member-constrain usages 2025-02-15 21:49:53 +00:00
Manish Goregaokar
8cef0b6809 new lint: manual_contains (#13817)
close #13353

Using `contains()` for slices are more efficient than using
`iter().any()`.

changelog: [`manual_contains`]: new lint
2025-02-15 21:37:05 +00:00
lapla-cogito
1c0e120d8b apply manual_contains to Clippy sources 2025-02-16 06:22:03 +09:00
lapla-cogito
fd17bfe57d add manual_contains lint 2025-02-16 06:21:57 +09:00
lapla-cogito
91548d0fe3 prevent useless_asref from suggesting .clone() on types without the Clone trait 2025-02-16 05:59:53 +09:00
Chai T. Rex
18d7ffa8fc Prepare ./x setup to handle more IDEs; make minor improvements
* Order IDEs alphabetically so that manually searching for an IDE
  is easier, both when running `./x setup` and when editing the
  source code behind `./x setup`
* Prepare for IDEs with spaces in their names
* Allow explicitly typing 'none' for the IDE
* Change capitalization of `Vscode` to the more standard `VsCode`
* Make minor efficiency improvements
* Add `'static` annotations where they apply
2025-02-15 15:48:25 -05:00