mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
traces: Do not print unknown location
Solves 1/3 of the infinite recursion at unknown location meme. See #8879 for ensuring we always have a trace (for stack overflows) We might want to re-add this for finding missing location info *while hacking on that problem only*.
This commit is contained in:
parent
4a8c9bb9aa
commit
4c50f5d130
7 changed files with 11 additions and 20 deletions
|
@ -70,6 +70,13 @@ struct AbstractPos
|
|||
uint32_t line = 0;
|
||||
uint32_t column = 0;
|
||||
|
||||
/**
|
||||
* An AbstractPos may be a "null object", representing an unknown position.
|
||||
*
|
||||
* Return true if this position is known.
|
||||
*/
|
||||
inline operator bool() const { return line != 0; };
|
||||
|
||||
/**
|
||||
* Return the contents of the source file.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue