Skip to content

Clean coverage data on first run #459

Clean coverage data on first run

Clean coverage data on first run #459

GitHub Actions / clippy failed Jul 11, 2023 in 0s

clippy

10 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 10
Warning 0
Note 0
Help 0

Versions

  • rustc 1.73.0-nightly (8ca44ef9c 2023-07-10)
  • cargo 1.73.0-nightly (45782b6b8 2023-07-05)
  • clippy 0.1.72 (8ca44ef 2023-07-10)

Annotations

Check failure on line 71 in src/segments.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers

error: casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers
  --> src/segments.rs:71:6
   |
71 |         Ok(self.segments[&self.current_segment_start.ok_or(())?].len() as MemoryAddress
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> src/lib.rs:41:45
   |
41 |         #[deny(missing_docs, unused, clippy::all, clippy::pedantic, clippy::nursery, rustdoc::all)]
   |                                                   ^^^^^^^^^^^^^^^^
...
57 | w_error!(mod segments);
   | ---------------------- in this macro invocation
   = note: this error originates in the macro `w_error` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 98 in src/sema/value.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

docs for function which may panic missing `# Panics` section

error: docs for function which may panic missing `# Panics` section
   --> src/sema/value.rs:94:2
    |
94  | /     pub fn try_value(
95  | |         &self,
96  | |         location: SourceSpan,
97  | |         source_code: Arc<AssemblyCode>,
98  | |     ) -> Result<MemoryAddress, Box<AssemblyError>> {
    | |__________________________________________________^
    |
note: first possible panic found here
   --> src/sema/value.rs:103:26
    |
103 |             let first_reference = self.first_reference().expect("unresolved value without a reference");
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc

Check failure on line 265 in src/sema/instruction.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

docs for function which may panic missing `# Panics` section

error: docs for function which may panic missing `# Panics` section
   --> src/sema/instruction.rs:265:2
    |
265 |     pub fn references_and_calculations(&self) -> Vec<(&Reference, &AssemblyTimeValue)> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
note: first possible panic found here
   --> src/sema/instruction.rs:276:8
    |
276 | / ...                   first_operand
277 | | ...                       .number_ref()
278 | | ...                       .expect("if references exist on first operand, so must an assembly time value"),
    | |_________________________________________________________________________________________________________^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc

Check failure on line 530 in src/sema/file.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

docs for function which may panic missing `# Panics` section

error: docs for function which may panic missing `# Panics` section
   --> src/sema/file.rs:530:2
    |
530 |     pub fn resolve_source_includes(&mut self) -> Result<(), Box<AssemblyError>> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
note: first possible panic found here
   --> src/sema/file.rs:535:23
    |
535 |                 let environment = self.parent.upgrade().expect("parent deleted while we're still parsing");
    |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
    = note: `#[deny(clippy::missing_panics_doc)]` implied by `#[deny(clippy::pedantic)]`

Check failure on line 389 in src/sema/file.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers

error: casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers
   --> src/sema/file.rs:389:17
    |
389 |                     *offset += element.assembled_size() as MemoryAddress;
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
note: the lint level is defined here
   --> src/lib.rs:41:45
    |
41  |         #[deny(missing_docs, unused, clippy::all, clippy::pedantic, clippy::nursery, rustdoc::all)]
    |                                                   ^^^^^^^^^^^^^^^^
...
55  | w_error!(pub mod sema);
    | ---------------------- in this macro invocation
    = note: this error originates in the macro `w_error` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 566 in src/directive.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

it is more concise to loop over references to containers instead of using explicit iteration methods

error: it is more concise to loop over references to containers instead of using explicit iteration methods
   --> src/directive.rs:566:19
    |
566 |                     for value in values.iter_mut() {
    |                                  ^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut *values`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop
note: the lint level is defined here
   --> src/lib.rs:41:45
    |
41  |         #[deny(missing_docs, unused, clippy::all, clippy::pedantic, clippy::nursery, rustdoc::all)]
    |                                                   ^^^^^^^^^^^^^^^^
...
51  | w_error!(mod directive);
    | ----------------------- in this macro invocation
    = note: `#[deny(clippy::explicit_iter_loop)]` implied by `#[deny(clippy::pedantic)]`
    = note: this error originates in the macro `w_error` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 400 in src/directive.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`to_string` applied to a type that implements `Display` in `format!` args

error: `to_string` applied to a type that implements `Display` in `format!` args
   --> src/directive.rs:400:21
    |
400 |                 arguments.read().to_string(),
    |                                 ^^^^^^^^^^^^ help: remove this
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
note: the lint level is defined here
   --> src/lib.rs:41:32
    |
41  |         #[deny(missing_docs, unused, clippy::all, clippy::pedantic, clippy::nursery, rustdoc::all)]
    |                                      ^^^^^^^^^^^
...
51  | w_error!(mod directive);
    | ----------------------- in this macro invocation
    = note: `#[deny(clippy::to_string_in_format_args)]` implied by `#[deny(clippy::all)]`
    = note: this error originates in the macro `w_error` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 622 in src/assembler/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers

error: casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers
   --> src/assembler/mod.rs:622:42
    |
622 |                 let memory_address = segment_start + offset as i64;
    |                                                      ^^^^^^^^^^^^^

Check failure on line 158 in src/assembler/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers

error: casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers
   --> src/assembler/mod.rs:158:21
    |
158 |                     segment_end:   all_data.len() as MemoryAddress,
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 148 in src/assembler/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers

error: casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers
   --> src/assembler/mod.rs:148:26
    |
148 |             if starting_address < all_data.len() as i64 {
    |                                   ^^^^^^^^^^^^^^^^^^^^^
    |
note: the lint level is defined here
   --> src/lib.rs:41:45
    |
41  |         #[deny(missing_docs, unused, clippy::all, clippy::pedantic, clippy::nursery, rustdoc::all)]
    |                                                   ^^^^^^^^^^^^^^^^
...
46  | w_error!(pub mod assembler);
    | --------------------------- in this macro invocation
    = note: `#[deny(clippy::cast_possible_wrap)]` implied by `#[deny(clippy::pedantic)]`
    = note: this error originates in the macro `w_error` (in Nightly builds, run with -Z macro-backtrace for more info)