Ralf Jung
ce5c691114
adjust the way we build miri-script in RA, to fix proc-macros
2025-01-11 19:45:13 +01:00
geetanshjuneja
ac7d9a1a94
Supported fioclex for ioctl on macos
2025-01-11 23:12:52 +05:30
Matthias Krüger
0bb0f0412f
Rollup merge of #135205 - lqd:bitsets, r=Mark-Simulacrum
...
Rename `BitSet` to `DenseBitSet`
r? `@Mark-Simulacrum` as you requested this in https://github.com/rust-lang/rust/pull/134438#discussion_r1890659739 after such a confusion.
This PR renames `BitSet` to `DenseBitSet` to make it less obvious as the go-to solution for bitmap needs, as well as make its representation (and positives/negatives) clearer. It also expands the comments there to hopefully make it clearer when it's not a good fit, with some alternative bitsets types.
(This migrates the subtrees cg_gcc and clippy to use the new name in separate commits, for easier review by their respective owners, but they can obvs be squashed)
2025-01-11 18:13:47 +01:00
Ralf Jung
471d830106
avoid nesting the user-defined main so deeply on the stack
2025-01-11 15:53:42 +01:00
Ralf Jung
9f7fe81d53
use a single large catch_unwind in lang_start
2025-01-11 15:50:53 +01:00
bors
fb65a3ee57
Auto merge of #135292 - lqd:rustcperfup, r=kobzol
...
bump `rustc-perf` submodule
This updates the `rustc-perf` submodule to pull in the recent changes, in particular the error handling in https://github.com/rust-lang/rustc-perf/pull/2021 fixing the error we saw in a recent run.
I think I did this correctly, submodules are so annoying.
r? kobzol
(opening as draft to do a perf run and check that nothing has changed indeed)
2025-01-11 11:54:26 +00:00
Rémy Rakic
95cbb3b964
migrate clippy to the DenseBitSet name
2025-01-11 11:34:04 +00:00
Josh Triplett
049217b65a
Add bstr files to linkchecker since they have a Deref to slice
...
The Deref brings in the documentation from slice, so it has the same
issue as slice.
2025-01-11 06:35:21 +02:00
Wilfred Hughes
442c4edb09
minor: Fix grammar in doc comments
...
"too" should be "to" here.
2025-01-10 17:38:14 -08:00
Alona Enraght-Moony
2a2b090d12
jsondoclint: Check that Path types exitst in Crate::paths.
2025-01-10 23:51:45 +00:00
Alona Enraght-Moony
97ada592c0
jsondoclint: Support //@ !has <path> <value>.
...
This was removed for not being used [1], but now we need it.
[1]: https://github.com/rust-lang/rust/pull/133478#discussion_r1874358362
2025-01-10 23:51:45 +00:00
Weihang Lo
cd24a90493
Update cargo
2025-01-10 17:13:58 -05:00
Yoh Deadfall
b0ac8c4039
Switched FreeBSD to pthread_setname_np
2025-01-10 21:51:26 +03:00
Ralf Jung
ba44c88167
fix clippy warning
2025-01-10 15:55:48 +01:00
Ralf Jung
a86d0f3baf
disable threading tests on freebsd for now
2025-01-10 15:39:06 +01:00
Ralf Jung
20c7b31356
Preparing for merge from rustc
2025-01-10 15:38:00 +01:00
Lukas Wirth
6d05207cca
Merge pull request #18907 from Veykril/push-uqlzpttmvurv
...
Implement `#[rust_analyzer::skip]` for bodies
2025-01-10 13:59:23 +00:00
Lukas Wirth
a40bbcfdf8
Implement #[rust_analyzer::skip] for bodies
2025-01-10 14:41:27 +01:00
jnyfah
337f2c9061
Missing errors
2025-01-10 14:22:00 +01:00
Lukas Wirth
a006eaba79
Re-implement rust string highlighting via tool attribute
2025-01-10 13:49:35 +01:00
Lukas Wirth
f513b27ed5
Merge pull request #18904 from Veykril/push-yztnorquuyzw
...
Improve hover module path rendering
2025-01-10 11:53:38 +00:00
Lukas Wirth
17a6f31738
Implement implicit sized bound inlay hints
2025-01-10 12:38:21 +01:00
Lukas Wirth
9a9b069fa5
Improve hover module path rendering
2025-01-10 12:36:55 +01:00
Lukas Wirth
65a97e6475
Merge pull request #18900 from ChayimFriedman2/stupid-hang
...
fix: Do not compute `prettify_macro_expansion()` unless the "Inline macro" assist has actually been invoked
2025-01-10 11:02:54 +00:00
Lukas Wirth
78213905bc
Merge pull request #18902 from Veykril/push-znlsxykqrkoo
...
internal: Add Definition::Crate
2025-01-10 10:01:43 +00:00
Lukas Wirth
c4ffd32ac4
internal: Add Definition::Crate
...
This is its own thing so it should be handled specifically where possible
2025-01-10 10:45:44 +01:00
Jacob Pratt
0dcbda8225
Rollup merge of #135251 - oli-obk:push-lmpyvvyrtplk, r=ytmimi
...
Only treat plain literal patterns as short
See https://github.com/rust-lang/rust/pull/134228#discussion_r1905848384 and https://github.com/rust-lang/rust/pull/134228#discussion_r1905916702 for context. We never wanted to treat const blocks and paths as short, only plain literals.
I don't know how to write a test for this, it.s not clear to me how the short pattern check actually affects the formatting
2025-01-10 03:55:21 -05:00
Lukas Wirth
ab7f367f2a
Merge pull request #18901 from ChayimFriedman2/hir-reexport
...
minor: Remove two hir reexports
2025-01-10 06:57:18 +00:00
Lukas Wirth
5adca85d1b
Merge pull request #18813 from Giga-Bowser/syntax-tree-view
...
feat: Add a new and improved syntax tree view
2025-01-10 06:56:34 +00:00
bors
67951d946a
Auto merge of #135319 - matthiaskrgr:rollup-un5lol6, r=matthiaskrgr
...
Rollup of 8 pull requests
Successful merges:
- #133088 (`-Zrandomize-layout` harder. `Foo<T> != Foo<U>`)
- #134619 (Improve prose around `as_slice` example of IterMut)
- #134855 (Add `default_field_values` entry to unstable book)
- #134908 (Fix `ptr::from_ref` documentation example comment)
- #135275 (Add Pin::as_deref_mut to 1.84 relnotes)
- #135294 (Make `bare-fn-no-impl-fn-ptr-99875` test less dependent on path width)
- #135304 (Add tests cases from review of #132289 )
- #135308 (Make sure to walk into nested const blocks in `RegionResolutionVisitor`)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-01-10 06:05:05 +00:00
Matthias Krüger
eaf420638e
Rollup merge of #133088 - the8472:randomize-me-harder, r=workingjubilee
...
`-Zrandomize-layout` harder. `Foo<T> != Foo<U>`
Tracking issue: #106764
Previously randomize-layout only used a deterministic shuffle based on the seed stored in an Adt's ReprOptions, meaning that `Foo<T>` and `Foo<U>` were shuffled by the same seed. This change adds a similar seed to each calculated LayoutData so that a struct can be randomized both based on the layout of its fields and its per-type seed.
Primitives start with simple seed derived from some of their properties. Though some types can no longer be distinguished at that point, e.g. usize and u64 will still be treated the same.
2025-01-10 06:28:37 +01:00
The 8472
8b1de1682f
also initialize Layout field in rust-analyzer
2025-01-10 02:22:57 +01:00
Chayim Refael Friedman
62a92b3840
Remove two hir reexports
2025-01-10 03:19:28 +02:00
Chayim Refael Friedman
c9f75a0b2f
Do not compute prettify_macro_expansion() unless the "Inline macro" assist has actually been invoked
...
And not just called to be listed.
This was a major performance hang when repeatedly switching back-and-forth between a large `include!`d file (but there are others)..
2025-01-10 00:56:00 +02:00
Giga Bowser
56d06fb40f
Add an action to copy an element from the syntax tree view
2025-01-09 14:03:18 -06:00
Chayim Refael Friedman
37b089d973
Fix another issue with fixup reversing
...
We need to *remove* the whole subtree, but we don't advance `i` by this, because it hasn't gotten there yet (and never will).
2025-01-09 22:02:44 +02:00
Giga Bowser
628db53612
Remove the old syntax tree viewer
2025-01-09 13:20:06 -06:00
Giga Bowser
78c377f956
Add a new and improved syntax tree viewer
2025-01-09 13:20:06 -06:00
Philipp Krones
573db1c866
Merge commit ' 19e305bb57' into clippy-subtree-update
2025-01-09 18:57:00 +01:00
Rémy Rakic
958a7722d1
bump rustc-perf
...
in particular to get the new benchmark error handling
2025-01-09 16:56:50 +00:00
duncan
c26f175b16
Fix parsing cargo test json output by making stdout and optional field
2025-01-09 16:01:08 +00:00
Lukas Wirth
d1b9176f24
Merge pull request #18889 from ChayimFriedman2/subtle-completion
...
fix: Fix actual token lookup in completion's `expand()`
2025-01-09 12:12:38 +00:00
Lukas Wirth
e4708fec85
Merge pull request #18880 from PrototypeNM1/extra-includes
...
Add config setting which allows adding additional include paths to the VFS.
2025-01-09 10:24:51 +00:00
Lukas Wirth
f6e8974fa8
Merge pull request #18861 from ChayimFriedman2/await-edition
...
fix: Make edition per-token, not per-file
2025-01-09 10:20:11 +00:00
Lukas Wirth
f4ecc34aa7
Merge pull request #18885 from qjerome/refactor-cargo-cfgs
...
refactor: struct holding cargo cfgs settings
2025-01-09 10:19:55 +00:00
Oli Scherer
be92ac3567
Only treat plain literal patterns as short
2025-01-09 09:02:56 +00:00
Lukas Wirth
85310c4f25
Merge pull request #18890 from Veykril/push-nwnozlyppvzo
...
minor: Fixup macro error kinds
2025-01-09 08:54:05 +00:00
Lukas Wirth
cd60477dc8
minor: Fixup macro error kinds
2025-01-09 09:38:58 +01:00
Lukas Wirth
547a12e323
Merge pull request #18887 from vishruth-thimmaiah/refactor_completions_tests
...
refactor test helpers within ide-completions
2025-01-09 08:15:53 +00:00
Matthias Krüger
29c17fc5ae
Rollup merge of #135221 - Urgau:replace-in-stable-book, r=pietroalbini
...
Include rustc and rustdoc book in replace-version-placeholder
This PR includes the *(stable)* rustc and rustdoc books which might contain `CURRENT_RUSTC_VERSION` that should be replaced when branching beta. Include them so they are not forgotten.
I didn't include any other folder or books as they don't strike me as relevant for it and might be problematic in the future if some of the submodules are turned into subtree, because we have places where we wouldn't want to replace them.
cf. https://github.com/rust-lang/rust/pull/135163#issuecomment-2574694931
cc `@pietroalbini`
2025-01-09 06:02:42 +01:00