Skip to content

Some test suite has been broken by new changes in rustc nightly  #15678

Closed
@ShoyuVanilla

Description

@ShoyuVanilla

https://github.com/rust-lang/cargo/actions/runs/15734993656/job/44345206523?pr=15674

 test failed running `/Users/runner/work/cargo/cargo/target/debug/cargo build --lib --target custom-target.json -v`
error: process exited with code 101 (expected 0)
--- stdout

--- stderr
   Compiling foo v0.0.1 (/Users/runner/work/cargo/cargo/target/tmp/cit/t1384/foo)
     Running `rustc --crate-name foo --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=d4fb0c790b31c5ca -C extra-filename=-cf2ab74374a2d944 --out-dir /Users/runner/work/cargo/cargo/target/tmp/cit/t1384/foo/target/custom-target/debug/deps --target /Users/runner/work/cargo/cargo/target/tmp/cit/t1384/foo/custom-target.json -L dependency=/Users/runner/work/cargo/cargo/target/tmp/cit/t1384/foo/target/custom-target/debug/deps -L dependency=/Users/runner/work/cargo/cargo/target/tmp/cit/t1384/foo/target/debug/deps`
error: requires `meta_sized` lang_item
  --> src/lib.rs:9:1
   |
9  | / pub trait Sized {
10 | |     // Empty.
11 | | }
   | |_^

I guess rust-lang/rust#137944 has introduced new lang item MetaSized and the problematic tests don't have them yet.

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