diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2025-12-19 12:52:30 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-12-22 02:13:00 +0000 |
| commit | a83befa0d111a0ba6fac52d763e93c76a2ef94d4 (patch) | |
| tree | 7d3c28b24229429936a631e8ceb24135856b257d /pkg/repro | |
| parent | 8fb7048c5117ccb592deb5e8e4a62027e6d399cf (diff) | |
all: use any instead of interface{}
Any is the preferred over interface{} now in Go.
Diffstat (limited to 'pkg/repro')
| -rw-r--r-- | pkg/repro/repro.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go index b10d29784..9442acfb2 100644 --- a/pkg/repro/repro.go +++ b/pkg/repro/repro.go @@ -51,7 +51,7 @@ type Stats struct { type reproContext struct { ctx context.Context exec execInterface - logf func(string, ...interface{}) + logf func(string, ...any) target *targets.Target crashTitle string crashType crash.Type @@ -82,7 +82,7 @@ type Environment struct { // it skips multiple simpifications and C repro generation. Fast bool - logf func(string, ...interface{}) + logf func(string, ...any) } func Run(ctx context.Context, log []byte, env Environment) (*Result, *Stats, error) { @@ -766,7 +766,7 @@ func (ctx *reproContext) testCProg(p *prog.Prog, duration time.Duration, opts cs }, strict) } -func (ctx *reproContext) reproLogf(level int, format string, args ...interface{}) { +func (ctx *reproContext) reproLogf(level int, format string, args ...any) { if ctx.logf != nil { ctx.logf(format, args...) } @@ -795,7 +795,7 @@ func (ctx *reproContext) bisectProgs(progs []*prog.LogEntry, pred func([]*prog.L ret, err := minimize.SliceWithFixed(minimize.Config[*prog.LogEntry]{ Pred: minimizePred, MaxChunks: chunks, - Logf: func(msg string, args ...interface{}) { + Logf: func(msg string, args ...any) { ctx.reproLogf(3, "bisect: "+msg, args...) }, }, progs, func(elem *prog.LogEntry) bool { |
