LLVM IR Backend #550
ci.yml
on: pull_request
Report / Codecov
0s
Deploy / Latest Rustdoc
0s
Deploy / crates.io
0s
Annotations
10 errors and 2 warnings
unused variable: `builder`:
src/lib.rs#L370
error: unused variable: `builder`
--> src/ir/llvm_ir_backend/mod.rs:370:9
|
370 | builder: &Builder<'ctx>,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
|
unused variable: `module`:
src/lib.rs#L406
error: unused variable: `module`
--> src/ir/llvm_ir_backend/mod.rs:406:9
|
406 | module: &Module<'ctx>,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module`
|
unused variable: `builder`:
src/lib.rs#L407
error: unused variable: `builder`
--> src/ir/llvm_ir_backend/mod.rs:407:9
|
407 | builder: &Builder<'ctx>,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder`
|
unused variable: `pc`:
src/lib.rs#L408
error: unused variable: `pc`
--> src/ir/llvm_ir_backend/mod.rs:408:9
|
408 | pc: ProgramCounter,
| ^^ help: if this is intentional, prefix it with an underscore: `_pc`
|
unused variable: `module`:
src/lib.rs#L417
error: unused variable: `module`
--> src/ir/llvm_ir_backend/mod.rs:417:9
|
417 | module: &Module<'ctx>,
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module`
|
unused variable: `builder`:
src/lib.rs#L418
error: unused variable: `builder`
--> src/ir/llvm_ir_backend/mod.rs:418:9
|
418 | builder: &Builder<'ctx>,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builder`
|
unused variable: `pc`:
src/lib.rs#L419
error: unused variable: `pc`
--> src/ir/llvm_ir_backend/mod.rs:419:9
|
419 | pc: ProgramCounter,
| ^^ help: if this is intentional, prefix it with an underscore: `_pc`
|
this function has too many lines (203/100):
src/lib.rs#L117
error: this function has too many lines (203/100)
--> src/ir/llvm_ir_backend/mod.rs:117:5
|
117 | / fn lower<'ctx>(
118 | | &self,
119 | | module: &Module<'ctx>,
120 | | builder: &Builder<'ctx>,
... |
362 | | )
363 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
= note: `-D clippy::too-many-lines` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::too_many_lines)]`
|
casting `i32` to `u64` may lose the sign of the value:
src/lib.rs#L377
error: casting `i32` to `u64` may lose the sign of the value
--> src/ir/llvm_ir_backend/mod.rs:377:67
|
377 | ConstantValue::Integer(v) => ctx.i32_type().const_int(*v as u64, true).into(),
| ^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_sign_loss
= note: `-D clippy::cast-sign-loss` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::cast_sign_loss)]`
|
casts from `f32` to `f64` can be expressed infallibly using `From`:
src/lib.rs#L378
error: casts from `f32` to `f64` can be expressed infallibly using `From`
--> src/ir/llvm_ir_backend/mod.rs:378:67
|
378 | ConstantValue::Float(v) => ctx.f32_type().const_float(*v as f64).into(),
| ^^^^^^^^^
|
= help: an `as` cast can become silently lossy if the types change in the future
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
= note: `-D clippy::cast-lossless` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::cast_lossless)]`
help: use `f64::from` instead
|
378 | ConstantValue::Float(v) => ctx.f32_type().const_float(f64::from(*v)).into(),
| ~~~~~~~~~~~~~
|
Style / rustfmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Style / clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|