std.Build: fix wrong variable used in `parseTargetQuery`
Also address clobbering diagnostics field with an assert and
doc comment to use the Target.Query.parse function themselves.
Fixes #18876
c280811d1dtjog committed on 2/15/2024, 8:00:06 AM· committed by Andrew Kelleyparent7e83e7d