This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit cb2effd
committed
Auto merge of rust-lang#81574 - tmiasko:p, r=oli-obk
Precompute ancestors when checking privacy
Precompute ancestors of the old error node set so that check for private
types and traits in public interfaces can in constant time determine if
the current item has any descendants in the old error set.
This removes disparity in compilation time between public and private type
aliases reported in rust-lang#50614 (from 30 s to 5 s, in an example making extensive use
of private type aliases).
No functional changes intended.1 file changed
+21
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1849 | 1849 | | |
1850 | 1850 | | |
1851 | 1851 | | |
1852 | | - | |
| 1852 | + | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | | - | |
| 1855 | + | |
1856 | 1856 | | |
1857 | 1857 | | |
1858 | | - | |
| 1858 | + | |
1859 | 1859 | | |
1860 | 1860 | | |
1861 | 1861 | | |
1862 | 1862 | | |
1863 | 1863 | | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
1869 | | - | |
1870 | | - | |
1871 | | - | |
1872 | | - | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
1879 | | - | |
1880 | | - | |
1881 | | - | |
1882 | | - | |
1883 | | - | |
1884 | | - | |
1885 | | - | |
1886 | | - | |
1887 | 1864 | | |
1888 | 1865 | | |
1889 | 1866 | | |
1890 | 1867 | | |
1891 | 1868 | | |
1892 | 1869 | | |
1893 | 1870 | | |
1894 | | - | |
| 1871 | + | |
1895 | 1872 | | |
1896 | 1873 | | |
1897 | 1874 | | |
| |||
1917 | 1894 | | |
1918 | 1895 | | |
1919 | 1896 | | |
1920 | | - | |
| 1897 | + | |
1921 | 1898 | | |
1922 | 1899 | | |
1923 | 1900 | | |
| |||
2137 | 2114 | | |
2138 | 2115 | | |
2139 | 2116 | | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
2140 | 2131 | | |
2141 | | - | |
2142 | | - | |
2143 | | - | |
2144 | | - | |
2145 | | - | |
| 2132 | + | |
| 2133 | + | |
2146 | 2134 | | |
2147 | 2135 | | |
0 commit comments