about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2024-06-12 03:57:23 -0700
committerGitHub <noreply@github.com>2024-06-12 03:57:23 -0700
commit0805ab47c973def5efd672cd39d2e1de31ad4c3b (patch)
tree3ff9f9b36ea081db360f484f6371d00b6d270d0f /compiler/rustc_codegen_llvm/src/errors.rs
parent0ed474a6358f56a685a3ec22914bfa9af503df56 (diff)
parent751143ef4031d06e718bcf859f1b3139716d043b (diff)
downloadrust-0805ab47c973def5efd672cd39d2e1de31ad4c3b.tar.gz
rust-0805ab47c973def5efd672cd39d2e1de31ad4c3b.zip
Rollup merge of #126281 - ChrisDenton:env, r=jhpratt
set_env: State the conclusion upfront

People tend to skim or skip over long explanations so we should be very upfront that `set_var` and `remove_var` are being made unsafe for a very good reason.

This is just the conclusion restated almost verbatim but earlier in the docs and separated from the explanation:

https://github.com/rust-lang/rust/blob/0c960618b56f662d933e8b864cd9632a99174e87/library/std/src/env.rs#L338-L339

I think this may help with people who may not be entirely comfortable with #125937 being rejected.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions