How to debug this broadcast warning about iteration?

This warning came up on 0.7 but not 1.0 although my code works fine in 1.0. I have two questions:

  1. How do I track down where the problem came from? There isn’t any stack trace.

  2. If the behavior hasn’t changed then shouldn’t this warning be retained in 1.0? Or perhaps it has changed but I’m just lucky enough to see it working?

┌ Warning: broadcast will default to iterating over its arguments in the future. Wrap arguments of
│ type `x::Char` with `Ref(x)` to ensure they broadcast as "scalar" elements.
│   caller = ip:0x0
└ @ Core :-1

Run with --depwarn=error.

The behavior has changed (defaulting to iterating over the arguments).

1 Like