mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	With the stage0 refactor the proc_macro version found in the sysroot will no longer always match the proc_macro version that proc-macros get compiled with by the rustc executable that uses this proc_macro. This will cause problems as soon as the ABI of the bridge gets changed to implement new features or change the way existing features work. To fix this, this commit changes rustc crates to depend directly on the local version of proc_macro which will also be used in the sysroot that rustc will build.
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
[package]
 | 
						|
name = "rustc_builtin_macros"
 | 
						|
version = "0.0.0"
 | 
						|
edition = "2024"
 | 
						|
 | 
						|
[lib]
 | 
						|
doctest = false
 | 
						|
 | 
						|
[dependencies]
 | 
						|
# tidy-alphabetical-start
 | 
						|
rustc_ast = { path = "../rustc_ast" }
 | 
						|
rustc_ast_pretty = { path = "../rustc_ast_pretty" }
 | 
						|
rustc_attr_data_structures = { path = "../rustc_attr_data_structures" }
 | 
						|
rustc_attr_parsing = { path = "../rustc_attr_parsing" }
 | 
						|
rustc_data_structures = { path = "../rustc_data_structures" }
 | 
						|
rustc_errors = { path = "../rustc_errors" }
 | 
						|
rustc_expand = { path = "../rustc_expand" }
 | 
						|
rustc_feature = { path = "../rustc_feature" }
 | 
						|
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
 | 
						|
rustc_hir = { path = "../rustc_hir" }
 | 
						|
rustc_index = { path = "../rustc_index" }
 | 
						|
rustc_lexer = { path = "../rustc_lexer" }
 | 
						|
rustc_lint_defs = { path = "../rustc_lint_defs" }
 | 
						|
rustc_macros = { path = "../rustc_macros" }
 | 
						|
rustc_parse = { path = "../rustc_parse" }
 | 
						|
rustc_parse_format = { path = "../rustc_parse_format" }
 | 
						|
# We must use the proc_macro version that we will compile proc-macros against,
 | 
						|
# not the one from our own sysroot.
 | 
						|
rustc_proc_macro = { path = "../rustc_proc_macro" }
 | 
						|
rustc_session = { path = "../rustc_session" }
 | 
						|
rustc_span = { path = "../rustc_span" }
 | 
						|
rustc_target = { path = "../rustc_target" }
 | 
						|
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
 | 
						|
thin-vec = "0.2.12"
 | 
						|
tracing = "0.1"
 | 
						|
# tidy-alphabetical-end
 |