diff --git a/components/calendar/src/error.rs b/components/calendar/src/error.rs index acbd1f48457..283d514bdd5 100644 --- a/components/calendar/src/error.rs +++ b/components/calendar/src/error.rs @@ -10,7 +10,7 @@ use writeable::Writeable; #[cfg(feature = "std")] impl std::error::Error for CalendarError {} -/// A list of error outcomes for various operations in the `icu_calendar` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone, PartialEq)] diff --git a/components/calendar/src/lib.rs b/components/calendar/src/lib.rs index 0f2b4b7dac5..14b8e959e7b 100644 --- a/components/calendar/src/lib.rs +++ b/components/calendar/src/lib.rs @@ -151,6 +151,5 @@ pub use error::CalendarError; pub use gregorian::Gregorian; pub use iso::Iso; -/// Re-export of [`CalendarError`]. #[doc(no_inline)] pub use CalendarError as Error; diff --git a/components/collator/src/error.rs b/components/collator/src/error.rs index 32aec2726bb..74f39f8bc63 100644 --- a/components/collator/src/error.rs +++ b/components/collator/src/error.rs @@ -8,7 +8,7 @@ use displaydoc::Display; use icu_properties::PropertiesError; use icu_provider::prelude::DataError; -/// A list of error outcomes for various operations in the `icu_collator` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug)] diff --git a/components/collator/src/lib.rs b/components/collator/src/lib.rs index a4a85f51d26..4fbd8a2b2d0 100644 --- a/components/collator/src/lib.rs +++ b/components/collator/src/lib.rs @@ -328,5 +328,5 @@ pub use options::MaxVariable; pub use options::Numeric; pub use options::Strength; -#[doc(inline)] +#[doc(no_inline)] pub use CollatorError as Error; diff --git a/components/collections/src/codepointinvlist/mod.rs b/components/collections/src/codepointinvlist/mod.rs index b2139b9e367..71b765c01d2 100644 --- a/components/collections/src/codepointinvlist/mod.rs +++ b/components/collections/src/codepointinvlist/mod.rs @@ -84,5 +84,5 @@ pub enum CodePointInversionListError { #[cfg(feature = "std")] impl std::error::Error for CodePointInversionListError {} -#[doc(inline)] +#[doc(no_inline)] pub use CodePointInversionListError as Error; diff --git a/components/collections/src/codepointinvliststringlist/mod.rs b/components/collections/src/codepointinvliststringlist/mod.rs index 7a8afdb806e..29d601bcb9d 100644 --- a/components/collections/src/codepointinvliststringlist/mod.rs +++ b/components/collections/src/codepointinvliststringlist/mod.rs @@ -259,7 +259,7 @@ pub enum CodePointInversionListAndStringListError { StringListNotSorted(String, String), } -#[doc(inline)] +#[doc(no_inline)] pub use CodePointInversionListAndStringListError as Error; #[cfg(test)] diff --git a/components/collections/src/codepointtrie/mod.rs b/components/collections/src/codepointtrie/mod.rs index 643cc27b1ef..79606c14455 100644 --- a/components/collections/src/codepointtrie/mod.rs +++ b/components/collections/src/codepointtrie/mod.rs @@ -50,5 +50,5 @@ pub use cptrie::TrieType; pub use cptrie::TrieValue; pub use error::Error as CodePointTrieError; -#[doc(inline)] +#[doc(no_inline)] pub use CodePointTrieError as Error; diff --git a/components/datetime/src/error.rs b/components/datetime/src/error.rs index 3097ccda8c7..0e83a29614b 100644 --- a/components/datetime/src/error.rs +++ b/components/datetime/src/error.rs @@ -17,7 +17,7 @@ use icu_provider::prelude::DataError; #[cfg(feature = "std")] impl std::error::Error for DateTimeError {} -/// A list of error outcomes for various operations in the `icu_datetime` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone, PartialEq)] diff --git a/components/datetime/src/lib.rs b/components/datetime/src/lib.rs index 970b9875c7d..78d07302b4b 100644 --- a/components/datetime/src/lib.rs +++ b/components/datetime/src/lib.rs @@ -166,5 +166,5 @@ pub use format::zoned_datetime::FormattedZonedDateTime; pub use options::DateTimeFormatterOptions; pub use zoned_datetime::TypedZonedDateTimeFormatter; -#[doc(inline)] +#[doc(no_inline)] pub use DateTimeError as Error; diff --git a/components/decimal/src/error.rs b/components/decimal/src/error.rs index 57b1ac4a2de..a83a3a774d9 100644 --- a/components/decimal/src/error.rs +++ b/components/decimal/src/error.rs @@ -6,7 +6,7 @@ use displaydoc::Display; -/// A list of error outcomes for various operations in the `icu_decimal` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone, PartialEq)] diff --git a/components/decimal/src/lib.rs b/components/decimal/src/lib.rs index 18cf7430782..f2caec1fe6e 100644 --- a/components/decimal/src/lib.rs +++ b/components/decimal/src/lib.rs @@ -106,7 +106,7 @@ pub mod provider; pub use error::DecimalError; pub use format::FormattedFixedDecimal; -#[doc(inline)] +#[doc(no_inline)] pub use DecimalError as Error; use alloc::string::String; diff --git a/components/list/src/error.rs b/components/list/src/error.rs index d8622b03ae6..7dc6a7b33f9 100644 --- a/components/list/src/error.rs +++ b/components/list/src/error.rs @@ -9,7 +9,7 @@ use icu_provider::prelude::DataError; #[cfg(feature = "std")] impl std::error::Error for ListError {} -/// A list of error outcomes for various operations in the `icu_timezone` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone, PartialEq)] diff --git a/components/list/src/lib.rs b/components/list/src/lib.rs index 8e5f1c3cffd..9412a7fb9dc 100644 --- a/components/list/src/lib.rs +++ b/components/list/src/lib.rs @@ -103,7 +103,7 @@ pub use list_formatter::*; pub use error::ListError; -#[doc(inline)] +#[doc(no_inline)] pub use ListError as Error; /// Represents the style of a list. See the diff --git a/components/locid/src/lib.rs b/components/locid/src/lib.rs index 90bb74c1936..d9c4f76997b 100644 --- a/components/locid/src/lib.rs +++ b/components/locid/src/lib.rs @@ -77,6 +77,9 @@ pub use locale::Locale; pub use ordering::SubtagOrderingResult; pub use parser::errors::ParserError; +#[doc(no_inline)] +pub use ParserError as Error; + pub mod extensions; pub mod subtags; pub mod zerovec; diff --git a/components/locid/src/parser/errors.rs b/components/locid/src/parser/errors.rs index 5cbbb2bd4a1..b2262460c10 100644 --- a/components/locid/src/parser/errors.rs +++ b/components/locid/src/parser/errors.rs @@ -7,6 +7,8 @@ use displaydoc::Display; /// List of parser errors that can be generated /// while parsing [`LanguageIdentifier`](crate::LanguageIdentifier), [`Locale`](crate::Locale), /// [`subtags`](crate::subtags) or [`extensions`](crate::extensions). +/// +/// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, PartialEq, Copy, Clone)] #[non_exhaustive] pub enum ParserError { diff --git a/components/locid_transform/src/error.rs b/components/locid_transform/src/error.rs index 88eef381129..8691a8f32c5 100644 --- a/components/locid_transform/src/error.rs +++ b/components/locid_transform/src/error.rs @@ -9,7 +9,7 @@ use icu_provider::prelude::DataError; #[cfg(feature = "std")] impl std::error::Error for LocaleTransformError {} -/// A list of error outcomes for various operations in the `icu_timezone` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone, PartialEq)] diff --git a/components/locid_transform/src/lib.rs b/components/locid_transform/src/lib.rs index a620b9864c9..a835f2cab3e 100644 --- a/components/locid_transform/src/lib.rs +++ b/components/locid_transform/src/lib.rs @@ -110,5 +110,5 @@ pub enum TransformResult { Unmodified, } -#[doc(inline)] +#[doc(no_inline)] pub use LocaleTransformError as Error; diff --git a/components/normalizer/src/error.rs b/components/normalizer/src/error.rs index 4a93da39734..5e283be4145 100644 --- a/components/normalizer/src/error.rs +++ b/components/normalizer/src/error.rs @@ -8,7 +8,9 @@ use displaydoc::Display; use icu_properties::PropertiesError; use icu_provider::prelude::DataError; -/// Normalizer-specific error +/// A list of error outcomes for various operations in this module. +/// +/// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug)] #[non_exhaustive] pub enum NormalizerError { diff --git a/components/normalizer/src/lib.rs b/components/normalizer/src/lib.rs index c8cadc46e83..bb594895b56 100644 --- a/components/normalizer/src/lib.rs +++ b/components/normalizer/src/lib.rs @@ -73,6 +73,9 @@ pub mod provider; pub use crate::error::NormalizerError; +#[doc(no_inline)] +pub use NormalizerError as Error; + use crate::provider::CanonicalDecompositionDataV1Marker; use crate::provider::CompatibilityDecompositionSupplementV1Marker; use crate::provider::DecompositionDataV1; diff --git a/components/plurals/src/error.rs b/components/plurals/src/error.rs index 11e4db0c23b..065135bbbd7 100644 --- a/components/plurals/src/error.rs +++ b/components/plurals/src/error.rs @@ -7,7 +7,7 @@ use crate::rules::reference::parser::ParserError; use displaydoc::Display; use icu_provider::prelude::DataError; -/// A list of error outcomes for various operations in the `icu_plurals` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Clone, Copy, PartialEq)] diff --git a/components/plurals/src/lib.rs b/components/plurals/src/lib.rs index 4b52f876f03..1209c187fcf 100644 --- a/components/plurals/src/lib.rs +++ b/components/plurals/src/lib.rs @@ -93,7 +93,7 @@ use provider::ErasedPluralRulesV1Marker; use provider::OrdinalV1Marker; use rules::runtime::test_rule; -#[doc(inline)] +#[doc(no_inline)] pub use PluralsError as Error; /// A type of a plural rule which can be associated with the [`PluralRules`] struct. diff --git a/components/properties/src/error.rs b/components/properties/src/error.rs index 6b52fd5a9aa..1526e757908 100644 --- a/components/properties/src/error.rs +++ b/components/properties/src/error.rs @@ -13,7 +13,7 @@ use crate::Script; #[cfg(feature = "std")] impl std::error::Error for PropertiesError {} -/// A list of error outcomes for various operations in the `icu_properties` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone)] diff --git a/components/properties/src/lib.rs b/components/properties/src/lib.rs index 57e9bed71ce..f7fd9092a1a 100644 --- a/components/properties/src/lib.rs +++ b/components/properties/src/lib.rs @@ -121,5 +121,5 @@ pub mod names { pub use error::PropertiesError; -#[doc(inline)] +#[doc(no_inline)] pub use PropertiesError as Error; diff --git a/components/segmenter/src/error.rs b/components/segmenter/src/error.rs index 193631e8767..33f101c35d5 100644 --- a/components/segmenter/src/error.rs +++ b/components/segmenter/src/error.rs @@ -9,7 +9,7 @@ use icu_provider::prelude::DataError; #[cfg(feature = "std")] impl std::error::Error for SegmenterError {} -/// A list of error outcomes for various operations in the `icu_segmenter` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone, PartialEq)] diff --git a/components/segmenter/src/lib.rs b/components/segmenter/src/lib.rs index 21abdd9b32f..c4ca8a2e7b2 100644 --- a/components/segmenter/src/lib.rs +++ b/components/segmenter/src/lib.rs @@ -185,5 +185,5 @@ pub use crate::word::WordBreakIteratorUtf8; pub use error::SegmenterError; -#[doc(inline)] +#[doc(no_inline)] pub use SegmenterError as Error; diff --git a/components/timezone/src/error.rs b/components/timezone/src/error.rs index 5d281bddaf4..9edccf4b87c 100644 --- a/components/timezone/src/error.rs +++ b/components/timezone/src/error.rs @@ -8,7 +8,7 @@ use icu_provider::prelude::DataError; #[cfg(feature = "std")] impl std::error::Error for TimeZoneError {} -/// A list of error outcomes for various operations in the `icu_timezone` crate. +/// A list of error outcomes for various operations in this module. /// /// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone, PartialEq)] diff --git a/components/timezone/src/lib.rs b/components/timezone/src/lib.rs index c417b31bafb..d5c02298e6d 100644 --- a/components/timezone/src/lib.rs +++ b/components/timezone/src/lib.rs @@ -132,5 +132,5 @@ pub use provider::{MetazoneId, TimeZoneBcp47Id}; pub use time_zone::CustomTimeZone; pub use types::{GmtOffset, ZoneVariant}; -#[doc(inline)] +#[doc(no_inline)] pub use TimeZoneError as Error; diff --git a/experimental/casemapping/src/error.rs b/experimental/casemapping/src/error.rs index e1ea1e94c26..2510523c9a5 100644 --- a/experimental/casemapping/src/error.rs +++ b/experimental/casemapping/src/error.rs @@ -6,8 +6,9 @@ use core::char::DecodeUtf16Error; use displaydoc::Display; use icu_collections::codepointtrie::CodePointTrieError; -/// A list of possible errors for the [`CaseMapping`](crate::CaseMapping) struct +/// A list of error outcomes for various operations in this module. /// +/// Re-exported as [`Error`](crate::Error). ///
/// 🚧 This code is experimental; it may change at any time, in breaking or non-breaking ways, /// including in SemVer minor releases. It can be enabled with the "experimental" Cargo feature diff --git a/experimental/casemapping/src/lib.rs b/experimental/casemapping/src/lib.rs index bd1a5d20bb5..216ac817337 100644 --- a/experimental/casemapping/src/lib.rs +++ b/experimental/casemapping/src/lib.rs @@ -31,3 +31,5 @@ pub use casemapping::CaseMapping; pub use error::Error as CaseMappingError; #[cfg(feature = "datagen")] pub use internals::CaseMappingInternals; +#[doc(no_inline)] +pub use CaseMappingError as Error; diff --git a/experimental/compactdecimal/src/error.rs b/experimental/compactdecimal/src/error.rs index f280b8f5b80..aee7548bb34 100644 --- a/experimental/compactdecimal/src/error.rs +++ b/experimental/compactdecimal/src/error.rs @@ -7,7 +7,9 @@ use icu_decimal::DecimalError; use icu_plurals::PluralsError; use icu_provider::DataError; -/// A list of error outcomes for various operations in the `icu_compactdecimal` crate. +/// A list of error outcomes for various operations in this module. +/// +/// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone, PartialEq)] #[non_exhaustive] pub enum CompactDecimalError { diff --git a/experimental/compactdecimal/src/lib.rs b/experimental/compactdecimal/src/lib.rs index 2b047a05c11..981d7bc0b3a 100644 --- a/experimental/compactdecimal/src/lib.rs +++ b/experimental/compactdecimal/src/lib.rs @@ -38,3 +38,5 @@ pub mod provider; pub use compactdecimal::CompactDecimalFormatter; pub use error::CompactDecimalError; +#[doc(no_inline)] +pub use CompactDecimalError as Error; diff --git a/experimental/relativetime/src/error.rs b/experimental/relativetime/src/error.rs index 47db7a2b79a..d834e9f2443 100644 --- a/experimental/relativetime/src/error.rs +++ b/experimental/relativetime/src/error.rs @@ -7,7 +7,9 @@ use icu_decimal::DecimalError; use icu_plurals::PluralsError; use icu_provider::DataError; -/// A list of error outcomes for various operations in the `icu_relativetime` crate. +/// A list of error outcomes for various operations in this module. +/// +/// Re-exported as [`Error`](crate::Error). #[derive(Display, Debug, Copy, Clone, PartialEq)] #[non_exhaustive] pub enum RelativeTimeError { diff --git a/experimental/relativetime/src/lib.rs b/experimental/relativetime/src/lib.rs index 275f1510b01..3a3b991eae0 100644 --- a/experimental/relativetime/src/lib.rs +++ b/experimental/relativetime/src/lib.rs @@ -27,3 +27,5 @@ pub use error::RelativeTimeError; pub use format::FormattedRelativeTime; pub use options::RelativeTimeFormatterOptions; pub use relativetime::RelativeTimeFormatter; +#[doc(no_inline)] +pub use RelativeTimeError as Error; diff --git a/tools/ffi_coverage/src/allowlist.rs b/tools/ffi_coverage/src/allowlist.rs index 97effbc4b5e..717386d496a 100644 --- a/tools/ffi_coverage/src/allowlist.rs +++ b/tools/ffi_coverage/src/allowlist.rs @@ -305,13 +305,16 @@ lazy_static::lazy_static! { // Re-exports of errors "icu::calendar::Error", + "icu::compactdecimal::Error", "icu::datetime::Error", "icu::decimal::Error", "icu::list::Error", + "icu::locid::Error", "icu::locid_transform::Error", "icu::normalizer::Error", "icu::plurals::Error", "icu::properties::Error", + "icu::relativetime::Error", "icu::segmenter::Error", "icu::timezone::Error", "icu::collator::Error",