about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/test-utils
AgeCommit message (Collapse)AuthorLines
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
2024-08-06Replace `[package.repository] = "…"` of published crates with ↵Vincent Esche-1/+1
`[package.repository.workspace] = true`
2024-08-06Add repository URL for published crates' missing `[package.repository]` fieldsVincent Esche-0/+1
2024-08-06Replace `"TBD"` with more helpful desciptions in published crates' ↵Vincent Esche-1/+1
`[package.description]` fields
2024-08-02internal: Remove AbsPathBuf::TryFrom impl that checks too many things at onceLukas Wirth-2/+5
2024-07-21fix: Allow flyimport to import primitive shadowing modulesLukas Wirth-0/+9
2024-07-10Add `f16` and `f128` supportbeetrees-5/+5
2024-06-30Remove inline `rust_2018_idioms, unused_lifetimes` lint warn, Cargo.toml ↵Lukas Wirth-1/+0
already enforces this
2024-06-30SimplifyLukas Wirth-1/+1
2024-06-13internal: Fix rustdoc warningsWilfred Hughes-4/+4
`cargo doc` generates a bunch of warnings on rust-analyzer. Fix all the bare URL and empty code block warnings.
2024-05-30style: simplify string interpolationHamir Mahal-1/+1
2024-04-21Peek for panic message in test outputLukas Wirth-1/+4
2024-04-18Fix #[rustc_const_panic_str] functions not actually being hookedLukas Wirth-1/+2
2024-04-18Fixup some issues with minicoreLukas Wirth-8/+30
2024-04-18Fix missing function body in minicoreLukas Wirth-2/+3
2024-04-18Handle panicking like rustc CTFE doesNilstrieb-0/+2811
Instead of using `core::fmt::format` to format panic messages, which may in turn panic too and cause recursive panics and other messy things, redirect `panic_fmt` to `const_panic_fmt` like CTFE, which in turn goes to `panic_display` and does the things normally. See the tests for the full call stack.