about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-01-24Merge pull request #19016 from Veykril/push-moqnsytyrupuLukas Wirth-208/+234
fix: Fix `ItemScope` not recording glob imports
2025-01-24Merge pull request #19014 from darichey/fix-cfg-macroLukas Wirth-0/+6
Check cfg when collecting macro defs
2025-01-24Fix `ItemScope` not recording glob importsLukas Wirth-208/+234
This caused us other code to incorrectly assume in dealing with a declaration when in fact it was dealing with a glob imported definition
2025-01-23Check cfg when collecting macro defsDavid Richey-0/+6
2025-01-23Merge pull request #19009 from lnicola/dont-just-dieLaurențiu Nicola-3/+3
minor: Rephrase comment
2025-01-23Rephrase commentLaurențiu Nicola-3/+3
2025-01-22Merge pull request #19004 from teoxoy/patch-1Chayim Refael Friedman-2/+2
increase `AUTODEREF_RECURSION_LIMIT` to 20
2025-01-22increase `AUTODEREF_RECURSION_LIMIT` to 20Teodor Tanasoaia-2/+2
The limit was introduced in https://github.com/rust-lang/rust-analyzer/pull/1408#discussion_r294059044 to avoid infinite cycles but it effectively caps the number of derefs to 10. Types like `ID3D12Device14` from the `windows` crate run into this because it derefs to `ID3D12Device13`, 13 to 12 and so on. Increasing it to 20 is a quick fix; a better cycle detection method would be nicer long term.
2025-01-22Merge pull request #18878 from Wilfred/document_build_infoLaurențiu Nicola-8/+84
manual: Document all rust-project.json fields
2025-01-21manual: Document all rust-project.json fieldsWilfred Hughes-8/+84
Ensure that all the fields that rust-analyzer understands are in the manual, they all have doc comments, and they use consistent punctuation (`;` rather than mixing `,` and `;`). Whilst we're here, fix the `sysroot_src` example and add 2024 as a legal value for Rust edition.
2025-01-21Merge pull request #18988 from ChayimFriedman2/iter-relevanceChayim Refael Friedman-0/+26
fix: Sort completion items that skip `await` and `iter()` behind those that don't
2025-01-21Sort completion items that skip `await` and `iter()` behind those that don'tChayim Refael Friedman-0/+26
I don't think my ranking is perfect, because it places them even behind snippet completions, but this is something.
2025-01-21Merge pull request #18986 from Veykril/push-zlwvwlowpzqmLukas Wirth-0/+49
Goto `Display::fmt` when invoked on `to_string`
2025-01-21Merge pull request #18990 from Veykril/push-tqonnqxyrnsvLukas Wirth-249/+145
internal: Cleanup `Name` string rendering
2025-01-21Cleanup `Name` string renderingLukas Wirth-249/+145
2025-01-21Merge pull request #18977 from ChayimFriedman2/fix-upmappingLukas Wirth-13/+68
fix: Fix missing upmapping in trait impls completion
2025-01-21Merge pull request #18989 from Giga-Bowser/syntax-tree-refreshLukas Wirth-1/+8
fix: Only refresh syntax tree view when the active document changes
2025-01-20Fix another bug with completion of trait items inside macrosChayim Refael Friedman-11/+36
This time, when completing the keyword (e.g. `fn` + whitespace). The bug was actually a double-bug: First, we did not resolve the impl in the macro-expanded file but in the real file, which of course cannot work. Second, in analysis the whitespace was correlated with the `impl` and not the incomplete `fn`, which caused fake (where we insert an identifier after the whitespace) and real expansions to go out of sync, which failed analysis. The fix is to skip whitespaces in analysis.
2025-01-20fix: Only refresh syntax tree view when the active document changesGiga Bowser-1/+8
2025-01-20Goto `Display::fmt` when invoked on `to_string`Lukas Wirth-0/+49
2025-01-20Merge pull request #18984 from Veykril/push-nszlmxoxyxssLukas Wirth-83/+117
internal: Move dual blanket impl logic from source analyzer to goto_def
2025-01-20Bring back goto def redirect for parse -> FromStrLukas Wirth-4/+59
2025-01-20Move dual blanket impl logic from source analyzer to goto_defLukas Wirth-114/+93
2025-01-20Merge pull request #18967 from Veykril/push-pwonkmwqmmolLukas Wirth-265/+368
Properly record meaningful imports as re-exports in symbol index
2025-01-20Merge pull request #18934 from 1hakusai1/goto_definition_from_intoLukas Wirth-2/+278
feat: Add the ability to jump from `into` to `from` definitions
2025-01-20Merge pull request #18982 from Veykril/push-lstmvzsowxytLukas Wirth-7/+15
Extract variable assist triggers less eagerly
2025-01-20Merge pull request #18972 from ↵Lukas Wirth-12/+42
osiewicz/drop-outgoing-messages-on-background-thread lsp-server: Drop outgoing messages on background thread
2025-01-20Merge pull request #18976 from ChayimFriedman2/non-module-generic-argsLukas Wirth-29/+81
fix: Fix a bug where enum variants were not considered properly in type ns resolution
2025-01-20Fix import search not discarding rawnessLukas Wirth-29/+65
2025-01-20Less allocsLukas Wirth-19/+30
2025-01-20Preserve impl assoc names in ImplDataLukas Wirth-89/+78
2025-01-20Vec -> Box<[_]>Lukas Wirth-9/+6
2025-01-20Properly record meaningful imports as re-exports in symbol indexLukas Wirth-143/+213
2025-01-20Add a test case1hakusai1-0/+24
2025-01-20Use Semantics::resolve_method_call_as_callable to find implementation1hakusai1-59/+89
2025-01-20Merge pull request #18981 from Fabian-Gruenbichler/proc-macro-srv-portabilityLaurențiu Nicola-3/+10
proc-macro-srv: make usage of RTLD_DEEPBIND portable
2025-01-20Merge pull request #18980 from lnicola/sync-from-rustLaurențiu Nicola-18578/+31797
minor: Sync from downstream
2025-01-20proc-macro-srv: make usage of RTLD_DEEPBIND portableFabian Grünbichler-3/+10
the constant is wrong on some platforms (e.g., on mips64el it's 0x10, and 0x8 is RTLD_NOLOAD which makes all this functionality broken), the libc crate takes care of those differences for us. fallback to not setting the flag in non-glibc environments - some of them might have support for it using a different value that we don't know about, and some of them lack it entirely. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2025-01-20Bump rustc cratesLaurențiu Nicola-17/+17
2025-01-20Merge from rust-lang/rustLaurențiu Nicola-18560/+31779
2025-01-20Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-01-19Auto merge of #135742 - RalfJung:miri-sync, r=RalfJungbors-765/+982
Miri subtree update r? `@ghost`
2025-01-19Merge pull request #4141 from rust-lang/rustup-2025-01-19Ralf Jung-5425/+8201
Automatic Rustup
2025-01-19fix location of pipe moduleRalf Jung-2/+3
2025-01-19Auto merge of #135714 - rust-lang:cargo_update, r=clubby789bors-56/+72
Weekly `cargo update` Automation to keep dependencies in `Cargo.lock` current. The following is the output from `cargo update`: ```txt compiler & tools dependencies: Locking 13 packages to latest compatible versions Updating anstyle-wincon v3.0.6 -> v3.0.7 Updating bitflags v2.7.0 -> v2.8.0 Updating chrono-tz v0.10.0 -> v0.10.1 Updating js-sys v0.3.76 -> v0.3.77 Updating log v0.4.22 -> v0.4.25 Updating miniz_oxide v0.8.2 -> v0.8.3 Updating uuid v1.11.1 -> v1.12.0 Updating valuable v0.1.0 -> v0.1.1 Updating wasm-bindgen v0.2.99 -> v0.2.100 Updating wasm-bindgen-backend v0.2.99 -> v0.2.100 Updating wasm-bindgen-macro v0.2.99 -> v0.2.100 Updating wasm-bindgen-macro-support v0.2.99 -> v0.2.100 Updating wasm-bindgen-shared v0.2.99 -> v0.2.100 note: pass `--verbose` to see 41 unchanged dependencies behind latest library dependencies: Locking 1 package to latest compatible version Updating miniz_oxide v0.8.2 -> v0.8.3 note: pass `--verbose` to see 4 unchanged dependencies behind latest rustbook dependencies: Locking 12 packages to latest compatible versions Updating anstyle-wincon v3.0.6 -> v3.0.7 Updating bitflags v2.7.0 -> v2.8.0 Updating cc v1.2.8 -> v1.2.10 Updating js-sys v0.3.76 -> v0.3.77 Updating log v0.4.22 -> v0.4.25 Updating miniz_oxide v0.8.2 -> v0.8.3 Adding rustversion v1.0.19 Updating wasm-bindgen v0.2.99 -> v0.2.100 Updating wasm-bindgen-backend v0.2.99 -> v0.2.100 Updating wasm-bindgen-macro v0.2.99 -> v0.2.100 Updating wasm-bindgen-macro-support v0.2.99 -> v0.2.100 Updating wasm-bindgen-shared v0.2.99 -> v0.2.100 ```
2025-01-19Auto merge of #135725 - GuillaumeGomez:rollup-dxn3use, r=GuillaumeGomezbors-34/+182
Rollup of 5 pull requests Successful merges: - #134858 (Provide structured suggestion for `#![feature(..)]` in more cases) - #135679 (create an issue template for bootstrap) - #135685 (Remove unused `item-row` CSS class) - #135716 (Don't skip argument parsing when running `rustc` with no arguments) - #135723 (Fix dev guide docs for error-pattern) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-19Rollup merge of #135723 - Noratrieb:error-pattern-my-a-, r=jieyouxuGuillaume Gomez-1/+2
Fix dev guide docs for error-pattern I know it would have made more sense to make this PR to the dev guide repo but I had already made the fix before I realized that. r? `@jieyouxu`
2025-01-19Rollup merge of #135716 - Zalathar:usage-no-args, r=lqdGuillaume Gomez-10/+1
Don't skip argument parsing when running `rustc` with no arguments Setting up the argument parser to parse no arguments is a tiny bit of wasted work, but avoids an otherwise-unnecessary special case, in a scenario (printing a help message and quitting) where perf at this scale really doesn't matter anyway. In particular, this lets us avoid having to deal with multiple different APIs to determine whether the compiler is nightly or not. --- This special-case handling for rustc with no arguments is very very old (long predating 1.0), and used to be much simpler, without any need to set up boolean values to handle various conditional cases. So I don't think it was ever explicitly decided that having this special case was worth the extra complexity; it just started out simple and accumulated complexity over time.
2025-01-19Rollup merge of #135685 - GuillaumeGomez:rm-unused-css-class, r=notriddleGuillaume Gomez-3/+3
Remove unused `item-row` CSS class Seems like a CSS class we forgot to remove at some point. r? `@notriddle`
2025-01-19Rollup merge of #135679 - onur-ozkan:bootstrap-issue-template, r=jieyouxuGuillaume Gomez-0/+70
create an issue template for bootstrap Resolves #135593 cc `@rust-lang/bootstrap`