Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Nov 24, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

fingolfin and others added 4 commits November 24, 2025 18:10
Parameterize Base64{En,De}codepipe to avoid abstract field type, and
avoid the use of a mutating closure to avoid boxing a variable.
This should address the `# TODO` item in
#57550.

Unconditionally indexing `DataTypeFieldDesc(dt::DataType)[fidx]` will
error when `dt` has no layout because we define
```julia
struct DataTypeFieldDesc
    dt::DataType
    function DataTypeFieldDesc(dt::DataType)
        dt.layout == C_NULL && throw(UndefRefError())
        new(dt)
    end
end
``` 
For all the `DataType`s I could find, they only had `dt.layout ==
C_NULL` if `!isconcretetype(dt)`, so maybe it would be preferable to
check if they're `!isconcretetype` rather than checking if `dt.layout ==
C_NULL`, but I figured it'd be safer to just mimic the validation logic
in `DataTypeFieldDesc` instead.

---------

Co-authored-by: Shuhei Kadowaki <[email protected]>
Co-authored-by: James Wrigley <[email protected]>
I'm assuming this macro (which is defined as "go find the file or REPL history
entry this Expr came from and re-parse the text to SyntaxTree") is mostly
for convenience in interactive environments. It's also breakable at
precompile time with changes in the way we expand `quote`, and it takes
a noticable amount of time in inference.  This change just uses the
less-convenient `@ast` form like the rest of the project.
@pull pull bot locked and limited conversation to collaborators Nov 24, 2025
@pull pull bot added the ⤵️ pull label Nov 24, 2025
@pull pull bot merged commit 6110f3c into MLH-Fellowship:master Nov 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants