diff options
| author | Weihang Lo <weihanglo@users.noreply.github.com> | 2023-08-24 22:53:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-24 22:53:58 +0100 |
| commit | 4369e24875e66f43bca7aa71f110b9a0973df50f (patch) | |
| tree | f010a2d19c0e7d720cb2fb7e85ba85d0055335f6 /compiler/rustc_parse/src/errors.rs | |
| parent | f846d7de9985c900f75b6d64a1a38f1301a92c4d (diff) | |
| parent | ec2c95e0932312c994ee8c5d52b7ee93b5ae65b9 (diff) | |
| download | rust-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
