mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 15:05:30 +00:00 
			
		
		
		
	Fixes error count display is different when there's only one error left Supersedes #114759 ### What did I do? I did the small change in `rustc_errors` by hand. Then I did the other changes in `/compiler` by hand, those were just find replace on `*.rs` in the workspace. The changes in run-make are find replace for `run-make` in the workspace. All other changes are blessed using `x test TEST --bless`. I blessed the tests that were blessed in #114759. ### how to review this nightmare ping bors with an `r+`. You should check that my logic is sound and maybe quickly scroll through the diff, but fully verifying it seems fairly hard to impossible. I did my best to do this correctly. Thank you `@adrianEffe` for bringing this up and your initial implementation. cc `@flip1995,` you said you want to do a subtree sync asap cc `@RalfJung` maybe you want to do a quick subtree sync afterwards as well for Miri r? `@WaffleLapkin`
		
			
				
	
	
		
			11 lines
		
	
	
		
			318 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			318 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error: `~const` is not allowed here
 | 
						|
  --> $DIR/const-drop.rs:67:38
 | 
						|
   |
 | 
						|
LL |     pub struct ConstDropWithBound<T: ~const SomeTrait>(pub core::marker::PhantomData<T>);
 | 
						|
   |                                      ^^^^^^
 | 
						|
   |
 | 
						|
   = note: this item cannot have `~const` trait bounds
 | 
						|
 | 
						|
error: aborting due to 1 previous error
 | 
						|
 |