about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/test-utils
AgeCommit message (Collapse)AuthorLines
2025-07-18Auto merge of #144114 - lnicola:sync-from-ra, r=lnicolabors-0/+1
Subtree update of `rust-analyzer` r? `@ghost`
2025-07-17parse `const trait Trait`Deadbeef-2/+1
2025-07-16Add AsMut to minicore prelude::v1A4-Tacks-0/+1
2025-07-06Merge pull request #20132 from A4-Tacks/asmut-borrow-minicoreLukas Wirth-0/+22
Add AsMut, Borrow and BorrowMut to minicore and famous_defs
2025-07-05Fix Borrow and BorrowMut define from beta stdA4-Tacks-2/+2
2025-07-03Fix some things with builtin derivesChayim Refael Friedman-14/+24
1. Err on unions on derive where it's required. 2. Err on `#[derive(Default)]` on enums without `#[default]` variant. 3. Don't add where bounds `T: Default` when expanding `Default` on enums (structs need that, enums not). Also, because I was annoyed by that, in minicore, add a way to filter on multiple flags in the line-filter (`// :`). This is required for the `Debug` and `Hash` derives, because the derive should be in the prelude but the trait not.
2025-07-02Fix AsMut::as_mut nameA4-Tacks-1/+1
2025-07-01Add AsMut Borrow BorrowMut to minicore and famous_defsA4-Tacks-0/+22
2025-06-26Merge pull request #20100 from ShoyuVanilla/ignore-sized-hierarchyChayim Refael Friedman-56/+84
Backport new sized-hierarchy trait bounds in old ways
2025-06-26Backport new sized-hierarchy trait bounds in old waysShoyu Vanilla-17/+26
2025-06-26Parse new const trait syntaxLukas Wirth-5/+5
2025-06-25Adjust minicore for Sized Hierarchy changesLukas Wirth-50/+69
2025-06-23Don't run doctestsChayim Refael Friedman-0/+1
2025-06-22Minic rustc's new `format_args!` expansionShoyu Vanilla-2/+2
2025-06-22Implement region negation to minicore and add a flag `fmt_before_1_89_0`Shoyu Vanilla-8/+49
2025-04-22Merge pull request #19657 from ChayimFriedman2/better-offset-ofLukas Wirth-0/+8
feat: Better support `offset_of!()`
2025-04-22The new diagnostic has found a bug lurking in minicoreChayim Refael Friedman-1/+1
It's cute, isn't it?
2025-04-22Resolve `offset_of!()` in IDEChayim Refael Friedman-0/+8
2025-03-23chore: Bump dependenciesLukas Wirth-1/+1
2025-03-23chore: Remove unused dependenciesLukas Wirth-1/+0
2025-03-17chore: Bump `Edition::CURRENT` to 2024Lukas Wirth-9/+7
2025-03-05Use size_of from the prelude instead of importedThalia Archibald-1/+1
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2025-03-05minicore: Add size_of to prelude and add rust_2024 preludeThalia Archibald-0/+5
2025-03-01Fix `test_keyword_highlighting` testLukas Wirth-9/+3
2025-02-27fix doc testsBenjaminBrienen-5/+9
2025-02-27enable doctestBenjaminBrienen-1/+0
2025-02-25internal: Improve reporting of intersecting changesGiga Bowser-2/+2
2025-02-17Merge pull request #19127 from ChayimFriedman2/different-generic-argsLukas Wirth-0/+6
feat: Refactor path lowering and serve a new path diagnostic
2025-02-16Refactor path loweringChayim Refael Friedman-0/+6
And add a new diagnostic for non-`Fn` parenthesized generic args. Path lowering started to look like a mess, with each function carrying additional parameters for the diagnostic callback (since paths can occur both in type and in expression/pattern position, and their diagnostic handling is different) and the segment index, for the diagnostics report. So I refactored it from stateless functions on `TyLoweringContext` into stateful struct, `PathLoweringContext`, that tracks the process of lowering a path from resolution til assoc types selection.
2025-02-09fix target dir testjyn-1/+8
2025-01-24feat: Implement `arbitrary-self-types`Shoyu Vanilla-0/+17
2025-01-20Merge pull request #18934 from 1hakusai1/goto_definition_from_intoLukas Wirth-2/+31
feat: Add the ability to jump from `into` to `from` definitions
2025-01-15Add smart completions that skip `await` or `iter()` and `into_iter()`Chayim Refael Friedman-1/+24
E.g. complete `await.foo()`.
2025-01-15Fix wrong fixture1hakusai1-1/+1
2025-01-15Add test cases1hakusai1-2/+31
2025-01-10Re-implement rust string highlighting via tool attributeLukas Wirth-1/+1
2025-01-04Support the new `CoercePointee` deriveChayim Refael Friedman-0/+9
2024-12-09Remove unstable attributes in minicoreLaurențiu Nicola-4/+0
2024-12-03Support `AsyncFnX` traitsChayim Refael Friedman-3/+116
Only in calls, because to support them in bounds we need support from Chalk. However we don't yet report error from bounds anyway, so this is less severe. The returned future is shown in its name within inlay hints instead of as a nicer `impl Future`, but that can wait for another PR.
2024-11-04Support new #[rustc_intrinsic] attribute and fallback bodiesLukas Wirth-6/+4
2024-09-06fix: Always explicitly set trait ref self types when loweringLukas Wirth-4/+4
2024-09-05Add Definition kind for asm register classesLukas Wirth-10/+13
2024-08-29Do not report missing unsafe on `addr_of[_mut]!(EXTERN_OR_MUT_STATIC)`Chayim Refael Friedman-0/+12
The compiler no longer does as well; see https://github.com/rust-lang/rust/pull/125834.
2024-08-29Auto merge of #17814 - ShoyuVanilla:object-safety, r=Veykrilbors-1/+29
feat: Implement object safety and its hovering hint Resolves #17779 - [x] Fill missing implementations - [x] Hover rendering - [x] Implement object safety's own test suite, like layout - [x] Add test cases (from rustc maybe) - [x] Clean up ugly codes - [x] Add doc string
2024-08-29feat: Implement object safetyShoyu Vanilla-1/+29
2024-08-28Fix name resolution of shadowed builtin macroChayim Refael Friedman-0/+9
2024-08-27Revert "feat: Implement `module_path` macro"Lukas Wirth-11/+0
2024-08-26Auto merge of #17941 - ChayimFriedman2:pre-closure-to-fn, r=Veykrilbors-0/+2
Preliminary work for #17940 I split the PR as requested, and made small commits.
2024-08-24Provide `Future::Output` and `Iterator` lang itemsChayim Refael Friedman-0/+2
2024-08-21internal: Implement `module_path` macroLukas Wirth-0/+11