Skip to content

@[derive(Debug)] fails on a struct with an f64 field: unknown method 'debug_str' for type 'f64' #1288

Closed

Description

@ehartford

Found rewriting `examples/nebula` under #1150 ruling 4 (`schema.w`'s `Telemetry { temp: f64 }`).

§11.8 says `Debug` derives "Always". The derive expands to a `debug_str` call per field and `f64` has none:

```
@[derive(Debug)]
type P { x: f64 }
fn main:
let p = P { x: 1.5 }
print("ok")
```

```
error: unknown method 'debug_str' for type 'f64'
--> p5.w:2:1
```

`i32` fields work. Expected: the derive succeeds for every field type (`f32`/`f64` included). Installed `with v0.15.2.1-g478b26481`; also on the `exdefects` stage1 (#1284).

Workaround in the example: no `Debug` derive on `Telemetry` until fixed.

Activity

  1. added a commit that references this issue on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions