1
Fork 0

Rollup merge of #137764 - compiler-errors:always-applicable-negative-impl, r=lcnr

Ensure that negative auto impls are always applicable

r? lcnr (or reassign if you dont want to review)

https://github.com/rust-lang/rust/issues/68318#issuecomment-2689265030
This commit is contained in:
Michael Goulet 2025-03-06 12:22:16 -05:00 committed by GitHub
commit 00132141c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 359 additions and 151 deletions

View file

@ -397,9 +397,9 @@ pub enum ObligationCauseCode<'tcx> {
RustCall,
/// Obligations to prove that a `std::ops::Drop` impl is not stronger than
/// Obligations to prove that a `Drop` or negative auto trait impl is not stronger than
/// the ADT it's being implemented for.
DropImpl,
AlwaysApplicableImpl,
/// Requirement for a `const N: Ty` to implement `Ty: ConstParamTy`
ConstParam(Ty<'tcx>),