Rollup merge of #144115 - lcnr:auto-trait-comment, r=compiler-errors

fix outdated comment

cc rust-lang/rust#84857

r? types
This commit is contained in:
Matthias Krüger 2025-07-19 08:55:38 +02:00 committed by GitHub
commit cc699e1edf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1219,10 +1219,8 @@ where
// the type (even if after unification and processing nested goals
// it does not hold) will disqualify the built-in auto impl.
//
// This differs from the current stable behavior and fixes #84857.
// Due to breakage found via crater, we currently instead lint
// patterns which can be used to exploit this unsoundness on stable,
// see #93367 for more details.
// We've originally had a more permissive check here which resulted
// in unsoundness, see #84857.
ty::Bool
| ty::Char
| ty::Int(_)