Lukas Wirth
500ea05aef
chore: Bump dependencies
2025-03-23 08:46:10 +01:00
Lukas Wirth
d4122434dd
chore: Remove unused dependencies
2025-03-23 08:08:17 +01:00
Lukas Wirth
a505420751
chore: Bump Edition::CURRENT
to 2024
2025-03-17 12:29:19 +01:00
Thalia Archibald
0811ca0a61
Use size_of from the prelude instead of imported
...
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-05 00:48:44 -08:00
Thalia Archibald
0aa623e108
minicore: Add size_of to prelude and add rust_2024 prelude
2025-03-05 00:30:38 -08:00
Lukas Wirth
716e9fdb8d
Fix test_keyword_highlighting
test
2025-03-01 18:29:47 +01:00
BenjaminBrienen
b19ef6b046
fix doc tests
2025-02-27 14:58:46 +01:00
BenjaminBrienen
bd7375a58f
enable doctest
2025-02-27 14:58:46 +01:00
Giga Bowser
b4f2d62952
internal: Improve reporting of intersecting changes
2025-02-25 11:46:45 -05:00
Lukas Wirth
09db657439
Merge pull request #19127 from ChayimFriedman2/different-generic-args
...
feat: Refactor path lowering and serve a new path diagnostic
2025-02-17 08:30:10 +00:00
Chayim Refael Friedman
55c04ab371
Refactor path lowering
...
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-16 19:44:50 +02:00
jyn
66253b6553
fix target dir test
2025-02-09 16:34:01 -05:00
Shoyu Vanilla
f4dfbc38c8
feat: Implement arbitrary-self-types
2025-01-24 22:50:59 +09:00
Lukas Wirth
b2f822b074
Merge pull request #18934 from 1hakusai1/goto_definition_from_into
...
feat: Add the ability to jump from `into` to `from` definitions
2025-01-20 13:46:47 +00:00
Chayim Refael Friedman
cec9fa1606
Add smart completions that skip await
or iter()
and into_iter()
...
E.g. complete `await.foo()`.
2025-01-15 22:32:07 +02:00
1hakusai1
b6d63615d2
Fix wrong fixture
2025-01-15 21:28:37 +09:00
1hakusai1
dc075fd692
Add test cases
2025-01-15 20:43:28 +09:00
Lukas Wirth
bf669dab84
Re-implement rust string highlighting via tool attribute
2025-01-10 13:49:35 +01:00
Chayim Refael Friedman
ce323627c5
Support the new CoercePointee
derive
2025-01-04 18:35:53 +02:00
Laurențiu Nicola
d5b96b7998
Remove unstable attributes in minicore
2024-12-09 11:17:17 +02:00
Chayim Refael Friedman
4049c3b6a9
Support AsyncFnX
traits
...
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-12-03 21:26:26 +02:00
Lukas Wirth
36d68c5d0f
Support new #[rustc_intrinsic] attribute and fallback bodies
2024-11-04 13:33:55 +01:00
Lukas Wirth
20f7ab5ab4
fix: Always explicitly set trait ref self types when lowering
2024-09-06 14:06:41 +02:00
Lukas Wirth
164b15bc62
Add Definition kind for asm register classes
2024-09-05 10:23:00 +02:00
Chayim Refael Friedman
91f2016ee1
Do not report missing unsafe on addr_of[_mut]!(EXTERN_OR_MUT_STATIC)
...
The compiler no longer does as well; see https://github.com/rust-lang/rust/pull/125834 .
2024-08-29 22:58:26 +03:00
bors
0ae42bd425
Auto merge of #17814 - ShoyuVanilla:object-safety, r=Veykril
...
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-29 13:24:54 +00:00
Shoyu Vanilla
6520a43ca3
feat: Implement object safety
2024-08-29 22:22:21 +09:00
Chayim Refael Friedman
1cd707e693
Fix name resolution of shadowed builtin macro
2024-08-28 23:20:46 +03:00
Lukas Wirth
fa48bc216c
Revert "feat: Implement module_path
macro"
2024-08-27 08:19:09 +02:00
bors
0ad26e6025
Auto merge of #17941 - ChayimFriedman2:pre-closure-to-fn, r=Veykril
...
Preliminary work for #17940
I split the PR as requested, and made small commits.
2024-08-26 08:09:15 +00:00
Chayim Refael Friedman
34920dde8d
Provide Future::Output
and Iterator
lang items
2024-08-24 23:46:32 +03:00
Lukas Wirth
d44a3ab30c
internal: Implement module_path
macro
2024-08-21 13:50:05 +02:00
Vincent Esche
7dec7e92ea
Replace [package.repository] = "…"
of published crates with [package.repository.workspace] = true
2024-08-06 00:26:42 +02:00
Vincent Esche
6f329e6d5b
Add repository URL for published crates' missing [package.repository]
fields
2024-08-06 00:25:02 +02:00
Vincent Esche
b5b0f4bc5a
Replace "TBD"
with more helpful desciptions in published crates' [package.description]
fields
2024-08-06 00:25:02 +02:00
Lukas Wirth
758ad25229
internal: Remove AbsPathBuf::TryFrom impl that checks too many things at once
2024-08-02 11:08:19 +02:00
Lukas Wirth
0851d21d1e
fix: Allow flyimport to import primitive shadowing modules
2024-07-21 13:26:19 +02:00
beetrees
d5db933f9d
Add f16
and f128
support
2024-07-10 10:43:14 +01:00
Lukas Wirth
21a3d01875
Remove inline rust_2018_idioms, unused_lifetimes
lint warn, Cargo.toml already enforces this
2024-06-30 15:23:54 +02:00
Lukas Wirth
5374ebbf36
Simplify
2024-06-30 14:00:55 +02:00
Wilfred Hughes
d68e549205
internal: Fix rustdoc warnings
...
`cargo doc` generates a bunch of warnings on rust-analyzer. Fix all the
bare URL and empty code block warnings.
2024-06-13 17:29:10 -07:00
Hamir Mahal
7c34eb3880
style: simplify string interpolation
2024-05-30 16:18:49 -07:00
Lukas Wirth
3b9a2af21f
Peek for panic message in test output
2024-04-21 08:50:25 +02:00
Lukas Wirth
a9140e197c
Fix #[rustc_const_panic_str] functions not actually being hooked
2024-04-18 15:49:08 +02:00
Lukas Wirth
5df690e13f
Fixup some issues with minicore
2024-04-18 12:20:54 +02:00
Lukas Wirth
563bb6bd6c
Fix missing function body in minicore
2024-04-18 12:20:54 +02:00
Nilstrieb
805f569adc
Handle panicking like rustc CTFE does
...
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.
2024-04-18 12:20:54 +02:00
Lukas Wirth
2ae3e57c26
Fix new clippy lints
2024-04-01 17:55:56 +02:00
Lukas Wirth
b1404d387a
fix: Split toolchain and datalayout out of CrateData
2024-02-16 14:48:25 +01:00
Tavo Annus
125791386d
Cleanup term search related changes
2024-02-11 14:35:54 +02:00