Skip to content

Commit 12234d4

Browse files
committed
less generated for NamedTupleConstructor
1 parent 9fa5044 commit 12234d4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ConstructionBase.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ constructorof(::Type{<:NamedTuple{names}}) where names =
3434

3535
struct NamedTupleConstructor{names} end
3636

37-
@generated function (::NamedTupleConstructor{names})(args...) where names
38-
quote
39-
Base.@_inline_meta
40-
$(NamedTuple{names, Tuple{args...}})(args)
41-
end
37+
@inline function (::NamedTupleConstructor{names})(args...) where names
38+
NamedTuple{names}(args)
4239
end
4340

4441
getproperties(o::NamedTuple) = o

0 commit comments

Comments
 (0)