Clean coverage data on first run #459
Annotations
11 errors and 12 warnings
casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers:
src/segments.rs#L71
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)
|
docs for function which may panic missing `# Panics` section:
src/sema/value.rs#L94
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
|
docs for function which may panic missing `# Panics` section:
src/sema/instruction.rs#L265
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
|
docs for function which may panic missing `# Panics` section:
src/sema/file.rs#L530
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)]`
|
casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers:
src/sema/file.rs#L389
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)
|
it is more concise to loop over references to containers instead of using explicit iteration methods:
src/directive.rs#L566
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)
|
`to_string` applied to a type that implements `Display` in `format!` args:
src/directive.rs#L400
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)
|
casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers:
src/assembler/mod.rs#L622
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;
| ^^^^^^^^^^^^^
|
casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers:
src/assembler/mod.rs#L158
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,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
casting `usize` to `i64` may wrap around the value on targets with 64-bit wide pointers:
src/assembler/mod.rs#L148
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)
|
clippy
Clippy had exited with the 101 exit code
|
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|