about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-01-23 19:39:55 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-01-25 13:16:44 +0100
commitcd5d42aad743d49a368d9e65d678be72387808c7 (patch)
treed7c1a9fb92378187402011b6131f1502ac15a753 /src/test/codegen/src-hash-algorithm
parente690fb12731eb5f86d4c88400a344f65607af385 (diff)
downloadrust-cd5d42aad743d49a368d9e65d678be72387808c7.tar.gz
rust-cd5d42aad743d49a368d9e65d678be72387808c7.zip
Correctly import foreign statics
Previously foreign statics would actually cause a local static to be
defined and exported. This issue was found because std::env::vars() was
found to return no env vars despite many being defined. This was caused
by libstd importing environ as foreign static. The accidental definition
of environ caused libstd to read a null pointer which was interpreted as
there being no environment variables at all.

Also fix tests. STDOUT is not defined by libc. The correct name is stdout.
This previously worked as STDOUT was incorrectly defined as null pointer
during codegen.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions