about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/html.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-30 16:24:44 +0200
committerGitHub <noreply@github.com>2020-03-30 16:24:44 +0200
commit47ffca296a533ee389fcea91de3f09827a7c9c49 (patch)
tree3cf343394b6bce7b8d6d3423e444512337528ec4 /src/test/rustdoc-ui/coverage/html.rs
parenta80ec3b3b1d11ed83754885efdd07037d256dbf2 (diff)
parent2a1e61e2d653cd287ac902bdf3411d8cbbc40f0c (diff)
downloadrust-47ffca296a533ee389fcea91de3f09827a7c9c49.tar.gz
rust-47ffca296a533ee389fcea91de3f09827a7c9c49.zip
Rollup merge of #70479 - RalfJung:win-env, r=Mark-Simulacrum
avoid creating unnecessary reference in Windows Env iterator

Discovered in https://github.com/rust-lang/miri/pull/1225: the Windows `Env` iterator violates Stacked Borrows by creating an `&u16`, turning it into a raw pointer, and then accessing memory outside the range of that type.

There is no need to create a reference here in the first place, so the fix is trivial.
Cc @JOE1994
Cc https://github.com/rust-lang/unsafe-code-guidelines/issues/134
Diffstat (limited to 'src/test/rustdoc-ui/coverage/html.rs')
0 files changed, 0 insertions, 0 deletions