Commit Graph

303456 Commits

Author SHA1 Message Date
Vadim Petrochenkov
1a9a226058 resolve: Import ty::Visibility everywhere 2025-07-16 08:30:48 +03:00
Scott McMurray
4fa23d96bc Improve comments inside codegen_get_discr 2025-07-15 22:30:46 -07:00
Vadim Petrochenkov
01b546a19b resolve: Remove trait ToNameBinding 2025-07-16 08:30:44 +03:00
Vadim Petrochenkov
babe2c0d0f resolve: Merge NameBindingKind::Module into NameBindingKind::Res 2025-07-16 08:28:17 +03:00
bors
231257f583 Auto merge of #144003 - ChrisDenton:ci4, r=ChrisDenton
Ensure home directory exists

This works around a missing mingw home directory in CI.
2025-07-16 03:17:45 +00:00
Chris Denton
262d02e6fd Ensure home directory exists
This works around a missing mingw home directory in CI
2025-07-16 03:15:06 +00:00
Martin Ombura Jr.
f1d84468c8 Update poison.rs
Typo in word "below"
2025-07-15 20:07:03 -07:00
Eric Huss
10bc064d89 Update cargo 2025-07-15 18:32:00 -07:00
Jacob Greenfield
c6e1b21777 Use hygenic macros for stable-mir 2025-07-15 20:47:09 -04:00
Jules Bertholet
87dd4695fe Add Default impls for Pinned Box, Rc, Arc 2025-07-15 17:41:31 -04:00
Jonathan Brouwer
bfa45ac78b Add regression test
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-15 23:28:15 +02:00
Jonathan Brouwer
8e400f97e5 Fix ice for feature-gated cfg attributes applied to the crate
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-15 23:28:15 +02:00
Ibraheem Ahmed
d060859376 add test for global constructors 2025-07-15 17:24:47 -04:00
Ibraheem Ahmed
85c89494d9 add support for global constructors (i.e. life before main) 2025-07-15 17:24:44 -04:00
Cameron Steffen
1120cb2fe5 Add LocalKey<Cell>::update 2025-07-15 16:17:57 -05:00
Folkert de Vries
bdd1ca1eea aarch64: check for trn1 and trn2 2025-07-15 22:17:03 +02:00
Folkert de Vries
c13e3aa6b4 aarch64: check for uzp1 and uzp2 2025-07-15 22:17:02 +02:00
Folkert de Vries
ce3eabfd70 aarch64: check for zip1 and zip2 2025-07-15 22:17:02 +02:00
binarycat
bbb114ef61 ci cleanup: rustdoc-gui-test now installs browser-ui-test
this removes the need for --unsafe-perm in the Dockerfile.
2025-07-15 14:39:53 -05:00
Philipp Krones
ae1d3aea41 Use $RUSTC instead of rustc to get version if var is available (#15250)
Fixes rust-lang/rust-clippy#15249

For the builtin rustc, it should return "dev" as the release channel.
Clippy tests pass with this patch in both the Clippy standalone
repository and from within the compiler repository.

changelog: none
2025-07-15 18:51:39 +00:00
Folkert de Vries
6444994556 aarch64/arm: fix tests that matched on prefix of instruction 2025-07-15 20:20:46 +02:00
Folkert de Vries
f6f6715990 s390x: fix tests that matched on prefix of instruction 2025-07-15 20:20:46 +02:00
Folkert de Vries
f8de93acbe stdarch-test: error if only part of an instruction matched 2025-07-15 20:20:46 +02:00
Folkert de Vries
36340cd774 stdarch-test: misc cleanups 2025-07-15 20:20:46 +02:00
Folkert de Vries
7ff9bcfd1e stdarch-test: use std::sync::LazyLock instead of lazy_static! 2025-07-15 20:20:46 +02:00
Folkert de Vries
5cb1e01a94 update Cargo.lock 2025-07-15 20:20:45 +02:00
Jakub Beránek
4f1b3e3afc Clarify comments 2025-07-15 19:47:57 +02:00
Alona Enraght-Moony
078332fdc8 rustdoc-json: Structured attributes
Implements https://www.github.com/rust-lang/rust/issues/141358.

This has 2 primary benefits:

1. For rustdoc-json consumers, they no longer need to parse strings of
   attributes, but it's there in a structured and normalized way.
2. For rustc contributors, the output of HIR pretty printing is no
   longer a versioned thing in the output. People can work on
   https://github.com/rust-lang/rust/issues/131229 without needing to
   bump `FORMAT_VERSION`.

(Over time, as the attribute refractor continues, I expect we'll add new
things to `rustdoc_json_types::Attribute`. But this can be done
separately to the rustc changes).
2025-07-15 16:52:41 +00:00
Deadbeef
fd48b7b8dd Comment more code and make tests clearer
Co-Authored-By: Ralf Jung <post@ralfj.de>
2025-07-16 00:50:20 +08:00
bit-aloo
306928fc11 update change tracking with warning on removal of fields. 2025-07-15 22:05:00 +05:30
Deadbeef
44b38ca45e format pointer later instead of eagerly converting to string 2025-07-16 00:32:12 +08:00
Deadbeef
3f2dc2bd1a add const_make_global; err for const_allocate ptrs if didn't call
Co-Authored-By: Ralf Jung <post@ralfj.de>
Co-Authored-By: Oli Scherer <github333195615777966@oli-obk.de>
2025-07-16 00:32:12 +08:00
bit-aloo
76967afd3b remove ccache from llvm 2025-07-15 21:59:59 +05:30
bit-aloo
e7f5bbe743 remove description from rust toml struct 2025-07-15 21:59:59 +05:30
Shoyu Vanilla (Flint)
42758bbbd5 Merge pull request #20178 from ShoyuVanilla/cargo-config-cleanup
chore: Cleanup cargo config queries
2025-07-15 16:13:30 +00:00
Michael Goulet
3634f46fdb Add alias for ArgOutlivesPredicate 2025-07-15 16:02:26 +00:00
Michael Goulet
78fa79e7a6 Add tests, some of them fail... 2025-07-15 16:02:26 +00:00
Michael Goulet
512cf3ae88 Gate things properly 2025-07-15 16:02:26 +00:00
Michael Goulet
e3f643c706 Consider outlives assumptions when proving auto traits for coroutine interiors 2025-07-15 16:02:26 +00:00
Michael Goulet
3e7dfaa510 Deduce outlives obligations from WF of coroutine interior types 2025-07-15 16:02:26 +00:00
Michael Goulet
7976ca2442 Add outlives to CoroutineWitnessTypes 2025-07-15 15:58:08 +00:00
Havard Eidnes
8770e5734e Add 0323pin as target maintainer, and fix link to pkgsrc-wip and explain. 2025-07-15 23:57:33 +08:00
yanglsh
038295adf8 fix: filter_map_bool_then wrongly showed macro definition in suggestions 2025-07-15 23:07:39 +08:00
Laurențiu Nicola
0393e061e7 Merge pull request #20243 from lnicola/sync-from-rust
minor: Sync from downstream
2025-07-15 14:52:23 +00:00
bors
3014e79f9c Auto merge of #143877 - xizheyin:143813, r=scottmcm,saethlin
`std::vec`: Add UB check for `set_len`, `from_raw_parts_in`, and etc.

Closes rust-lang/rust#143813

I noticed that `from_parts_in` do the similar things like `from_raw_parts_in`, so I add the UB check in the last commit. If it is not appropriate, I will remove it.

And I fix a typo in the first commit.

r? `@scottmcm`
2025-07-15 14:47:10 +00:00
Laurențiu Nicola
28f822f100 Format and bump rustc crates 2025-07-15 17:41:08 +03:00
Ralf Jung
62aea72e36 Merge pull request #4469 from Patrick-6/add-spinloop-hints
Add std::hint::spin_loop() to tests
2025-07-15 14:28:27 +00:00
Laurențiu Nicola
48f9a7cb3c Merge from rust-lang/rust 2025-07-15 17:27:46 +03:00
Laurențiu Nicola
ec3443f573 Preparing for merge from rust-lang/rust 2025-07-15 17:27:21 +03:00
SunkenPotato
05154af3e8 docs: update documentation of core::mem::copy to include const on the fn signature 2025-07-15 16:26:24 +02:00