Skip to content

Upgrading source_gen 0.5 to 0.6

Breaking0.5.10+1 → 0.6.1+1Breaking1New2Changed2

BreakingUpgrade verdict

1 breaking change.

  • When you ask a type checker for annotations, it now also matches subclasses and assignable types, not just exact matches. Use the new Exact methods if you need the old strict matching.
1 item needs code or config changes
Breaking1
TypeChecker#annotationsOf and firstAnnotationOf now return annotations assignable to the TypeChecker's type; new Exact variants keep the old precise behavior.
TypeChecker#annotationsOfTypeChecker#firstAnnotationOfTypeChecker#annotationsOfExactTypeChecker#firstAnnotationOfExact