mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	 49ed25b5d2
			
		
	
	
		49ed25b5d2
		
	
	
	
	
		
			
			Notes about tests: - tests/ui/rfcs/rfc-2294-if-let-guard/feature-gate.rs: some messages are now duplicated due to repeated parsing. - tests/ui/rfcs/rfc-2497-if-let-chains/disallowed-positions.rs: ditto. - `tests/ui/proc-macro/macro-rules-derive-cfg.rs`: the diff looks large but the only difference is the insertion of a single invisible-delimited group around a metavar. - `tests/ui/attributes/nonterminal-expansion.rs`: a slight span degradation, somehow related to the recent massive attr parsing rewrite (#135726). I couldn't work out exactly what is going wrong, but I don't think it's worth holding things up for a single slightly suboptimal error message.
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| error: unexpected token: `literal` metavariable
 | |
|   --> $DIR/float-field-interpolated.rs:8:13
 | |
|    |
 | |
| LL |         { s.$b; }
 | |
|    |             ^^
 | |
| ...
 | |
| LL |     generate_field_accesses!(1.1, 1.1, 1.1);
 | |
|    |     --------------------------------------- in this macro invocation
 | |
|    |
 | |
|    = note: this error originates in the macro `generate_field_accesses` (in Nightly builds, run with -Z macro-backtrace for more info)
 | |
| 
 | |
| error: expected one of `.`, `;`, `?`, `}`, or an operator, found `literal` metavariable
 | |
|   --> $DIR/float-field-interpolated.rs:8:13
 | |
|    |
 | |
| LL |         { s.$b; }
 | |
|    |             ^^ expected one of `.`, `;`, `?`, `}`, or an operator
 | |
| ...
 | |
| LL |     generate_field_accesses!(1.1, 1.1, 1.1);
 | |
|    |     --------------------------------------- in this macro invocation
 | |
|    |
 | |
|    = note: this error originates in the macro `generate_field_accesses` (in Nightly builds, run with -Z macro-backtrace for more info)
 | |
| 
 | |
| error: unexpected token: `expr` metavariable
 | |
|   --> $DIR/float-field-interpolated.rs:10:13
 | |
|    |
 | |
| LL |         { s.$c; }
 | |
|    |             ^^
 | |
| ...
 | |
| LL |     generate_field_accesses!(1.1, 1.1, 1.1);
 | |
|    |     --------------------------------------- in this macro invocation
 | |
|    |
 | |
|    = note: this error originates in the macro `generate_field_accesses` (in Nightly builds, run with -Z macro-backtrace for more info)
 | |
| 
 | |
| error: expected one of `.`, `;`, `?`, `}`, or an operator, found `expr` metavariable
 | |
|   --> $DIR/float-field-interpolated.rs:10:13
 | |
|    |
 | |
| LL |         { s.$c; }
 | |
|    |             ^^ expected one of `.`, `;`, `?`, `}`, or an operator
 | |
| ...
 | |
| LL |     generate_field_accesses!(1.1, 1.1, 1.1);
 | |
|    |     --------------------------------------- in this macro invocation
 | |
|    |
 | |
|    = note: this error originates in the macro `generate_field_accesses` (in Nightly builds, run with -Z macro-backtrace for more info)
 | |
| 
 | |
| error: aborting due to 4 previous errors
 | |
| 
 |