Commit 13cdfae
authored
Rollup merge of rust-lang#132540 - compiler-errors:gc, r=calebcartwright
Do not format generic consts
We introduced **nightly support** for generic const items in rust-lang#113522, but formatting of consts was not modified. Making them format *correctly* is hard, so let's just bail formatting them so we don't accidentally strip their generics and where clauses. This is essentially no-op formatting for generic const items.
r? `````@calebcartwright````` or `````@ytmimi`````File tree
3 files changed
+52
-6
lines changed- compiler/rustc_ast/src
- src/tools/rustfmt
- src
- tests/target
3 files changed
+52
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
417 | 423 | | |
418 | 424 | | |
419 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2009 | 2009 | | |
2010 | 2010 | | |
2011 | 2011 | | |
| 2012 | + | |
2012 | 2013 | | |
2013 | 2014 | | |
2014 | 2015 | | |
| |||
2018 | 2019 | | |
2019 | 2020 | | |
2020 | 2021 | | |
2021 | | - | |
2022 | | - | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
2023 | 2026 | | |
2024 | 2027 | | |
2025 | 2028 | | |
2026 | 2029 | | |
2027 | 2030 | | |
2028 | 2031 | | |
2029 | 2032 | | |
| 2033 | + | |
2030 | 2034 | | |
2031 | 2035 | | |
2032 | 2036 | | |
| |||
2035 | 2039 | | |
2036 | 2040 | | |
2037 | 2041 | | |
| 2042 | + | |
2038 | 2043 | | |
2039 | 2044 | | |
2040 | 2045 | | |
| |||
2044 | 2049 | | |
2045 | 2050 | | |
2046 | 2051 | | |
2047 | | - | |
2048 | | - | |
| 2052 | + | |
| 2053 | + | |
2049 | 2054 | | |
2050 | 2055 | | |
2051 | 2056 | | |
2052 | 2057 | | |
2053 | 2058 | | |
2054 | 2059 | | |
2055 | 2060 | | |
| 2061 | + | |
2056 | 2062 | | |
2057 | 2063 | | |
2058 | 2064 | | |
| |||
2062 | 2068 | | |
2063 | 2069 | | |
2064 | 2070 | | |
2065 | | - | |
2066 | | - | |
| 2071 | + | |
| 2072 | + | |
2067 | 2073 | | |
2068 | 2074 | | |
2069 | 2075 | | |
2070 | 2076 | | |
2071 | 2077 | | |
2072 | 2078 | | |
2073 | 2079 | | |
| 2080 | + | |
2074 | 2081 | | |
2075 | 2082 | | |
2076 | 2083 | | |
| |||
2085 | 2092 | | |
2086 | 2093 | | |
2087 | 2094 | | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
2088 | 2103 | | |
2089 | 2104 | | |
2090 | 2105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments