Skip to content

Linux x86_64: main no longer builds from the pinned seed since 4cc11b86 (&Vec.new() argument in CodegenDispatch.w) #2068

Closed

Description

@joshhickson

Since 4cc11b8 (#2044), stage1 does not compile with the pinned linux-x86_64 seed (nightly-20260926-local-1-2e8defaa18ef in seed.lock):

error: wrong argument type in call to 'Codegen.closure_env_llvm_type'
 --> src/CodegenDispatch.w:19875:87
19875 |             cap_struct_type = self.closure_env_llvm_type(&cap_types, &env_sema_types, &Vec.new())
  |                                                                                       ^^^^^^^^^^
  = label @19875:87 argument expression '(&Vec.new())' has type &Vec
  = note: parameter 'by_place' expects &Vec[i32]
  = note: actual type: &Vec

src/main build :dev on Linux x86_64 (WSL2), with the pinned seed and linux SDK:

commit :dev
e077362a (4cc11b8's parent) green
1e1b1cd6 (main) stage1 fails as above
1e1b1cd6 with the argument as a typed local green

The typed local, in the style of env_sema_types two lines above:

            let no_by_place: Vec[i32] = Vec.new()
            cap_struct_type = self.closure_env_llvm_type(&cap_types, &env_sema_types, &no_by_place)

The darwin seed (c884c1c, bc4772c) accepts the original line; the linux-x86_64 seed (2e8defa) does not. The last CI run on main (6572eab) predates 4cc11b8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions