Commit d089fe9
committed
Auto merge of #48811 - Zoxc:syntax-globals, r=michaelwoerister
Remove syntax and syntax_pos thread locals
This moves `syntax` and `syntax_pos` globals into a struct which are pointed to by thread locals. Most of the changes here are indentation changes in test. It would probably be a good idea to ignore whitespace changes while reviewing. Some indentation is unchanged to avoid merge conflicts.
r? @michaelwoeristerFile tree
29 files changed
+1257
-1043
lines changed- src
- librustc_driver
- librustc/session
- librustdoc
- clean
- libsyntax_pos
- libsyntax
- parse
- lexer
- print
- test
- run-fail-fulldeps
- run-make/issue-19371
- run-pass-fulldeps
- tools
- error_index_generator
- tidy/src
29 files changed
+1257
-1043
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2391 | 2391 | | |
2392 | 2392 | | |
2393 | 2393 | | |
| 2394 | + | |
2394 | 2395 | | |
2395 | 2396 | | |
2396 | 2397 | | |
| |||
2411 | 2412 | | |
2412 | 2413 | | |
2413 | 2414 | | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
2417 | | - | |
2418 | | - | |
2419 | | - | |
2420 | | - | |
2421 | | - | |
2422 | | - | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
2423 | 2426 | | |
2424 | 2427 | | |
2425 | 2428 | | |
2426 | 2429 | | |
2427 | 2430 | | |
2428 | 2431 | | |
2429 | | - | |
2430 | | - | |
2431 | | - | |
2432 | | - | |
2433 | | - | |
2434 | | - | |
2435 | | - | |
2436 | | - | |
2437 | | - | |
2438 | | - | |
2439 | | - | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
2440 | 2446 | | |
2441 | 2447 | | |
2442 | 2448 | | |
2443 | 2449 | | |
2444 | | - | |
| 2450 | + | |
2445 | 2451 | | |
2446 | 2452 | | |
2447 | 2453 | | |
2448 | 2454 | | |
2449 | 2455 | | |
2450 | | - | |
| 2456 | + | |
2451 | 2457 | | |
2452 | | - | |
| 2458 | + | |
2453 | 2459 | | |
2454 | 2460 | | |
2455 | 2461 | | |
2456 | 2462 | | |
2457 | 2463 | | |
2458 | 2464 | | |
2459 | 2465 | | |
2460 | | - | |
| 2466 | + | |
2461 | 2467 | | |
2462 | | - | |
| 2468 | + | |
2463 | 2469 | | |
2464 | 2470 | | |
2465 | 2471 | | |
2466 | 2472 | | |
2467 | 2473 | | |
2468 | | - | |
| 2474 | + | |
2469 | 2475 | | |
2470 | 2476 | | |
2471 | 2477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
450 | 461 | | |
451 | 462 | | |
452 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
99 | 110 | | |
100 | 111 | | |
101 | 112 | | |
| |||
0 commit comments