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:
commit
cc699e1edf
1 changed files with 2 additions and 4 deletions
|
|
@ -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(_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue