about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2023-08-22 17:45:54 -0400
committerFelix S. Klock II <pnkfelix@pnkfx.org>2023-08-22 17:45:54 -0400
commit3c6f4cc743316ff4b7f76a6492f78d6eb83dcf50 (patch)
treeb1a7e2c301f4109e59d4f5bdea9341db047596f1 /compiler/rustc_parse/src/errors.rs
parent4332e8417d15f304741208e82ab969768f0dc11d (diff)
downloadrust-3c6f4cc743316ff4b7f76a6492f78d6eb83dcf50.tar.gz
rust-3c6f4cc743316ff4b7f76a6492f78d6eb83dcf50.zip
Better diagnostics for people using nix subshell on non-NixOS.
1. Turned patch-binaries-for-nix from a boolean into a ternary flag: true,
   false, and unset.

2. When patch-binaries-for-nix is unset, we continue with the existing NixOS
   detection heuristic (look for nixos in /etc/os-release, if present), but if
   we are not atop NixOS, then issue a note if we see the IN_NIX_SHELL
   environment variable telling the user to consider setting
   patch-binaries-for-nix explicitly.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions