Skip to content

Added extern functions #32

Added extern functions

Added extern functions #32

GitHub Actions / cargo test (windows-2019) succeeded Jul 13, 2024 in 3s

cargo test (windows-2019)

There are 0 failures, 41 warnings, and 0 notice.

Details

Results

Compile result

Type Count
error: internal compiler error 0
error 0
warning 41
failure-note 0
note 0
help 0

Test result

Name Status
logger::tests::api_test ok
profiler::section::tests::api_test ok
profiler::section::tests::basic ok

Annotations

Check warning on line 40 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `section`

warning: unused variable: `section`
  --> core\src\core\engine.rs:40:32
   |
40 |     fn section_register(&self, section: &'static crate::profiler::section::Section) -> NonZeroU32 {
   |                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_section`
   |
   = note: `#[warn(unused_variables)]` on by default

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "note",
    "message": "`#[warn(unused_variables)]` on by default",
    "rendered": null,
    "spans": []
  },
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 1863,
        "byte_start": 1856,
        "column_end": 39,
        "column_start": 32,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 40,
        "line_start": 40,
        "suggested_replacement": "_section",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 39,
            "highlight_start": 32,
            "text": "    fn section_register(&self, section: &'static crate::profiler::section::Section) -> NonZeroU32 {"
          }
        ]
      }
    ]
  }
]

Check warning on line 44 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `id`

warning: unused variable: `id`
  --> core\src\core\engine.rs:44:30
   |
44 |     fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
   |                              ^^ help: if this is intentional, prefix it with an underscore: `_id`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 1983,
        "byte_start": 1981,
        "column_end": 32,
        "column_start": 30,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 44,
        "line_start": 44,
        "suggested_replacement": "_id",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 32,
            "highlight_start": 30,
            "text": "    fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 44 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `start`

warning: unused variable: `start`
  --> core\src\core\engine.rs:44:46
   |
44 |     fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
   |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2002,
        "byte_start": 1997,
        "column_end": 51,
        "column_start": 46,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 44,
        "line_start": 44,
        "suggested_replacement": "_start",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 51,
            "highlight_start": 46,
            "text": "    fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 44 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `end`

warning: unused variable: `end`
  --> core\src\core\engine.rs:44:58
   |
44 |     fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
   |                                                          ^^^ help: if this is intentional, prefix it with an underscore: `_end`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2012,
        "byte_start": 2009,
        "column_end": 61,
        "column_start": 58,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 44,
        "line_start": 44,
        "suggested_replacement": "_end",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 61,
            "highlight_start": 58,
            "text": "    fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 44 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `fields`

warning: unused variable: `fields`
  --> core\src\core\engine.rs:44:68
   |
44 |     fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
   |                                                                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2025,
        "byte_start": 2019,
        "column_end": 74,
        "column_start": 68,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 44,
        "line_start": 44,
        "suggested_replacement": "_fields",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 74,
            "highlight_start": 68,
            "text": "    fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 50 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `callsite`

warning: unused variable: `callsite`
  --> core\src\core\engine.rs:50:33
   |
50 |     fn register_callsite(&self, callsite: &'static Callsite) -> NonZeroU32 {
   |                                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callsite`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2150,
        "byte_start": 2142,
        "column_end": 41,
        "column_start": 33,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 50,
        "line_start": 50,
        "suggested_replacement": "_callsite",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 41,
            "highlight_start": 33,
            "text": "    fn register_callsite(&self, callsite: &'static Callsite) -> NonZeroU32 {"
          }
        ]
      }
    ]
  }
]

Check warning on line 54 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `callsite`

warning: unused variable: `callsite`
  --> core\src\core\engine.rs:54:27
   |
54 |     fn span_create(&self, callsite: NonZeroU32, fields: &FieldSet) -> NonZeroU32 {
   |                           ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callsite`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2248,
        "byte_start": 2240,
        "column_end": 35,
        "column_start": 27,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 54,
        "line_start": 54,
        "suggested_replacement": "_callsite",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 35,
            "highlight_start": 27,
            "text": "    fn span_create(&self, callsite: NonZeroU32, fields: &FieldSet) -> NonZeroU32 {"
          }
        ]
      }
    ]
  }
]

Check warning on line 54 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `fields`

warning: unused variable: `fields`
  --> core\src\core\engine.rs:54:49
   |
54 |     fn span_create(&self, callsite: NonZeroU32, fields: &FieldSet) -> NonZeroU32 {
   |                                                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2268,
        "byte_start": 2262,
        "column_end": 55,
        "column_start": 49,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 54,
        "line_start": 54,
        "suggested_replacement": "_fields",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 55,
            "highlight_start": 49,
            "text": "    fn span_create(&self, callsite: NonZeroU32, fields: &FieldSet) -> NonZeroU32 {"
          }
        ]
      }
    ]
  }
]

Check warning on line 58 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `id`

warning: unused variable: `id`
  --> core\src\core\engine.rs:58:26
   |
58 |     fn span_enter(&self, id: NonZeroU32) {
   |                          ^^ help: if this is intentional, prefix it with an underscore: `_id`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2351,
        "byte_start": 2349,
        "column_end": 28,
        "column_start": 26,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 58,
        "line_start": 58,
        "suggested_replacement": "_id",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 28,
            "highlight_start": 26,
            "text": "    fn span_enter(&self, id: NonZeroU32) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 62 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `id`

warning: unused variable: `id`
  --> core\src\core\engine.rs:62:27
   |
62 |     fn span_record(&self, id: NonZeroU32, fields: &FieldSet) {
   |                           ^^ help: if this is intentional, prefix it with an underscore: `_id`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2422,
        "byte_start": 2420,
        "column_end": 29,
        "column_start": 27,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 62,
        "line_start": 62,
        "suggested_replacement": "_id",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 29,
            "highlight_start": 27,
            "text": "    fn span_record(&self, id: NonZeroU32, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 62 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `fields`

warning: unused variable: `fields`
  --> core\src\core\engine.rs:62:43
   |
62 |     fn span_record(&self, id: NonZeroU32, fields: &FieldSet) {
   |                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2442,
        "byte_start": 2436,
        "column_end": 49,
        "column_start": 43,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 62,
        "line_start": 62,
        "suggested_replacement": "_fields",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 49,
            "highlight_start": 43,
            "text": "    fn span_record(&self, id: NonZeroU32, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 66 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `id`

warning: unused variable: `id`
  --> core\src\core\engine.rs:66:25
   |
66 |     fn span_exit(&self, id: NonZeroU32) {
   |                         ^^ help: if this is intentional, prefix it with an underscore: `_id`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2510,
        "byte_start": 2508,
        "column_end": 27,
        "column_start": 25,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 66,
        "line_start": 66,
        "suggested_replacement": "_id",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 27,
            "highlight_start": 25,
            "text": "    fn span_exit(&self, id: NonZeroU32) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 72 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `callsite`

warning: unused variable: `callsite`
  --> core\src\core\engine.rs:72:19
   |
72 |     fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {
   |                   ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callsite`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2623,
        "byte_start": 2615,
        "column_end": 27,
        "column_start": 19,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 72,
        "line_start": 72,
        "suggested_replacement": "_callsite",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 27,
            "highlight_start": 19,
            "text": "    fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 72 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `msg`

warning: unused variable: `msg`
  --> core\src\core\engine.rs:72:63
   |
72 |     fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {
   |                                                               ^^^ help: if this is intentional, prefix it with an underscore: `_msg`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2662,
        "byte_start": 2659,
        "column_end": 66,
        "column_start": 63,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 72,
        "line_start": 72,
        "suggested_replacement": "_msg",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 66,
            "highlight_start": 63,
            "text": "    fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 72 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `fields`

warning: unused variable: `fields`
  --> core\src\core\engine.rs:72:79
   |
72 |     fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {
   |                                                                               ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fields`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2681,
        "byte_start": 2675,
        "column_end": 85,
        "column_start": 79,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 72,
        "line_start": 72,
        "suggested_replacement": "_fields",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 85,
            "highlight_start": 79,
            "text": "    fn log(&self, callsite: &'static crate::logger::Callsite, msg: Arguments, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 35 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

variant `None` is never constructed

warning: variant `None` is never constructed
  --> core\src\core\engine.rs:35:5
   |
34 | pub enum Engine {
   |          ------ variant in this enum
35 |     None,
   |     ^^^^
   |
   = note: `#[warn(dead_code)]` on by default

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "note",
    "message": "`#[warn(dead_code)]` on by default",
    "rendered": null,
    "spans": []
  }
]

Check warning on line 34 in core\src\logger.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

fields `location` and `level` are never read

warning: fields `location` and `level` are never read
  --> core\src\logger.rs:34:5
   |
33 | pub struct Callsite {
   |            -------- fields in this struct
34 |     location: Location,
   |     ^^^^^^^^
35 |     level: Level
   |     ^^^^^

Raw output
[]

Check warning on line 36 in core\src\trace\span.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

fields `name` and `location` are never read

warning: fields `name` and `location` are never read
  --> core\src\trace\span.rs:36:5
   |
35 | pub struct Callsite {
   |            -------- fields in this struct
36 |     name: &'static str,
   |     ^^^^
37 |     location: Location,
   |     ^^^^^^^^

Raw output
[]

Check warning on line 124 in core\src\profiler\section.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused import: `crate::profiler::profiler_section_register`

warning: unused import: `crate::profiler::profiler_section_register`
   --> core\src\profiler\section.rs:124:9
    |
124 |     use crate::profiler::profiler_section_register;
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_imports)]` on by default

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "note",
    "message": "`#[warn(unused_imports)]` on by default",
    "rendered": null,
    "spans": []
  },
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "remove the whole `use` item",
    "rendered": null,
    "spans": [
      {
        "byte_end": 3926,
        "byte_start": 3879,
        "column_end": 52,
        "column_start": 5,
        "expansion": null,
        "file_name": "core\\src\\profiler\\section.rs",
        "is_primary": true,
        "label": null,
        "line_end": 124,
        "line_start": 124,
        "suggested_replacement": "",
        "suggestion_applicability": "MachineApplicable",
        "text": [
          {
            "highlight_end": 52,
            "highlight_start": 5,
            "text": "    use crate::profiler::profiler_section_register;"
          }
        ]
      }
    ]
  }
]

Check warning on line 128 in core\src\profiler\section.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused import: `std::num::NonZeroU32`

warning: unused import: `std::num::NonZeroU32`
   --> core\src\profiler\section.rs:128:13
    |
128 |         use std::num::NonZeroU32;
    |             ^^^^^^^^^^^^^^^^^^^^

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "remove the whole `use` item",
    "rendered": null,
    "spans": [
      {
        "byte_end": 4036,
        "byte_start": 4011,
        "column_end": 34,
        "column_start": 9,
        "expansion": null,
        "file_name": "core\\src\\profiler\\section.rs",
        "is_primary": true,
        "label": null,
        "line_end": 128,
        "line_start": 128,
        "suggested_replacement": "",
        "suggestion_applicability": "MachineApplicable",
        "text": [
          {
            "highlight_end": 34,
            "highlight_start": 9,
            "text": "        use std::num::NonZeroU32;"
          }
        ]
      }
    ]
  }
]

Check warning on line 129 in core\src\profiler\section.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused import: `crate::profiler::section::Section`

warning: unused import: `crate::profiler::section::Section`
   --> core\src\profiler\section.rs:129:13
    |
129 |         use crate::profiler::section::Section;
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "remove the whole `use` item",
    "rendered": null,
    "spans": [
      {
        "byte_end": 4084,
        "byte_start": 4046,
        "column_end": 47,
        "column_start": 9,
        "expansion": null,
        "file_name": "core\\src\\profiler\\section.rs",
        "is_primary": true,
        "label": null,
        "line_end": 129,
        "line_start": 129,
        "suggested_replacement": "",
        "suggestion_applicability": "MachineApplicable",
        "text": [
          {
            "highlight_end": 47,
            "highlight_start": 9,
            "text": "        use crate::profiler::section::Section;"
          }
        ]
      }
    ]
  }
]

Check warning on line 40 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `section`

warning: unused variable: `section`
  --> core\src\core\engine.rs:40:32
   |
40 |     fn section_register(&self, section: &'static crate::profiler::section::Section) -> NonZeroU32 {
   |                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_section`
   |
   = note: `#[warn(unused_variables)]` on by default

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "note",
    "message": "`#[warn(unused_variables)]` on by default",
    "rendered": null,
    "spans": []
  },
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 1863,
        "byte_start": 1856,
        "column_end": 39,
        "column_start": 32,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 40,
        "line_start": 40,
        "suggested_replacement": "_section",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 39,
            "highlight_start": 32,
            "text": "    fn section_register(&self, section: &'static crate::profiler::section::Section) -> NonZeroU32 {"
          }
        ]
      }
    ]
  }
]

Check warning on line 44 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `id`

warning: unused variable: `id`
  --> core\src\core\engine.rs:44:30
   |
44 |     fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
   |                              ^^ help: if this is intentional, prefix it with an underscore: `_id`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 1983,
        "byte_start": 1981,
        "column_end": 32,
        "column_start": 30,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 44,
        "line_start": 44,
        "suggested_replacement": "_id",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 32,
            "highlight_start": 30,
            "text": "    fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 44 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `start`

warning: unused variable: `start`
  --> core\src\core\engine.rs:44:46
   |
44 |     fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
   |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_start`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2002,
        "byte_start": 1997,
        "column_end": 51,
        "column_start": 46,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 44,
        "line_start": 44,
        "suggested_replacement": "_start",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 51,
            "highlight_start": 46,
            "text": "    fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]

Check warning on line 44 in core\src\core\engine.rs

See this annotation in the file changed.

@github-actions github-actions / cargo test (windows-2019)

unused variable: `end`

warning: unused variable: `end`
  --> core\src\core\engine.rs:44:58
   |
44 |     fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {
   |                                                          ^^^ help: if this is intentional, prefix it with an underscore: `_end`

Raw output
[
  {
    "children": [],
    "code": null,
    "level": "help",
    "message": "if this is intentional, prefix it with an underscore",
    "rendered": null,
    "spans": [
      {
        "byte_end": 2012,
        "byte_start": 2009,
        "column_end": 61,
        "column_start": 58,
        "expansion": null,
        "file_name": "core\\src\\core\\engine.rs",
        "is_primary": true,
        "label": null,
        "line_end": 44,
        "line_start": 44,
        "suggested_replacement": "_end",
        "suggestion_applicability": "MaybeIncorrect",
        "text": [
          {
            "highlight_end": 61,
            "highlight_start": 58,
            "text": "    fn section_record(&self, id: NonZeroU32, start: u64, end: u64, fields: &FieldSet) {"
          }
        ]
      }
    ]
  }
]