Commit 2134c8e
committed
Relax allocator bounds on more Arc/Rc methods/impls.
Remove `A: Clone` bound from:
* `downcast`, `downcast_unchecked`, `unwrap_or_clone` for both.
* `From<Vec<T, A>> for Arc<[T], A>` (Rc's already didn't require A: Clone)
* `TryFrom<Arc<[T], A>> for Arc<[T; N], A>`
Make existing `TryFrom<Rc<[T]>> for Rc<[T; N]>` allocator-aware.1 parent e037761 commit 2134c8e
2 files changed
+35
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1760 | 1760 | | |
1761 | 1761 | | |
1762 | 1762 | | |
| 1763 | + | |
1763 | 1764 | | |
| 1765 | + | |
1764 | 1766 | | |
1765 | 1767 | | |
1766 | 1768 | | |
| |||
1796 | 1798 | | |
1797 | 1799 | | |
1798 | 1800 | | |
1799 | | - | |
| 1801 | + | |
1800 | 1802 | | |
1801 | 1803 | | |
1802 | 1804 | | |
| |||
1819 | 1821 | | |
1820 | 1822 | | |
1821 | 1823 | | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | | - | |
1826 | | - | |
1827 | | - | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
1828 | 1829 | | |
1829 | 1830 | | |
1830 | 1831 | | |
| |||
1859 | 1860 | | |
1860 | 1861 | | |
1861 | 1862 | | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
1868 | 1868 | | |
1869 | 1869 | | |
1870 | 1870 | | |
| |||
2604 | 2604 | | |
2605 | 2605 | | |
2606 | 2606 | | |
2607 | | - | |
2608 | | - | |
| 2607 | + | |
| 2608 | + | |
2609 | 2609 | | |
2610 | | - | |
| 2610 | + | |
2611 | 2611 | | |
2612 | | - | |
| 2612 | + | |
| 2613 | + | |
2613 | 2614 | | |
2614 | 2615 | | |
2615 | 2616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2187 | 2187 | | |
2188 | 2188 | | |
2189 | 2189 | | |
| 2190 | + | |
2190 | 2191 | | |
| 2192 | + | |
2191 | 2193 | | |
2192 | 2194 | | |
2193 | 2195 | | |
| |||
2432 | 2434 | | |
2433 | 2435 | | |
2434 | 2436 | | |
2435 | | - | |
| 2437 | + | |
2436 | 2438 | | |
2437 | 2439 | | |
2438 | 2440 | | |
| |||
2458 | 2460 | | |
2459 | 2461 | | |
2460 | 2462 | | |
2461 | | - | |
2462 | | - | |
2463 | | - | |
2464 | | - | |
2465 | | - | |
2466 | | - | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
2467 | 2468 | | |
2468 | 2469 | | |
2469 | 2470 | | |
| |||
2501 | 2502 | | |
2502 | 2503 | | |
2503 | 2504 | | |
2504 | | - | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
2508 | | - | |
2509 | | - | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
2510 | 2510 | | |
2511 | 2511 | | |
2512 | 2512 | | |
| |||
3432 | 3432 | | |
3433 | 3433 | | |
3434 | 3434 | | |
3435 | | - | |
| 3435 | + | |
3436 | 3436 | | |
3437 | 3437 | | |
3438 | 3438 | | |
| |||
3507 | 3507 | | |
3508 | 3508 | | |
3509 | 3509 | | |
3510 | | - | |
| 3510 | + | |
3511 | 3511 | | |
3512 | 3512 | | |
3513 | 3513 | | |
3514 | 3514 | | |
3515 | | - | |
3516 | | - | |
| 3515 | + | |
| 3516 | + | |
3517 | 3517 | | |
3518 | 3518 | | |
3519 | 3519 | | |
| |||
0 commit comments