Skip to content

Compilation errors after updating zerovec to 0.11.5 #7190

@joelchen

Description

@joelchen

After updating zerovec (nested dependency from url > idna > idna_adapter > icu_normalizer/icu_properties) from 0.11.4 to 0.11.5, my project's compilation failed with the following errors:

error[E0432]: unresolved import `zerovec::ZeroMap`
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties-2.0.1/src/provider/names.rs:20:27
    |
 20 | use zerovec::{VarZeroVec, ZeroMap, ZeroVec};
    |                           ^^^^^^^ no `ZeroMap` in the root
    |
note: found an item that was configured out
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerovec-0.11.5/src/lib.rs:241:26
    |
240 | #[cfg(feature = "alloc")]
    |       ----------------- the item is gated behind the `alloc` feature
241 | pub use crate::map::map::ZeroMap;
    |                          ^^^^^^^

   Compiling tracing v0.1.41
error[E0433]: failed to resolve: could not find `maps` in `zerovec`
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties-2.0.1/src/props.rs:244:5
    |
244 |     #[zerovec::make_ule(GeneralCategoryULE)]
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `maps` in `zerovec`
    |
note: found an item that was configured out
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerovec-0.11.5/src/lib.rs:261:9
    |
260 | #[cfg(feature = "alloc")]
    |       ----------------- the item is gated behind the `alloc` feature
261 | pub mod maps {
    |         ^^^^
    = note: this error originates in the attribute macro `zerovec::make_ule` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `ZeroMap` in `zerovec`
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties-2.0.1/src/provider.rs:155:5
    |
155 |     impl_property_name_long_canonical_combining_class_v1!(Baked);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ZeroMap` in `zerovec`
    |
note: found an item that was configured out
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerovec-0.11.5/src/lib.rs:241:26
    |
240 | #[cfg(feature = "alloc")]
    |       ----------------- the item is gated behind the `alloc` feature
241 | pub use crate::map::map::ZeroMap;
    |                          ^^^^^^^
    = note: this error originates in the macro `impl_property_name_long_canonical_combining_class_v1` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `ZeroMap` in `zerovec`
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties-2.0.1/src/provider.rs:182:5
    |
182 |     impl_property_name_short_canonical_combining_class_v1!(Baked);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ZeroMap` in `zerovec`
    |
note: found an item that was configured out
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerovec-0.11.5/src/lib.rs:241:26
    |
240 | #[cfg(feature = "alloc")]
    |       ----------------- the item is gated behind the `alloc` feature
241 | pub use crate::map::map::ZeroMap;
    |                          ^^^^^^^
    = note: this error originates in the macro `impl_property_name_short_canonical_combining_class_v1` (in Nightly builds, run with -Z macro-backtrace for more info)

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