Skip to content

libc crate tests do not run (or even compile) on linux targets in CI #4149

Description

@tamird

#1536 added the ability to mark functions as const, along with a test in https://github.com/rust-lang/libc/blob/42e5708d3c0cfcf68f6ffea45eed7e1732dbd7ec/tests/const_fn.rs. Unfortunately this file is completely dead due to the combination of #[cfg(target_os = "linux")] in it and the behavior introduced in 3eb4a48 which skips building the libc crate when docker: true, which is the case for all linuxes.

This all culminated in the fact that #4105 broke const functions and #4134 failed to fix it in the --no-default-features case. This remains broken.

@tgross35

EDIT: all releases after 0.2.163 which do not contain a fix for this should be yanked.

Activity

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

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions