From 7fbe2f4cc877a02465f36e10e7547e03bcb6e1af Mon Sep 17 00:00:00 2001
From: Robert Griesemer
+ The Go 1.18 compiler now correctly reports declared but not used
errors
+ for variables that are set inside a function literal but are never used. Before Go 1.18,
+ the compiler did not report an error in such cases. This fixes long-outstanding compiler
+ issue #8560. As a result of this change,
+ (possibly incorrect) programs may not compile anymore. The necessary fix is
+ straightforward: fix the program if it was in fact incorrect, or use the offending
+ variable, for instance by assigning it to the blank identifier _
.
+ Since go vet
always pointed out this error, the number of affected
+ programs is likely very small.
+
-- 2.50.0