2
Merge method, type and const object safety checks by oli-obk · Pull Request #112...
source link: https://github.com/rust-lang/rust/pull/112318
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
Contributor
cc @spastorino and @compiler-errors on the first commit. I believe it to be correct, as the field is only Some
for assoc types, so just checking the field without checking the assoc kind to be Type
is fine.
The second commit avoids going through all associated items thrice and just goes over all of them once, running the object safety checks per assoc item kind.
compiler-errors reacted with thumbs up emoji
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK