Skip to content

error from rust compiler has multiple paths concatentated together #104540

@mdemoss

Description

@mdemoss

Issue Type: Bug

the parsed error is like this, with a weird concatenated 'resource' :

{
	"resource": "/c:/Users/Matt/Documents/Code Projects/xmplay-automute/C:/Users/Matt/Documents/Code Projects/xmplay-automute/target/debug/build/xmplay-automute-d87f361f798703c2/out/bindings.rs",
	"owner": "rust",
	"code": "E0277",
	"severity": 8,
	"message": "arrays only have std trait implementations for lengths 0..=32",
	"startLineNumber": 118322,
	"startColumn": 5,
	"endLineNumber": 118322,
	"endColumn": 5
}

the message in the terminal is like this:

error[E0277]: arrays only have std trait implementations for lengths 0..=32
      --> C:\Users\Matt\Documents\Code Projects\xmplay-automute\target\debug\build\xmplay-automute-d87f361f798703c2\out/bindings.rs:118322:5
       |
118322 |     pub __bindgen_padding_0: [u8; 40usize],
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[u8; 40]`
       |
       = note: required because of the requirements on the impl of `std::fmt::Debug` for `[u8; 40]`
       = note: required because of the requirements on the impl of `std::fmt::Debug` for `&[u8; 40]`
       = note: required for the cast to the object type `dyn std::fmt::Debug`
       = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

VS Code version: Code 1.47.3 (91899dc, 2020-07-23T13:12:49.994Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz (4 x 3792)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.87GB (6.19GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (3)
Extension Author (truncated) Version
better-toml bun 0.3.2
rust rus 0.7.8
vscode-lldb vad 1.5.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    *caused-by-extensionIssue identified to be caused by an extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions