@@ -66,15 +66,16 @@ class TreePickler(pickler: TastyPickler, attributes: Attributes) {
66
66
fillRef(lengthAddr, currentAddr, relative = true )
67
67
}
68
68
69
- /** There are certain expectations with code which is naturally able to reach pickling
70
- * phase as opposed to one that uses best-effort compilation features.
71
- * When pickling betasty files, we do some custom checks, in case those expectations
72
- * cannot be fulfilled, and if then we can try to do something else.
73
- * For regular non best-effort compilation (without best-effort and without using .betasty on classpath),
74
- * this will always return true.
69
+ /** There are certain expectations with code which is naturally able to reach
70
+ * pickling phase as opposed to one that uses best-effort compilation features.
71
+ * When pickling betasty files, we do some custom checks, in case those
72
+ * expectations cannot be fulfilled, and if so, then we can try to do something
73
+ * else (usually pickle an ERRORtype).
74
+ * For regular non best-effort compilation (without -Ybest-effort with thrown errors
75
+ * and without using .betasty on classpath), this will always return true.
75
76
*/
76
77
private inline def passesConditionForErroringBestEffortCode (condition : => Boolean )(using Context ): Boolean =
77
- (( ! ctx.isBestEffort && ctx.reporter.errorsReported) || ctx.usedBestEffortTasty) || condition
78
+ ! (( ctx.isBestEffort && ctx.reporter.errorsReported) || ctx.usedBestEffortTasty) || condition
78
79
79
80
def addrOfSym (sym : Symbol ): Option [Addr ] =
80
81
symRefs.get(sym)
0 commit comments