Skip to content

Commit

Permalink
limit the constructor signatures of PartialStruct and Conditional (
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored and pull[bot] committed Aug 28, 2023
1 parent 8e84da7 commit cfcfe8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/boot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ eval(Core, quote
relocatability)
end
Const(@nospecialize(v)) = $(Expr(:new, :Const, :v))
PartialStruct(@nospecialize(typ), fields::Array{Any, 1}) = $(Expr(:new, :PartialStruct, :typ, :fields))
PartialStruct(typ::DataType, fields::Array{Any, 1}) = $(Expr(:new, :PartialStruct, :typ, :fields))
PartialOpaque(@nospecialize(typ), @nospecialize(env), parent::MethodInstance, source::Method) = $(Expr(:new, :PartialOpaque, :typ, :env, :parent, :source))
InterConditional(slot::Int, @nospecialize(vtype), @nospecialize(elsetype)) = $(Expr(:new, :InterConditional, :slot, :vtype, :elsetype))
MethodMatch(@nospecialize(spec_types), sparams::SimpleVector, method::Method, fully_covers::Bool) = $(Expr(:new, :MethodMatch, :spec_types, :sparams, :method, :fully_covers))
Expand Down
2 changes: 1 addition & 1 deletion base/compiler/typelattice.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct Conditional
vtype
elsetype
function Conditional(
var,
var::SlotNumber,
@nospecialize(vtype),
@nospecialize(nottype))
return new(var, vtype, nottype)
Expand Down

0 comments on commit cfcfe8c

Please sign in to comment.