Skip to content

Debug assertions are turned off in alloctests #162469

Description

@maxdexh

The alloc collections make generous use of debug_assert to check their invariants in debug mode. But they don't get run in alloctests!

This led to confusion in #162462 (comment).

Steps to reproduce:

  • Add debug_assert!(false); to the body of VecDeque::new
  • ./x test alloctests runs without failures

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: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions