37867 Commits

Author SHA1 Message Date
bit-aloo
2ef2aedebd
add comment on incrementality of subrequest 2026-01-11 15:08:43 +05:30
bit-aloo
f8e5c666d3
add byte range to main loop and direct the request via callback and define the callback on client side 2026-01-11 15:08:42 +05:30
bit-aloo
31b3fb5d20
update proc-macro-srv to include byte-range 2026-01-11 15:08:07 +05:30
bit-aloo
dbfed079ba
add byte range subrequest/response 2026-01-11 15:08:07 +05:30
Chayim Refael Friedman
e42e8ff582
Merge pull request #21436 from cry-inc/bugfix/fix-ignore-attribute-with-reason
Fix ignore flag for test attributes with values
2026-01-10 22:16:30 +00:00
Lukas Wirth
1f7a2cc5bc
Merge pull request #21438 from Veykril/push-prppzzzllqso
internal: Abstract proc-macro-srv and proc-macro-api stdin and stdout away
2026-01-10 15:19:24 +00:00
Lukas Wirth
4341269540 Abstract proc-macro-srv input and output away 2026-01-10 16:11:01 +01:00
Shoyu Vanilla (Flint)
9c0cfc5892
Merge pull request #21434 from ChayimFriedman2/traits-mix
fix: Remove code made redundant by method resolution rewrite
2026-01-10 12:49:22 +00:00
Lukas Wirth
2538fdb5b9
Merge pull request #21415 from Veykril/push-qusurvyqwmxt
feat: Allow rust paths in symbol search
2026-01-10 11:01:15 +00:00
Lukas Wirth
c471c5c82e Cleanup 2026-01-10 11:45:49 +01:00
Shoyu Vanilla (Flint)
25c155a0e5
Merge pull request #21432 from ChayimFriedman2/fn-ptr-lifetime-diag
fix: Fix lifetimes len diagnostics for fn pointers
2026-01-10 10:24:43 +00:00
cry-inc
ca76c2068e Fix issue with ignore attribute for tests where the attribute has a value with the reason 2026-01-09 18:37:49 +01:00
Chayim Refael Friedman
1816f9cae9 Remove code made redundant by method resolution rewrite
Its job is now done elsewhere, and it's also wrong (not accounting for autoderef)
2026-01-09 15:55:45 +02:00
Chayim Refael Friedman
714d0476ae
Merge pull request #21433 from Wilfred/rustdoc_private_items
internal: Include private definitions in generated rustdoc
2026-01-09 12:23:21 +00:00
Wilfred Hughes
9c0d88cc07 internal: Include private definitions in generated rustdoc
rust-analyzer has handy prebuilt `cargo doc` output at
https://rust-lang.github.io/rust-analyzer/ide/

However, it doesn't include private definitions, which makes it less
useful when trying to learn unfamiliar parts of the codebase.

Instead, pass `--document-private-items` so the HTML includes
information on private types and modules too. rustdoc renders these
with a padlock icon, so it's still clear that they're private.

This change also exposes some more rustdoc warnings, which I've fixed.
2026-01-09 12:01:54 +00:00
Chayim Refael Friedman
387e3256fb Fix lifetimes len diagnostics for fn pointers 2026-01-09 13:47:13 +02:00
Chayim Refael Friedman
4ff04e599c
Merge pull request #21420 from A4-Tacks/disable-string-hl
Fix not disable string escape highlights
2026-01-09 02:00:56 +00:00
A4-Tacks
fa3d8af80a
Fix not disable string escape highlights
Example
---
with config `strings: false`

```rust
fn main() {
    format_args!("foo\nbar\invalid");
}
```

**Before this PR**

```rust
fn main() {
    format_args!("foo\nbar\invalid");
                  // ^^ EscapeSequence
                       // ^^ InvalidEscapeSequence
}
```

**After this PR**

```rust
fn main() {
    format_args!("foo\nbar\invalid");
}
```
2026-01-09 09:49:54 +08:00
Chayim Refael Friedman
ff9a2e88b1
Merge pull request #21422 from ChayimFriedman2/new-smol-str
Publish smol_str v0.3.5
2026-01-08 20:51:59 +00:00
Chayim Refael Friedman
52bb972c34 Publish smol_str v0.3.5 2026-01-08 22:23:16 +02:00
Chayim Refael Friedman
36a2b8fd73
Merge pull request #21421 from ChayimFriedman2/no-derive-register
fix: Fixes for builtin derive expansions
2026-01-08 14:40:17 +00:00
Chayim Refael Friedman
33894483a6 Fixes for builtin derive expansions
- Do not store the `MacroCallId` of the "real" expansion anywhere, so that the IDE layer could not expand it by mistake
 - Fix a stupid bug where we used the directive of the `derive` itself instead of of the macro, leading us to re-expand it again and again.
2026-01-08 09:49:55 +02:00
Lukas Wirth
8d899298f5
Merge pull request #18043 from cormacrelf/feature/rust-project-discovery
Configure flycheck using workspace.discoverConfig
2026-01-08 07:31:34 +00:00
Laurențiu Nicola
569d06df35
Merge pull request #21419 from rust-lang/rustc-pull
Rustc pull update
2026-01-08 06:10:45 +00:00
The rustc-josh-sync Cronjob Bot
61c1dadfa3 Merge ref '548e586795f6' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: rust-lang/rust@548e586795
Filtered ref: rust-lang/rust-analyzer@aea42e3bfd
Upstream diff: e7d44143a1...548e586795

This merge was created using https://github.com/rust-lang/josh-sync.
2026-01-08 04:21:00 +00:00
The rustc-josh-sync Cronjob Bot
7810ff7203 Prepare for merging from rust-lang/rust
This updates the rust-version file to 548e586795f6b6fe089d8329aa5edbf0f5202646.
2026-01-08 04:20:55 +00:00
Chayim Refael Friedman
54f5eea263
Merge pull request #21399 from ShoyuVanilla/self-only-preds
fix: Properly lower `SelfOnly` predicates
2026-01-07 23:58:51 +00:00
Cormac Relf
96f018541a Fix hir-ty clippy issue
I am not familiar with this code at allso just doing what I can to unblock.
2026-01-08 10:19:23 +11:00
Cormac Relf
5a9855595a doc: overhaul non-cargo build system docs 2026-01-08 10:19:23 +11:00
Cormac Relf
7ee0643702 doc: make example for workspace.discoverConfig actually work
rust-project requires {arg} these days. No good giving people bad information
even if it's not crucial to documenting this.
2026-01-08 10:19:23 +11:00
Cormac Relf
a7eb8c0889 doc: Update docs for runnables to include run/flycheck 2026-01-08 10:19:23 +11:00
Cormac Relf
ad27655c2b Fix RunnableKind::Run label interpolation
It was pretty useless without this.

Previously:

    Parsing target pattern `{label}`

    Caused by:
        Invalid target name `{label}`. (...)
    Build ID: 6dab5942-d81c-4430-83b0-5ba523999050
    Network: Up: 0B  Down: 0B
    Command: run.
    Time elapsed: 0.3s
    BUILD FAILED

     *  The terminal process "buck2 'run', '{label}'" terminated with exit code: 3.
2026-01-08 10:19:23 +11:00
Cormac Relf
d3ddae5c1d flycheck: Rename FlycheckConfig::CargoCommand to Automatic
Because (1) it is what we use when there is no relevant config
        (2) we automatically use either rust-project.json's flycheck, or cargo

This also puts check_command config into CargoOptions. It's a cargo option, after all.
2026-01-08 10:19:23 +11:00
Cormac Relf
9c18569d0c flycheck: notifications show full command when configured in a rust-project.json runnable
For JSON / override users, pretty-print the custom flycheck command with fewer quote characters

Better debug logging in flycheck
2026-01-08 10:19:23 +11:00
Cormac Relf
5b27dbb4c7 flycheck: Add display_command to pretty-print flycheck command being run in a notification 2026-01-08 10:19:23 +11:00
Cormac Relf
8d8cc93aba flycheck: Always flycheck single crate if there is a build label from rust-project.json
This requires us to add $saved_file / {saved_file} interpolation back to restart_for_package.
Otherwise we break existing users of $saved_file. No grand reason why we can't delete saved_file
later, although I would just leave it because sometimes a build system might really know better
which target(s) to build, including multiple targets.
2026-01-08 10:19:23 +11:00
Cormac Relf
210aff3d82 flycheck: Support {label} in check_overrideCommand as well as $saved_file 2026-01-08 10:19:23 +11:00
Cormac Relf
95b5dc08c7 flycheck: Use RunnableKind::Flycheck from ProjectJson to flycheck
This adds a substitution helper to get the right behaviour re {label} and $saved_file.
2026-01-08 10:19:23 +11:00
Cormac Relf
67099fc243 project-model: Introduce RunnableKind::Flycheck
We need to distinguish from RunnableKind::Check, which is
human-readable.
2026-01-08 10:19:23 +11:00
Cormac Relf
c5c52e81bd flycheck: Make the flycheckable unit a flycheck::PackageSpecifier enum
You should be able to flycheck a ProjectJson crate based on its build label.
This paves the way for that.

Context: I don't think this has been working for some time. It used to be that
we would use cargo to build ProjectJson crates. Support for ProjectJson seems
to have been somewhat steamrolled in PR 18845 (e4bf6e1bc36e4cbc8a36d7911788176eb9fac76e).
2026-01-08 10:19:23 +11:00
Cormac Relf
a7832657c4 Fix misuse of ?
This exited the whole loop instead of having continue semantics and
continuing to find workspaces. So wrap in find_map.
2026-01-08 10:19:23 +11:00
Cormac Relf
f9b91f0801 project-model: Return crate by reference 2026-01-08 10:19:23 +11:00
Cormac Relf
4dff38c964 project-model: Don't do O(n) clones as well as O(n) search 2026-01-08 10:19:23 +11:00
Cormac Relf
490d5ceadf project-model: Helpers for traversing dep graph in ProjectJson
Needed for all_workspace_dependencies_for_package implementation.
2026-01-08 10:19:23 +11:00
Cormac Relf
11c8e3f5f9 Add ProjectJsonTargetSpec.project_root
Needed to support flychecking in a later diff
2026-01-08 10:18:29 +11:00
rust-bors[bot]
aea42e3bfd
Auto merge of #148339 - folkertdev:naked-macos-private-extern, r=Amanieu
naked functions: emit `.private_extern` on macos

fixes https://github.com/rust-lang/rust/issues/148307

Emit `.private_extern` on macos when the naked function uses `Linkage::Internal`. Failing to do so can cause issues with LTO.

The documentation on this directive is kind of sparse, but I believe this is at least not incorrect, and does fix the issue.

r? @Amanieu
cc @bjorn3
2026-01-07 20:38:46 +00:00
Shoyu Vanilla (Flint)
870d84553f
Merge pull request #21414 from sshcrack/master
fix: Suggest traits other than ones in the environment crate
2026-01-07 19:37:01 +00:00
Shoyu Vanilla
7a48463c09 fix: Properly lower SelfOnly predicates 2026-01-08 04:19:49 +09:00
Lukas Wirth
610ec0432e feat: Allow rust paths in symbol search 2026-01-07 13:30:48 +01:00
Lukas Wirth
9b40d8346d Document WithFixture 2026-01-07 13:30:16 +01:00