1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Merge pull request #12760 from Prince213/docs-unsafeGetAttrPos

docs: document unsafeGetAttrPos
This commit is contained in:
Robert Hensing 2025-03-26 13:04:13 +00:00 committed by GitHub
commit 6309bbb426
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2775,7 +2775,13 @@ static void prim_unsafeGetAttrPos(EvalState & state, const PosIdx pos, Value * *
static RegisterPrimOp primop_unsafeGetAttrPos(PrimOp {
.name = "__unsafeGetAttrPos",
.args = {"s", "set"},
.arity = 2,
.doc = R"(
`unsafeGetAttrPos` returns the position of the attribute named *s*
from *set*. This is used by Nixpkgs to provide location information
in error messages.
)",
.fun = prim_unsafeGetAttrPos,
});