You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@[derive(Debug)] fails on a struct with an f64 field: unknown method 'debug_str' for type 'f64' #1288
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
examples: rewritten to the current spec (D55 ruling 4) + examples-tes…
examples: restore the spec spellings #1308 parked behind now-fixed co…