35092 Commits

Author SHA1 Message Date
Laurențiu Nicola
e2c3647c6a
Merge pull request #19994 from sourcefrog/book-links
Fix some links in the book
2025-06-16 07:02:59 +00:00
Chayim Refael Friedman
a207299344
Merge pull request #20000 from tadeokondrak/lifetime-repeat-macro
Allow lifetime repeats in macros: $($x)'a*
2025-06-16
2025-06-15 16:34:42 +00:00
Tadeo Kondrak
2070e9a8f3 Use is_any_identifier in pretty_print_macro_expansion 2025-06-15 18:23:18 +02:00
Tadeo Kondrak
12226b704a Fix spacing for LIFETIME_IDENT near keywords and literals in test output 2025-06-15 17:43:45 +02:00
Deadbeef
4ca88ff6a9 clarify rustc_do_not_const_check comment 2025-06-15 20:40:08 +08:00
Lukas Wirth
3d9daeec36
Merge pull request #20009 from Veykril/push-rvnnorzvpnqv
Optimize `pub(crate)` and `pub(self)` visibility resolution
2025-06-15 08:36:27 +00:00
Lukas Wirth
b3768cdc0e Optimize private visibility resolution 2025-06-15 10:25:45 +02:00
Lukas Wirth
e129cdc202 Optimize pub(crate) visibility resolution 2025-06-15 10:25:45 +02:00
Lukas Wirth
d822f6a0ed
Merge pull request #20008 from Veykril/push-rsnkrwyplmwr
More idiomatic salsa use
2025-06-15 08:12:11 +00:00
Lukas Wirth
4b38ea5abd Unify assoc item visibility queries 2025-06-15 10:01:34 +02:00
Lukas Wirth
bceeb6a3c7 Idiomatic salsa use for extern block abi query 2025-06-15 10:01:04 +02:00
Lukas Wirth
4e392f82cb Idiomatic salsa use for impl items query 2025-06-15 09:40:02 +02:00
Lukas Wirth
155ef3de60 Replace unnecessary use of MacroDefId with MacroId 2025-06-15 09:16:45 +02:00
Lukas Wirth
08f795335b
Merge pull request #20007 from Veykril/push-opqzsnwzwyvn
Idiomatic salsa use for enum variants query
2025-06-15 07:15:22 +00:00
Lukas Wirth
aa2d234426 Idiomatic salsa use for enum variants query 2025-06-15 09:03:44 +02:00
Lukas Wirth
188b0667ce
Merge pull request #20006 from Veykril/push-uvmuznvlwsxx
Cleanup incremental tests and verify query executions
2025-06-15 06:25:54 +00:00
Lukas Wirth
f68512af65 Cleanup incremental tests 2025-06-15 08:07:49 +02:00
bors
6da11e1510 Auto merge of #142388 - cjgillot:span-hash, r=davidtwco
Do not clone Arc when hashing span.

Tiny improvement I was when trying to profile span hashing.
2025-06-15 05:27:08 +00:00
Chayim Refael Friedman
4d30c53ceb
Merge pull request #19996 from LHolten/exclude-imports
Add support for excluding imports from symbol search
2025-06-15 00:52:44 +00:00
Lucas Holten
dc85e3ee35 Add config option to exclude imports from symbol search 2025-06-15 02:41:35 +02:00
bors
4854294847 Auto merge of #142335 - nnethercote:rustdoc-json-allocations, r=aDotInTheVoid
rustdoc_json: reduce allocations

These commits reduce the number of allocations done for rustdoc_json, mostly by avoiding unnecessary clones.

Best reviewed one commit at a time.

r? `@aDotInTheVoid`
2025-06-14 23:21:16 +00:00
bors
20dce9d9b8 Auto merge of #142259 - sayantn:simplify-intrinsics, r=workingjubilee
Simplify implementation of Rust intrinsics by using type parameters in the cache

The current implementation of intrinsics have a lot of duplication to handle different overloads of overloaded LLVM intrinsic. This PR uses the **base name and the type parameters** in the cache instead of the full, overloaded name. This has the benefit that `call_intrinsic` doesn't need to provide the full name, rather the type parameters (which is most of the time more available). This uses `LLVMIntrinsicCopyOverloadedName2` to get the overloaded name from the base name and the type parameters, and only uses it to declare the function.

(originally was part of rust-lang/rust#140763, split off later)

`@rustbot` label A-codegen A-LLVM
r? codegen
2025-06-14 16:43:34 +00:00
bors
bc762e2666 Auto merge of #142129 - shepmaster:mismatched-syntaxes-in-function-like-places, r=jieyouxu
Apply `mismatched-lifetime-syntaxes` to trait and extern functions

r? `@jieyouxu`
2025-06-14 12:37:35 +00:00
Lukas Wirth
fe5a925a74
Merge pull request #19984 from WaffleLapkin/unprefer_align
remove `pref_align_of` intrinsic handling, rename `{min_=>}align_of{,_val}`
2025-06-14 05:13:06 +00:00
Tadeo Kondrak
a7c09532a0 Allow lifetime repeats in macros: $($x)'a*
This works in rustc. This change isn't motivated by any real code.
I just learned about it and decided to see why it doesn't work with
rust-analyzer.
2025-06-13 18:13:01 -06:00
Waffle Lapkin
cfc416a7ba
remove pref_align_of intrinsic handling, rename {min_=>}align_of{,_val} 2025-06-13 21:31:46 +02:00
Lukas Wirth
a497f4114c
Merge pull request #19997 from Veykril/push-xltylvqtpwzx
Remove `InternedCallableDefId`
2025-06-13 15:41:49 +00:00
Lukas Wirth
de34303074
Merge pull request #19995 from Veykril/push-zpyyzqqpywno
Turn `BlockId` into a `#[salsa::tracked]`
2025-06-13 15:41:44 +00:00
Lukas Wirth
133418e3cc Remove InternedCallableDefId
It's unnecessary
2025-06-13 17:30:50 +02:00
Lukas Wirth
8643a858db Turn BlockId into a #[salsa::tracked] 2025-06-13 17:30:04 +02:00
Martin Pool
e3c75abe67 Make the URL a hyperlink 2025-06-13 07:36:51 -07:00
Martin Pool
5702eadd27 Fix link to the contribution guide 2025-06-13 07:35:34 -07:00
Lukas Wirth
a642aa8023
Merge pull request #19992 from Veykril/push-uxpqwrxqtlvm
Use `ThinVec` in `ItemScope` in a couple places
2025-06-13 13:45:31 +00:00
Lukas Wirth
9f051ee104 Use ThinVec in ItemScope in a couple places 2025-06-13 15:34:03 +02:00
Lukas Wirth
14951bf406
Merge pull request #19991 from Veykril/push-kzqoxzmxqnkl
perf: Bring back `EMPTY` item tree deduplication
2025-06-13 13:12:19 +00:00
Lukas Wirth
b9ce647cf1 Bring back EMPTY item tree deduplication 2025-06-13 14:51:23 +02:00
Lukas Wirth
c0258d01ba
Merge pull request #19990 from Veykril/push-zkvrlrotmuzr
Generate annotations for macro defined items if their name is in the input
2025-06-13 11:41:26 +00:00
Lukas Wirth
d78cade65e Generate annotations for macro defined items if their name is in the input 2025-06-13 13:30:09 +02:00
Lukas Wirth
bd002fe65c
Merge pull request #19982 from Veykril/push-uptnmqtlylsx
Simplify and optimize `ItemTree`
2025-06-13 11:16:24 +00:00
Lukas Wirth
16ebd2990f Remove unnecessary item tree query calls 2025-06-13 13:05:52 +02:00
Lukas Wirth
042e238c1a
Merge pull request #19989 from Veykril/push-xrqwoukkltnm
`cargo update` and `cargo upgrade`
2025-06-13 08:19:08 +00:00
Lukas Wirth
23712aea06 cargo upgrade 2025-06-13 10:08:20 +02:00
Lukas Wirth
95d5091a09 cargo update
Updating adler2 v2.0.0 -> v2.0.1
    Updating anyhow v1.0.97 -> v1.0.98
    Updating bitflags v2.9.0 -> v2.9.1
    Updating borsh v1.5.5 -> v1.5.7
    Updating boxcar v0.2.12 -> v0.2.13
    Updating camino v1.1.9 -> v1.1.10
    Updating cc v1.2.16 -> v1.2.26
    Updating cfg-if v1.0.0 -> v1.0.1
    Updating flate2 v1.1.1 -> v1.1.2
    Updating foldhash v0.1.4 -> v0.1.5
    Updating getrandom v0.2.15 -> v0.2.16
    Updating hashbrown v0.15.2 -> v0.15.4
    Updating hermit-abi v0.3.9 -> v0.5.2
    Updating icu_collections v1.5.0 -> v2.0.0
      Adding icu_locale_core v2.0.0
    Removing icu_locid v1.5.0
    Removing icu_locid_transform v1.5.0
    Removing icu_locid_transform_data v1.5.0
    Updating icu_normalizer v1.5.0 -> v2.0.0
    Updating icu_normalizer_data v1.5.0 -> v2.0.0
    Updating icu_properties v1.5.1 -> v2.0.1
    Updating icu_properties_data v1.5.0 -> v2.0.1
    Updating icu_provider v1.5.0 -> v2.0.0
    Removing icu_provider_macros v1.5.0
    Updating idna_adapter v1.2.0 -> v1.2.1
    Updating kqueue v1.0.8 -> v1.1.1
    Updating libloading v0.8.7 -> v0.8.8
    Updating libmimalloc-sys v0.1.40 -> v0.1.42
    Updating litemap v0.7.5 -> v0.8.0
    Updating lock_api v0.4.12 -> v0.4.13
    Updating log v0.4.26 -> v0.4.27
    Updating memchr v2.7.4 -> v2.7.5
    Updating mimalloc v0.1.44 -> v0.1.46
    Updating miniz_oxide v0.8.5 -> v0.8.9
    Updating mio v1.0.3 -> v1.0.4
    Updating num_cpus v1.16.0 -> v1.17.0
    Updating once_cell v1.21.1 -> v1.21.3
    Updating parking_lot v0.12.3 -> v0.12.4
    Updating parking_lot_core v0.9.10 -> v0.9.11
    Updating portable-atomic v1.11.0 -> v1.11.1
      Adding potential_utf v0.1.2
    Updating proc-macro2 v1.0.94 -> v1.0.95
    Updating redox_syscall v0.5.10 -> v0.5.13
    Updating rustc-demangle v0.1.24 -> v0.1.25
    Updating rustc_apfloat v0.2.2+llvm-462a31f5a5ab -> v0.2.3+llvm-462a31f5a5ab
    Updating serde_spanned v0.6.8 -> v0.6.9
    Updating smallvec v1.14.0 -> v1.15.1
    Updating syn v2.0.100 -> v2.0.103
    Updating synstructure v0.13.1 -> v0.13.2
    Updating tenthash v1.0.0 -> v1.1.0
    Updating thread_local v1.1.8 -> v1.1.9
    Updating time v0.3.40 -> v0.3.41
    Updating time-macros v0.2.21 -> v0.2.22
    Updating tinystr v0.7.6 -> v0.8.1
    Updating toml v0.8.20 -> v0.8.23
    Updating toml_datetime v0.6.8 -> v0.6.11
    Updating toml_edit v0.22.24 -> v0.22.27
      Adding toml_write v0.1.2
    Updating tracing-attributes v0.1.28 -> v0.1.29
    Updating tracing-core v0.1.33 -> v0.1.34
    Removing utf16_iter v1.0.5
    Updating wasi v0.11.0+wasi-snapshot-preview1 -> v0.11.1+wasi-snapshot-preview1
    Updating windows v0.61.1 -> v0.61.3
    Updating windows-core v0.61.0 -> v0.61.2
    Updating windows-future v0.2.0 -> v0.2.1
    Updating windows-link v0.1.1 -> v0.1.3
    Updating windows-result v0.3.2 -> v0.3.4
    Updating windows-strings v0.4.0 -> v0.4.2
      Adding windows-sys v0.60.2
    Updating windows-targets v0.53.0 -> v0.53.2
      Adding windows-threading v0.1.0
    Updating winnow v0.7.3 -> v0.7.11
    Removing write16 v1.0.0
    Updating writeable v0.5.5 -> v0.6.1
    Updating yoke v0.7.5 -> v0.8.0
    Updating yoke-derive v0.7.5 -> v0.8.0
      Adding zerotrie v0.2.2
    Updating zerovec v0.10.4 -> v0.11.2
    Updating zerovec-derive v0.10.3 -> v0.11.1
2025-06-13 09:46:52 +02:00
Lukas Wirth
048a01a05d Remove ast ids from item tree mod items 2025-06-13 08:47:25 +02:00
Lukas Wirth
65e2e2c083 Split mod items into small and big variants 2025-06-13 08:24:50 +02:00
Lukas Wirth
ace69d93e0 Store item tree visibilities in a thin vec 2025-06-13 08:09:57 +02:00
Laurențiu Nicola
bff3e1eb26
Merge pull request #19988 from Kobzol/fix-label-link
Fix link to good first issues
2025-06-13 06:06:39 +00:00
Jakub Beránek
4ed107fbc9
Fix link to good first issues 2025-06-13 07:55:07 +02:00
Lukas Wirth
87f99c7dbd
Merge pull request #19985 from ChayimFriedman2/proc-macro-srv-ast-id
fix: Support spans with proc macro servers from before the ast id changes
2025-06-12 13:26:03 +00:00
Chayim Refael Friedman
3e834add61 Support spans with proc macro servers from before the ast id changes
The only thing changed is the value of the fixup ast id, so we just swap it.
2025-06-12 16:08:48 +03:00