@@ -952,11 +952,15 @@ where
952
952
FSet :: Z : ZoneMarkers ,
953
953
FSet : GetField < CompositeFieldSet > ,
954
954
{
955
- /// Loads a pattern for the given field set and returns a [`FixedCalendarDateTimeFormatter`].
955
+ /// Loads a pattern for the given field set with compiled data and returns a [`FixedCalendarDateTimeFormatter`].
956
956
///
957
957
/// The names in the current [`FixedCalendarDateTimeNames`] _must_ be sufficient for the field set.
958
958
/// If not, the input object will be returned with an error.
959
959
///
960
+ /// ✨ *Enabled with the `compiled_data` Cargo feature.*
961
+ ///
962
+ /// [📚 Help choosing a constructor](icu_provider::constructors)
963
+ ///
960
964
/// # Examples
961
965
///
962
966
/// ```
@@ -1154,11 +1158,15 @@ where
1154
1158
FSet :: Z : ZoneMarkers ,
1155
1159
FSet : GetField < CompositeFieldSet > ,
1156
1160
{
1157
- /// Loads a pattern for the given field set and returns a [`DateTimeFormatter`].
1161
+ /// Loads a pattern for the given field set with compiled data and returns a [`DateTimeFormatter`].
1158
1162
///
1159
1163
/// The names in the current [`DateTimeNames`] _must_ be sufficient for the field set.
1160
1164
/// If not, the input object will be returned with an error.
1161
1165
///
1166
+ /// ✨ *Enabled with the `compiled_data` Cargo feature.*
1167
+ ///
1168
+ /// [📚 Help choosing a constructor](icu_provider::constructors)
1169
+ ///
1162
1170
/// # Examples
1163
1171
///
1164
1172
/// ```
@@ -1888,7 +1896,11 @@ impl<C, FSet: DateTimeNamesMarker> FixedCalendarDateTimeNames<C, FSet> {
1888
1896
/// names
1889
1897
/// .with_pattern_unchecked(&pattern)
1890
1898
/// .format(&zone_london_summer),
1891
- /// "Your time zone is: Greenwich Mean Time", // TODO
1899
+ /// // Note: The year-round generic name of this zone is Greenwich
1900
+ /// // Mean Time, which may be confusing since the zone observes
1901
+ /// // daylight savings time. See:
1902
+ /// // <https://unicode-org.atlassian.net/issues/CLDR-18378>
1903
+ /// "Your time zone is: Greenwich Mean Time",
1892
1904
/// );
1893
1905
/// ```
1894
1906
#[ cfg( feature = "compiled_data" ) ]
@@ -1975,7 +1987,11 @@ impl<C, FSet: DateTimeNamesMarker> FixedCalendarDateTimeNames<C, FSet> {
1975
1987
/// names
1976
1988
/// .with_pattern_unchecked(&pattern)
1977
1989
/// .format(&zone_london_summer),
1978
- /// "Your time zone is: GMT", // TODO
1990
+ /// // Note: The year-round generic name of this zone is Greenwich
1991
+ /// // Mean Time, which may be confusing since the zone observes
1992
+ /// // daylight savings time. See:
1993
+ /// // <https://unicode-org.atlassian.net/issues/CLDR-18378>
1994
+ /// "Your time zone is: GMT",
1979
1995
/// );
1980
1996
/// ```
1981
1997
#[ cfg( feature = "compiled_data" ) ]
@@ -2540,7 +2556,6 @@ impl<C: CldrCalendar, FSet: DateTimeNamesMarker> FixedCalendarDateTimeNames<C, F
2540
2556
& C :: MonthNamesV1 :: bind ( provider) ,
2541
2557
& WeekdayNamesV1 :: bind ( provider) ,
2542
2558
& DayPeriodNamesV1 :: bind ( provider) ,
2543
- // TODO: Consider making time zone name loading optional here (lots of data)
2544
2559
& tz:: EssentialsV1 :: bind ( provider) ,
2545
2560
& tz:: LocationsRootV1 :: bind ( provider) ,
2546
2561
& tz:: LocationsOverrideV1 :: bind ( provider) ,
@@ -3705,7 +3720,7 @@ impl RawDateTimeNamesBorrowed<'_> {
3705
3720
weekday_names
3706
3721
. names
3707
3722
. get ( ( day as usize ) % 7 )
3708
- // TODO: make weekday_names length 7 in the type system
3723
+ // Note: LinearNames does not guarantee a length of 7.
3709
3724
. ok_or ( GetNameForWeekdayError :: NotLoaded )
3710
3725
}
3711
3726
0 commit comments