summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/syntax
AgeCommit message (Collapse)AuthorLines
2024-05-23Auto merge of #17140 - harrysarson:harry-unused-self, r=Veykrilbors-2/+19
handle {self} when removing unused imports Fixes #17139 On master ```rs mod inner { pub struct X(); pub struct Y(); } mod z { use super::inner::{self, X}$0; fn f() { let y = inner::Y(); } } ``` becomes ```rs mod inner { pub struct X(); pub struct Y(); } mod z { use super::inner:self; fn f() { let y = inner::Y(); } } ``` with this fix it instead becomes ``` ```rs mod inner { pub struct X(); pub struct Y(); } mod z { use super::inner; fn f() { let y = inner::Y(); } } ```
2024-05-18Allow hir::Param to refer to other entity params aside from functionsLukas Wirth-9/+10
2024-05-14Auto merge of #17224 - Veykril:lock-bump, r=Veykrilbors-1/+1
Bump Cargo.lock
2024-05-14Bump Cargo.lockLukas Wirth-1/+1
2024-05-13Render literal escaping errors in hoversLukas Wirth-56/+45
2024-05-06Implement unsafe attribute parsingLukas Wirth-3/+7
2024-04-30braces around {self} in UseTree are not unnecessaryHarry Sarson-2/+19
Before this commit `UseTree::remove_unnecessary_braces` removed the braces around `{self}` in `use x::y::{self};` but `use x::y::self;` is not valid rust.
2024-04-21Auto merge of #16938 - Nilstrieb:dont-panic-tests, r=Veykrilbors-0/+1
Implement `BeginPanic` handling in const eval for #16935, needs some figuring out of how to write these tests correctly
2024-04-21Allow rust files to be used linkedProjectsLukas Wirth-0/+16203
2024-04-18Fixup some issues with minicoreLukas Wirth-0/+1
2024-04-18Handle panicking like rustc CTFE doesNilstrieb-0/+16202
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.