Lukas Wirth 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3fe50ef83c 
							
						 
					 
					
						
						
							
							Merge pull request  #18861  from ChayimFriedman2/await-edition  
						
						 
						
						... 
						
						
						
						fix: Make edition per-token, not per-file 
						
						
					 
					
						2025-01-09 10:20:11 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chayim Refael Friedman 
							
						 
					 
					
						
						
						
						
							
						
						
							97afb7bfba 
							
						 
					 
					
						
						
							
							Make edition per-token, not per-file  
						
						 
						
						... 
						
						
						
						More correctly, *also* per-token. Because as it turns out, while the top-level edition affects parsing (I think), the per-token edition affects escaping of identifiers/keywords. 
						
						
					 
					
						2025-01-09 05:43:08 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							4b6007115a 
							
						 
					 
					
						
						
							
							minor: New clippy lints  
						
						 
						
						
						
						
					 
					
						2025-01-06 17:57:17 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Chayim Refael Friedman 
							
						 
					 
					
						
						
						
						
							
						
						
							ceba289f80 
							
						 
					 
					
						
						
							
							Store token trees in contiguous Vec instead of as a tree  
						
						 
						
						... 
						
						
						
						I expected this to be faster (due to less allocations and better cache locality), but benchmarked it is not (neither it is slower). Memory usage, however, drops by ~50mb (of `analysis-stats .`). I guess tt construction is just not hot.
This also simplifies using even less memory for token trees by compressing equal span, which I plan to do right after.
Some workflows are more easily expressed with a flat tt, while some are better expressed with a tree. With the right helpers, though (which was mostly a matter of trial and error), even the worst workflows become very easy indeed. 
						
						
					 
					
						2025-01-02 19:21:46 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							b2d9486ebd 
							
						 
					 
					
						
						
							
							Move proc-macro protocol into legacy module  
						
						 
						
						
						
						
					 
					
						2024-12-30 11:47:08 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							714b81bec1 
							
						 
					 
					
						
						
							
							Decouple proc-macro server protocol from the server implementation  
						
						 
						
						
						
						
					 
					
						2024-12-30 10:33:57 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							5ce14b0439 
							
						 
					 
					
						
						
							
							Enforce a current directory being set for spawned commands  
						
						 
						
						
						
						
					 
					
						2024-12-29 12:51:13 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c966876f85 
							
						 
					 
					
						
						
							
							Revert "internal: Drop proc-macro server support for ~1.66.0 and older toolchains"  
						
						 
						
						
						
						
					 
					
						2024-12-20 20:51:09 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							5211972743 
							
						 
					 
					
						
						
							
							internal: Split serde derive feature into serde_derive usage  
						
						 
						
						... 
						
						
						
						Ideally we'd not have any dependency pull in the derive feature for faster build times, once that is the case this change would have an actual effect.
See https://github.com/matklad/macro-dep-test/blob/master/README.md  for context. 
						
						
					 
					
						2024-12-20 11:55:02 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							3d63140758 
							
						 
					 
					
						
						
							
							Remove salsa from proc-macro server dep tree  
						
						 
						
						
						
						
					 
					
						2024-12-18 10:24:26 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							f0b5b8333d 
							
						 
					 
					
						
						
							
							internal: Drop proc-macro server support for ~1.66.0 and older toolchains  
						
						 
						
						
						
						
					 
					
						2024-12-12 15:06:14 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								benluiwj 
							
						 
					 
					
						
						
						
						
							
						
						
							1c71a50e01 
							
						 
					 
					
						
						
							
							Improve error message for too new proc-macro server  
						
						 
						
						
						
						
					 
					
						2024-11-02 21:46:05 +08:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							6c23f25e7f 
							
						 
					 
					
						
						
							
							Fix new nightly lints  
						
						 
						
						
						
						
					 
					
						2024-10-22 11:48:41 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							c2258d8880 
							
						 
					 
					
						
						
							
							Properly set the working directory for proc-macro execution  
						
						 
						
						
						
						
					 
					
						2024-09-11 12:23:12 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							9a47e6f2c8 
							
						 
					 
					
						
						
							
							Expand proc-macros in workspace root, not package root  
						
						 
						
						
						
						
					 
					
						2024-08-27 13:40:24 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Vincent Esche 
							
						 
					 
					
						
						
						
						
							
						
						
							7dec7e92ea 
							
						 
					 
					
						
						
							
							Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true  
						
						 
						
						
						
						
					 
					
						2024-08-06 00:26:42 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Vincent Esche 
							
						 
					 
					
						
						
						
						
							
						
						
							f8de86b308 
							
						 
					 
					
						
						
							
							Apply Veykril's change suggestions  
						
						 
						
						
						
						
					 
					
						2024-08-06 00:25:02 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Vincent Esche 
							
						 
					 
					
						
						
						
						
							
						
						
							6f329e6d5b 
							
						 
					 
					
						
						
							
							Add repository URL for published crates' missing [package.repository] fields  
						
						 
						
						
						
						
					 
					
						2024-08-06 00:25:02 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Vincent Esche 
							
						 
					 
					
						
						
						
						
							
						
						
							b5b0f4bc5a 
							
						 
					 
					
						
						
							
							Replace "TBD" with more helpful desciptions in published crates' [package.description] fields  
						
						 
						
						
						
						
					 
					
						2024-08-06 00:25:02 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							188c577855 
							
						 
					 
					
						
						
							
							Newtype ErasedFileAstId  
						
						 
						
						
						
						
					 
					
						2024-08-05 13:46:47 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							5264f86242 
							
						 
					 
					
						
						
							
							Encode edition within FileId in the hir layer  
						
						 
						
						
						
						
					 
					
						2024-07-18 08:49:10 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							93024ad411 
							
						 
					 
					
						
						
							
							Switch token trees to use Symbols  
						
						 
						
						
						
						
					 
					
						2024-07-16 10:11:59 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							05ce57efd5 
							
						 
					 
					
						
						
							
							Fix incorrect encoding of literals in the proc-macro-api on version 4  
						
						 
						
						
						
						
					 
					
						2024-07-15 14:51:01 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							e846c04fbe 
							
						 
					 
					
						
						
							
							Encode ident rawness and literal kind separately in tt::Leaf  
						
						 
						
						
						
						
					 
					
						2024-07-15 12:24:40 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							c6709ffe05 
							
						 
					 
					
						
						
							
							Improve error message when the proc-macro server unexpectedly exits  
						
						 
						
						
						
						
					 
					
						2024-07-01 14:30:21 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							956c8521a9 
							
						 
					 
					
						
						
							
							Arc proc-macro expander paths  
						
						 
						
						
						
						
					 
					
						2024-06-30 17:03:03 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							c236190b60 
							
						 
					 
					
						
						
							
							Abstract proc-macro-srv protocol format  
						
						 
						
						
						
						
					 
					
						2024-06-30 16:56:30 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							7c7c0cbffb 
							
						 
					 
					
						
						
							
							Simplify  
						
						 
						
						
						
						
					 
					
						2024-06-30 16:43:22 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							2fb38ceb66 
							
						 
					 
					
						
						
							
							Faster env snapshotting in proc-macro-srv  
						
						 
						
						
						
						
					 
					
						2024-06-30 16:10:20 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							21a3d01875 
							
						 
					 
					
						
						
							
							Remove inline rust_2018_idioms, unused_lifetimes lint warn, Cargo.toml already enforces this  
						
						 
						
						
						
						
					 
					
						2024-06-30 15:23:54 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							e92646962a 
							
						 
					 
					
						
						
							
							Move interior mutability into ProcMacroSrvProcess  
						
						 
						
						
						
						
					 
					
						2024-06-30 15:22:39 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							db15273d4d 
							
						 
					 
					
						
						
							
							Move dylib version stuff to proc-macro-srv  
						
						 
						
						
						
						
					 
					
						2024-06-30 15:05:35 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							d4dc3ca83b 
							
						 
					 
					
						
						
							
							Register virtual workspace Cargo.toml files in the VFS  
						
						 
						
						
						
						
					 
					
						2024-06-09 12:54:50 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wilfred Hughes 
							
						 
					 
					
						
						
						
						
							
						
						
							27182bb96b 
							
						 
					 
					
						
						
							
							chore: Prefer tracing span shorthand macros  
						
						 
						
						
						
						
					 
					
						2024-06-06 16:52:25 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Hamir Mahal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7c34eb3880 
							
						 
					 
					
						
						
							
							style: simplify string interpolation  
						
						 
						
						
						
						
					 
					
						2024-05-30 16:18:49 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Wilfred Hughes 
							
						 
					 
					
						
						
						
						
							
						
						
							c981ff0944 
							
						 
					 
					
						
						
							
							fix: Tracing span names should match function names  
						
						 
						
						... 
						
						
						
						When viewing traces, it's slightly confusing when the span name doesn't
match the function name. Ensure the names are consistent.
(It might be worth moving most of these to use #[tracing::instrument]
so the name can never go stale. @davidbarsky suggested that is marginally
slower, so I've just done the simple change here.) 
						
						
					 
					
						2024-04-30 11:22:47 -07:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							18ca22a98e 
							
						 
					 
					
						
						
							
							Show workspace info in the status bar  
						
						 
						
						
						
						
					 
					
						2024-04-26 11:28:33 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							cdb8c3a327 
							
						 
					 
					
						
						
							
							Fix tests being non-deterministic  
						
						 
						
						
						
						
					 
					
						2024-04-19 13:22:00 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							86967032f7 
							
						 
					 
					
						
						
							
							Consider ADT generic parameter defaults for unsubstituted layout calculations  
						
						 
						
						
						
						
					 
					
						2024-04-03 09:01:27 +02:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Sculas 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							966d387afa 
							
						 
					 
					
						
						
							
							fix: Rename func_like to FuncLike  
						
						 
						
						... 
						
						
						
						Fixes  rust-lang/rust-analyzer#16926  
						
						
					 
					
						2024-03-22 23:03:44 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							8e324e98a1 
							
						 
					 
					
						
						
							
							Rename ProcMacroKind::FuncLike to Bang  
						
						 
						
						
						
						
					 
					
						2024-03-22 11:20:56 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							cd8eb0fe6d 
							
						 
					 
					
						
						
							
							internal: Remove span trait  
						
						 
						
						
						
						
					 
					
						2024-03-21 20:08:30 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							399dbc074b 
							
						 
					 
					
						
						
							
							internal: Enforce utf8 paths  
						
						 
						
						
						
						
					 
					
						2024-03-19 15:39:00 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							00a6cc0664 
							
						 
					 
					
						
						
							
							Update Cargo.lock  
						
						 
						
						
						
						
					 
					
						2024-03-05 12:16:19 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							4303e741de 
							
						 
					 
					
						
						
							
							Cleanup  
						
						 
						
						
						
						
					 
					
						2024-03-04 11:10:06 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							efa6948b57 
							
						 
					 
					
						
						
							
							Fix rust-analyzer not enabling rust-analyzer spans on the proc-macro server  
						
						 
						
						
						
						
					 
					
						2024-02-22 22:34:03 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lukas Wirth 
							
						 
					 
					
						
						
						
						
							
						
						
							a981db53fa 
							
						 
					 
					
						
						
							
							fix: Pass .cargo/config.toml env vars to proc-macro server  
						
						 
						
						
						
						
					 
					
						2024-02-13 19:42:03 +01:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Tetsuharu Ohzeki 
							
						 
					 
					
						
						
						
						
							
						
						
							b89a4038c9 
							
						 
					 
					
						
						
							
							proc-macro-api: Fix warnings about clippy str_to_string rule  
						
						 
						
						
						
						
					 
					
						2024-02-10 01:00:40 +09:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								bors 
							
						 
					 
					
						
						
						
						
							
						
						
							66cec4d11a 
							
						 
					 
					
						
						
							
							Auto merge of  #16470  - Veykril:clippy-disallow, r=lnicola  
						
						 
						
						... 
						
						
						
						internal: Lint debug prints and disallowed types with clippy 
						
						
					 
					
						2024-02-05 17:20:43 +00:00  
					
					
						 
						
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								GnomedDev 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8011b56827 
							
						 
					 
					
						
						
							
							Swap Subtree::token_trees from Vec to boxed slice  
						
						 
						
						
						
						
					 
					
						2024-02-04 00:28:22 +00:00