diff options
| author | Khang Nguyen Duy <40488299+iceghost@users.noreply.github.com> | 2023-07-09 22:18:52 +0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-23 01:03:45 -0800 |
| commit | 993a83081a975464d1201597cf6f4cb7f6735284 (patch) | |
| tree | 08c07b7ad6c2d8b8e24d8e1ac2fe4ba1603b31ed /src/Compilation.zig | |
| parent | aef1da1634ae12d90e9d59fc0184dadaea38830c (diff) | |
| download | zig-993a83081a975464d1201597cf6f4cb7f6735284.tar.gz zig-993a83081a975464d1201597cf6f4cb7f6735284.zip | |
std.fmt: fix unecessary deref on user-defined format function
When formatting a pointer to user type, currently it needs to be
dereferenced first, then call `formatType` on the child type.
Fix the problem by checking for "format" function on not only the type
itself, but also the struct it points to. Add hasMethod to std.meta.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
