• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / #37535

pending completion
#37535

push

local

web-flow
irinterp: Fix accidentally introduced deletion of effectful statement (#49750)

I moved around some code in #49692 that broadened the replacement of
statements by their const results. This is fine for how we're currently
using irinterp in base, because we're requiring some fairly strong
effects, but some downstream pipelines (and potentially Base in the future)
want to use irinterp on code with arbitrary effects, so put in an
appropriate check.

2 of 2 new or added lines in 2 files covered. (100.0%)

71489 of 83224 relevant lines covered (85.9%)

32529585.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/stdlib/LibGit2/src/strarray.jl
1
# This file is a part of Julia. License is MIT: https://julialang.org/license
2

3

4
function Base.cconvert(::Type{Ptr{StrArrayStruct}}, x::Vector)
×
5
    str_ref = Base.cconvert(Ref{Cstring}, x)
×
6
    sa_ref = Ref(StrArrayStruct(Base.unsafe_convert(Ref{Cstring}, str_ref), length(x)))
×
7
    sa_ref, str_ref
×
8
end
9
function Base.unsafe_convert(::Type{Ptr{StrArrayStruct}}, rr::Tuple{Ref{StrArrayStruct}, Ref{Cstring}})
×
10
    Base.unsafe_convert(Ptr{StrArrayStruct}, first(rr))
×
11
end
12

13
function Base.convert(::Type{Vector{String}}, sa::StrArrayStruct)
×
14
    [unsafe_string(unsafe_load(sa.strings, i)) for i = 1:sa.count]
×
15
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc