This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 785b47d
authored
Rollup merge of rust-lang#104856 - luqmana:associated-const-bad-suggestion, r=compiler-errors
Don't suggest associated function call for associated const.
Fixes rust-lang#104801.
r? `@compiler-errors`File tree
2 files changed
+18
-10
lines changed- compiler/rustc_hir_typeck/src/method
- src/test/ui/suggestions
2 files changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
1876 | 1875 | | |
1877 | 1876 | | |
1878 | 1877 | | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
1879 | 1887 | | |
1880 | 1888 | | |
1881 | 1889 | | |
| |||
1888 | 1896 | | |
1889 | 1897 | | |
1890 | 1898 | | |
1891 | | - | |
| 1899 | + | |
1892 | 1900 | | |
1893 | 1901 | | |
1894 | 1902 | | |
| |||
1902 | 1910 | | |
1903 | 1911 | | |
1904 | 1912 | | |
| 1913 | + | |
1905 | 1914 | | |
1906 | 1915 | | |
1907 | 1916 | | |
1908 | | - | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
1909 | 1923 | | |
1910 | 1924 | | |
1911 | 1925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 5 | + | |
12 | 6 | | |
13 | 7 | | |
14 | 8 | | |
| |||
0 commit comments