Commit 0fa3de5
Update to rustfmt 1.6.0-nightly (839e9a6 2023-07-02)
Summary:
Update to rustfmt 1.6.0-nightly (839e9a6 2023-07-02)
The big ticket item here is that let-else is now supported! In fact, the
suppport just landed two days ago (see [rust-lang/rustfmt#4914])
The unfortunate thing here though is that rustfmt is not statically
linked anymore (see discussion in [rust-lang/rust#107297]). So we need
all of librustc_driver and libstd - which makes our use case pretty big
(~4-5MB to 50MB-100MB). We should explore building from source and
statically linking, or using rustfmt from the toolchain. Both things
that I don't want to deal with right now.
[rust-lang/rustfmt#4914]: rust-lang/rustfmt#4914
[rust-lang/rust#107297]: rust-lang/rust#107297
Note to future updaters: To find out more-or-less what libs you need,
you can use `objdump -p bin/rustfmt | grep NEEDED` on Linux for ELF
bins, and `otool -L bin/rustfmt` on macOS for Mach-O bins. No idea what
you do for Windows.
Ran `tools/arcanist/lint/codemods/rustfmt-fbsource` to format the repo.
Reviewed By: shayne-fletcher
Differential Revision: D47203254
fbshipit-source-id: 6ffd3ce66c7f2b006d09505b93fed515ebc769021 parent db5771c commit 0fa3de5
File tree
4 files changed
+16
-21
lines changed- hphp/hack/src
- elab/passes
- hackc/ir/conversions/textual
4 files changed
+16
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 237 | + | |
242 | 238 | | |
243 | 239 | | |
244 | 240 | | |
| |||
263 | 259 | | |
264 | 260 | | |
265 | 261 | | |
266 | | - | |
267 | | - | |
| 262 | + | |
| 263 | + | |
268 | 264 | | |
269 | 265 | | |
270 | 266 | | |
| |||
289 | 285 | | |
290 | 286 | | |
291 | 287 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 288 | + | |
297 | 289 | | |
298 | 290 | | |
299 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
| 332 | + | |
336 | 333 | | |
337 | 334 | | |
338 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| |||
589 | 591 | | |
590 | 592 | | |
591 | 593 | | |
592 | | - | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
593 | 597 | | |
594 | 598 | | |
595 | 599 | | |
| |||
1125 | 1129 | | |
1126 | 1130 | | |
1127 | 1131 | | |
1128 | | - | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1129 | 1135 | | |
1130 | 1136 | | |
1131 | 1137 | | |
| |||
0 commit comments