mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Merge #10248
10248: internal: remove dead code r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
c577e128fc
10 changed files with 10 additions and 43 deletions
|
@ -107,7 +107,6 @@ pub(crate) struct CompletionContext<'a> {
|
|||
|
||||
pub(super) pattern_ctx: Option<PatternContext>,
|
||||
pub(super) path_context: Option<PathCompletionContext>,
|
||||
pub(super) active_parameter: Option<ActiveParameter>,
|
||||
pub(super) locals: Vec<(String, Local)>,
|
||||
|
||||
pub(super) incomplete_let: bool,
|
||||
|
@ -170,7 +169,6 @@ impl<'a> CompletionContext<'a> {
|
|||
attribute_under_caret: None,
|
||||
previous_token: None,
|
||||
path_context: None,
|
||||
active_parameter: ActiveParameter::at(db, position),
|
||||
locals,
|
||||
incomplete_let: false,
|
||||
no_completion_required: false,
|
||||
|
|
|
@ -26,7 +26,6 @@ pub(crate) fn render_variant(
|
|||
#[derive(Debug)]
|
||||
struct EnumRender<'a> {
|
||||
ctx: RenderContext<'a>,
|
||||
name: hir::Name,
|
||||
variant: hir::Variant,
|
||||
path: Option<hir::ModPath>,
|
||||
qualified_name: hir::ModPath,
|
||||
|
@ -58,7 +57,7 @@ impl<'a> EnumRender<'a> {
|
|||
),
|
||||
};
|
||||
|
||||
EnumRender { ctx, name, variant, path, qualified_name, short_qualified_name, variant_kind }
|
||||
EnumRender { ctx, variant, path, qualified_name, short_qualified_name, variant_kind }
|
||||
}
|
||||
fn render(self, import_to_add: Option<ImportEdit>) -> CompletionItem {
|
||||
let mut item = CompletionItem::new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue