@@ -1367,6 +1367,8 @@ impl Date {
1367
1367
/// # Example: negative spans are supported
1368
1368
///
1369
1369
/// ```
1370
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1371
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1370
1372
/// use jiff::{civil::Date, ToSpan};
1371
1373
///
1372
1374
/// let d = Date::constant(2024, 3, 31);
@@ -1380,6 +1382,8 @@ impl Date {
1380
1382
/// # Example: error on overflow
1381
1383
///
1382
1384
/// ```
1385
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1386
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1383
1387
/// use jiff::{civil::Date, ToSpan};
1384
1388
///
1385
1389
/// let d = Date::constant(2024, 3, 31);
@@ -1471,6 +1475,8 @@ impl Date {
1471
1475
/// # Example: negative spans are supported
1472
1476
///
1473
1477
/// ```
1478
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1479
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1474
1480
/// use jiff::{civil::Date, ToSpan};
1475
1481
///
1476
1482
/// let d = Date::constant(2024, 3, 31);
@@ -1484,6 +1490,8 @@ impl Date {
1484
1490
/// # Example: error on overflow
1485
1491
///
1486
1492
/// ```
1493
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1494
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1487
1495
/// use jiff::{civil::Date, ToSpan};
1488
1496
///
1489
1497
/// let d = Date::constant(2024, 3, 31);
@@ -1535,6 +1543,8 @@ impl Date {
1535
1543
/// # Example: negative spans are supported
1536
1544
///
1537
1545
/// ```
1546
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1547
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1538
1548
/// use jiff::{civil::Date, ToSpan};
1539
1549
///
1540
1550
/// let d = Date::constant(2024, 3, 31);
@@ -1547,6 +1557,8 @@ impl Date {
1547
1557
/// # Example: saturation on overflow
1548
1558
///
1549
1559
/// ```
1560
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1561
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1550
1562
/// use jiff::{civil::Date, ToSpan};
1551
1563
///
1552
1564
/// let d = Date::constant(2024, 3, 31);
@@ -1604,6 +1616,8 @@ impl Date {
1604
1616
/// # Example: negative spans are supported
1605
1617
///
1606
1618
/// ```
1619
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1620
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1607
1621
/// use jiff::{civil::Date, ToSpan};
1608
1622
///
1609
1623
/// let d = Date::constant(2024, 3, 31);
@@ -1616,6 +1630,8 @@ impl Date {
1616
1630
/// # Example: saturation on overflow
1617
1631
///
1618
1632
/// ```
1633
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1634
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1619
1635
/// use jiff::{civil::Date, ToSpan};
1620
1636
///
1621
1637
/// let d = Date::constant(2024, 3, 31);
@@ -1669,6 +1685,8 @@ impl Date {
1669
1685
/// # Examples
1670
1686
///
1671
1687
/// ```
1688
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1689
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1672
1690
/// use jiff::{civil::Date, ToSpan};
1673
1691
///
1674
1692
/// let earlier = Date::constant(2006, 8, 24);
@@ -1839,6 +1857,8 @@ impl Date {
1839
1857
/// # Examples
1840
1858
///
1841
1859
/// ```
1860
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
1861
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
1842
1862
/// use jiff::{civil::Date, ToSpan};
1843
1863
///
1844
1864
/// let earlier = Date::constant(2006, 8, 24);
@@ -2035,6 +2055,8 @@ impl Date {
2035
2055
/// When did the most recent Friday the 13th occur?
2036
2056
///
2037
2057
/// ```
2058
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
2059
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
2038
2060
/// use jiff::{civil::{Date, Weekday}, ToSpan};
2039
2061
///
2040
2062
/// let start = Date::constant(2024, 3, 13);
@@ -2689,6 +2711,8 @@ impl DateDifference {
2689
2711
/// This shows how to always round "up" towards positive infinity.
2690
2712
///
2691
2713
/// ```
2714
+ /// # // See: https://github.com/rust-lang/rust/pull/121364
2715
+ /// # #![allow(unknown_lints, ambiguous_negative_literals)]
2692
2716
/// use jiff::{civil::{Date, DateDifference}, RoundMode, ToSpan, Unit};
2693
2717
///
2694
2718
/// let d1 = "2024-01-15".parse::<Date>()?;
0 commit comments