about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorWeihang Lo <weihanglo@users.noreply.github.com>2023-08-24 22:53:58 +0100
committerGitHub <noreply@github.com>2023-08-24 22:53:58 +0100
commit4369e24875e66f43bca7aa71f110b9a0973df50f (patch)
treef010a2d19c0e7d720cb2fb7e85ba85d0055335f6 /compiler/rustc_parse/src/errors.rs
parentf846d7de9985c900f75b6d64a1a38f1301a92c4d (diff)
parentec2c95e0932312c994ee8c5d52b7ee93b5ae65b9 (diff)
downloadrust-4369e24875e66f43bca7aa71f110b9a0973df50f.tar.gz
rust-4369e24875e66f43bca7aa71f110b9a0973df50f.zip
Rollup merge of #115117 - pnkfelix:detect-and-report-nix-shell, r=albertlarsan68
Detect and report nix shell

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.

Fix #115073
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions