Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Function

rvalueNoCoercePreRef

Private Function
std.zig.AstGen.rvalueNoCoercePreRef
fn rvalueNoCoercePreRef(
    gz: *GenZir,
    ri: ResultInfo,
    raw_result: Zir.Inst.Ref,
    src_node: Ast.Node.Index,
) InnerError!Zir.Inst.Ref

Like rvalue, but refuses to perform coercions before taking references for the ref_coerced_ty result type. This is used for local variables which do not have allocs, because we want variables to have consistent addresses, i.e. we want them to act like lvalues.

Params

Errors

OutOfMemory
AnalysisFail

File

zig/AstGen.zig:10492
10492
10493
10494
10495
10496
10497
10498
10499
fn rvalueNoCoercePreRef(
    gz: *GenZir,
    ri: ResultInfo,
    raw_result: Zir.Inst.Ref,
    src_node: Ast.Node.Index,
) InnerError!Zir.Inst.Ref {
    return rvalueInner(gz, ri, raw_result, src_node, false);
}