[rust] lint
Joe Savona committed
Jul 6, 2023 at 09:24 UTC
1bf00e6b6edb9763a49f753c99609f863ee62492
4 files changed
+5
-10
compiler/forget/crates/build-hir/src/build.rs
+2
-2
@@ -285,9 +285,9 @@ fn lower_assignment<'a>(
285
}
286
287
fn lower_identifier_for_assignment<'a>(
288
- env: &'a Environment<'a>,
288
+ _env: &'a Environment<'a>,
289
builder: &mut Builder<'a>,
290
- kind: InstructionKind,
290
+ _kind: InstructionKind,
291
identifier: estree::Identifier,
292
) -> Option<Place<'a>> {
293
let binding = builder.resolve_binding(&identifier)?;
compiler/forget/crates/build-hir/src/builder.rs
+1
-6
@@ -1,10 +1,5 @@
1
use bumpalo::collections::Vec;
2
-use estree::BindingId;
3
-use std::{
4
- cell::RefCell,
5
- collections::{HashMap, HashSet},
6
- rc::Rc,
7
-};
2
+use std::{cell::RefCell, collections::HashSet, rc::Rc};
3
4
use hir::{
5
BasicBlock, BlockId, BlockKind, Environment, GotoKind, Identifier, IdentifierData, Instruction,
compiler/forget/crates/estree-swc/src/lib.rs
+1
-1
@@ -390,7 +390,7 @@ fn convert_assignment_target(cx: &Context, target: &PatOrExpr) -> estree::Assign
390
}
391
}
392
393
-fn convert_member_expression(cx: &Context, expr: &MemberExpr) -> estree::MemberExpression {
393
+fn convert_member_expression(_cx: &Context, _expr: &MemberExpr) -> estree::MemberExpression {
394
todo!("convert member expression")
395
}
396
compiler/forget/crates/hir/src/print.rs
+1
-1
@@ -1,7 +1,7 @@
1
use std::fmt::{Result, Write};
2
3
use crate::{
4
- terminal, ArrayElement, BasicBlock, Function, Instruction, InstructionValue, LValue, Place,
4
+ ArrayElement, BasicBlock, Function, Instruction, InstructionValue, LValue, Place,
5
PrimitiveValue, Terminal, TerminalValue,
6
};
7