Skip to content

Compilation fails when using PyO3's multiple-pymethods feature #287

Closed
@prehner

Description

@prehner

The current version of numpy (0.16.0) does not compile any more if the multiple-pymethods feature of PyO3 is active.

Running

cargo build --release --features "pyo3/multiple-pymethods"

results in

error[E0046]: not all trait items implemented, missing: `Inventory`
  --> src/slice_container.rs:94:1
   |
94 | impl PyClassImpl for PySliceContainer {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Inventory` in implementation
   |
   = help: implement the missing item: `type Inventory = Type;`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions