Commit Graph

303456 Commits

Author SHA1 Message Date
Jieyou Xu
fe7730f648 Stylize *-lynxos178-* target maintainer handle to make it easier to copy/paste 2025-08-02 15:24:44 +08:00
Lukas Wirth
2f60cef412 Interner arg to EarlyBinder does not affect auto traits
Conceptually `EarlyBinder` does not contain an `Interner` so it shouldn't tell Rust it does via `PhantomData`.
This is necessary for rust-analyzer as it stores `EarlyBinder`s in query results which require `Sync`, placing restrictions on our interner setup.
2025-08-02 08:48:31 +02:00
bors
889701db1f Auto merge of #129183 - estebank:cfg-visitor, r=davidtwco
Detect more `cfg`d out items in resolution errors

Use a visitor to collect *all* items (including those nested) that were stripped behind a `cfg` condition.

```
error[E0425]: cannot find function `f` in this scope
  --> $DIR/nested-cfg-attrs.rs:4:13
   |
LL | fn main() { f() }
   |             ^ not found in this scope
   |
note: found an item that was configured out
  --> $DIR/nested-cfg-attrs.rs:2:4
   |
LL | fn f() {}
   |    ^
note: the item is gated here
  --> $DIR/nested-cfg-attrs.rs:1:35
   |
LL | #[cfg_attr(all(), cfg_attr(all(), cfg(FALSE)))]
   |                                   ^^^^^^^^^^
```
2025-08-02 05:09:31 +00:00
Camille GILLOT
63e1327ce9 Use less HIR to compute effective visibility. 2025-08-02 02:08:52 +00:00
bors
c23f07d8c5 Auto merge of #144479 - cjgillot:incr-privacy-mod, r=petrochenkov
Perform check_private_in_public by module.

Based on https://github.com/rust-lang/rust/pull/116316
2025-08-02 01:59:11 +00:00
Waffle Lapkin
d2e133d96a don't warn on explicit casts of never to any 2025-08-02 02:03:20 +02:00
Waffle Lapkin
a067c6a3c6 refactor unreachable/expr_cast.rs test 2025-08-02 02:03:20 +02:00
blyxyas
01d960f645 Optimize broken_links by 99.77% 2025-08-02 01:59:48 +02:00
Esteban Küber
4b24c4bf23 Tweak rendering of cfg'd out item
```
error[E0433]: failed to resolve: could not find `doesnt_exist` in `inner`
  --> $DIR/diagnostics-cross-crate.rs:18:23
   |
LL |     cfged_out::inner::doesnt_exist::hello();
   |                       ^^^^^^^^^^^^ could not find `doesnt_exist` in `inner`
   |
note: found an item that was configured out
  --> $DIR/auxiliary/cfged_out.rs:6:13
   |
LL |     #[cfg(false)]
   |           ----- the item is gated here
LL |     pub mod doesnt_exist {
   |             ^^^^^^^^^^^^
```
2025-08-01 23:58:15 +00:00
stifskere
066023e47c feat: implement hash_map! macro 2025-08-02 01:32:52 +02:00
Tshepang Mbambo
171c2478c0 Merge pull request #2526 from rust-lang/rustc-pull
Rustc pull update
2025-08-02 00:40:01 +02:00
Esteban Küber
77f75f91c5 tiny cleanup 2025-08-01 22:11:45 +00:00
Esteban Küber
4ba4559a9d remove recursive search for items 2025-08-01 22:02:52 +00:00
Esteban Küber
5210c501bc Limit how deep we visit items to find cfg'd out names 2025-08-01 21:51:05 +00:00
Esteban Küber
adcda6ca9a Detect more cfgd out items in resolution errors
Use a visitor to collect *all* items (including those nested) that were stripped behind a `cfg` condition.

```
error[E0425]: cannot find function `f` in this scope
  --> $DIR/nested-cfg-attrs.rs:4:13
   |
LL | fn main() { f() }
   |             ^ not found in this scope
   |
note: found an item that was configured out
  --> $DIR/nested-cfg-attrs.rs:2:4
   |
LL | fn f() {}
   |    ^
note: the item is gated here
  --> $DIR/nested-cfg-attrs.rs:1:35
   |
LL | #[cfg_attr(all(), cfg_attr(all(), cfg(FALSE)))]
   |                                   ^^^^^^^^^^
```
2025-08-01 21:50:36 +00:00
Mingwei Samuel
f516d4c9e3 rustdoc font links only emit crossorigin when needed
The `crossorigin` attribute may cause issues when the href is not actuall across origins. Specifically, the tag causes the browser to send a preflight OPTIONS request to the href even if it is same-origin.
Some tempermental servers may reject all CORS preflect requests even if they're actually same-origin, which causes a CORS error and prevents the fonts from loading, even later on.

This commit fixes that problem by not emitting `crossorigin` if the url looks like a domain-relative url.

Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2025-08-01 14:42:17 -07:00
bors
63f6845e57 Auto merge of #144458 - compiler-errors:no-witness-mini, r=lcnr
Remove the witness type from coroutine *args* (without actually removing the type)

This does as much of rust-lang/rust#144157 as we can without having to break rust-lang/rust#143545 and/or introduce some better way of handling higher ranked assumptions.

Namely, it:
* Stalls coroutines based off of the *coroutine* type rather than the witness type.
* Reworks the dtorck constraint hack to not rely on the witness type.
* Removes the witness type from the args of the coroutine, eagerly creating the type for nested obligations when needed (auto/clone impls).

I'll experiment with actually removing the witness type in a follow-up.

r? lcnr
2025-08-01 21:07:49 +00:00
Nico Lehmann
4c7c9de8ac Fix safety comment for new_unchecked in niche_types 2025-08-01 14:00:56 -07:00
bjorn3
ae2f8d9216 Remove the omit_gdb_pretty_printer_section attribute
Disabling loading of pretty printers in the debugger itself is more
reliable. Before this commit the .gdb_debug_scripts section couldn't be
included in dylibs or rlibs as otherwise there is no way to disable the
section anymore without recompiling the entire standard library.
2025-08-01 20:04:59 +00:00
Sasha Pourcelot
21ab47e3cb Add my previous commit name to .mailmap 2025-08-01 21:59:56 +02:00
lucarlig
19c6815a21 Multiple bounds checking elision failures 2025-08-01 18:38:22 +01:00
lucarlig
1a64684b04 LLVM error with unsupported expression in static initializer for const pointer in array on macOS 2025-08-01 18:01:21 +01:00
zachs18
fe720181b5 Update compiler/rustc_const_eval/src/interpret/memory.rs
Replace commented-out code with link to context for change.

Co-authored-by: Ralf Jung <post@ralfj.de>
2025-08-01 11:06:13 -05:00
dswij
94b703588e Do not specialize for if_chain any longer (#15362)
Now that `if let` chains have been introduced, the `if_chain` external
crate is no longer necessary. Dropping special support for it also
alleviates the need to keep the crate as a dependency in tests.

This is a cleanup PR.

changelog: none
2025-08-01 15:52:00 +00:00
Ifeanyi Orizu
7d167260ca Fix more docs 2025-08-01 10:48:54 -05:00
Ifeanyi Orizu
053f68151b Update documentation for overrideCommand config options 2025-08-01 10:48:54 -05:00
Antoni Boucher
bc5c2229d0 Fix issues in count_leading_zeroes 2025-08-01 11:29:05 -04:00
Jonathan Brouwer
32cf3d48b3 Cleanup the definition of group_type
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-08-01 17:08:02 +02:00
bit-aloo
7f20ad86ba move dist and gcc config to the top of parse method 2025-08-01 20:34:32 +05:30
bit-aloo
f74f1a006c move llvm config to the top of parse method 2025-08-01 20:34:30 +05:30
Antoni Boucher
071606b2a3 Add failing LTO test 2025-08-01 11:01:59 -04:00
bit-aloo
120d93efdb move rust config to the top of parse method 2025-08-01 20:30:53 +05:30
bit-aloo
39d9cf7d95 move install config to the top of parse method 2025-08-01 20:30:53 +05:30
bit-aloo
a75326bde1 move build config to the top of parse method 2025-08-01 20:30:53 +05:30
bit-aloo
2c96132c72 make build toml fields follow a specific naming convention 2025-08-01 20:30:50 +05:30
bit-aloo
ad98550f70 make install toml fields follow a specific naming convention 2025-08-01 20:27:49 +05:30
bit-aloo
4d2a2c22b5 make dist toml fields follow a specific naming convention 2025-08-01 20:27:48 +05:30
bit-aloo
c008a4b49c make gcc toml fields follow a specific naming convention 2025-08-01 20:27:48 +05:30
bit-aloo
d3d3b10e82 make llvm toml fields follow a specific naming convention 2025-08-01 20:27:48 +05:30
bit-aloo
8b80cb0ac7 add rust default implementation 2025-08-01 20:27:48 +05:30
bit-aloo
38ddefa15d add llvm default implementation 2025-08-01 20:27:48 +05:30
bit-aloo
bbe7c08762 add gcc and dist default implementation 2025-08-01 20:27:48 +05:30
bit-aloo
222dfcc02f add install default implementation 2025-08-01 20:27:48 +05:30
bit-aloo
58a38cd7de Fix verbosity setting 2025-08-01 20:27:47 +05:30
bit-aloo
8652d96ff7 Fix logging of config skip values 2025-08-01 20:27:47 +05:30
bit-aloo
cfc40de9c5 Override some build TOML values by flags 2025-08-01 20:27:47 +05:30
bit-aloo
f89ea086c4 Split TOML postprocessing into a separate function 2025-08-01 20:27:47 +05:30
bit-aloo
82756fd5f3 Extract TOML config loading and src directory computation into separate functions 2025-08-01 20:27:47 +05:30
bit-aloo
ae05591ade Force initializing ExecutionContext with verbosity and fail_fast mode 2025-08-01 20:27:47 +05:30
bit-aloo
ddd2a547b2 move rust config to parse_inner 2025-08-01 20:27:45 +05:30