fix: apply [env]
to target info discovery rustc
#12029
Merged
[env]
to target info discovery rustc
#12029