File tree 3 files changed +13
-2
lines changed
scala2-library-bootstrapped/src/scala
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,6 @@ object Scala2LibraryBootstrappedMiMaFilters {
74
74
" scala.collection.mutable.PriorityQueue#ResizableArrayAccess.this" ,
75
75
" scala.concurrent.BatchingExecutor#AbstractBatch.this" ,
76
76
" scala.concurrent.Channel#LinkedList.this" ,
77
- " scala.Enumeration#ValueOrdering.this" ,
78
- " scala.io.Source#RelaxedPosition.this" ,
79
77
" scala.collection.IterableOnceOps#Maximized.this" , // New in 2.13.11: private inner class
80
78
" scala.util.Properties.<clinit>" ,
81
79
" scala.util.Sorting.scala$util$Sorting$$mergeSort$default$5" ,
Original file line number Diff line number Diff line change @@ -272,6 +272,12 @@ abstract class Enumeration (initial: Int) extends Serializable {
272
272
273
273
/** An ordering by id for values of this set */
274
274
implicit object ValueOrdering extends Ordering [Value ] {
275
+
276
+ // IMPORTANT:
277
+ // Scala 3 removes unnecessary outer pointers while Scala 2 doesn't
278
+ // This is important to capture the outer pointer when compiling with
279
+ // dotc to maintain our binary compatibility requirements
280
+ private val _ = Enumeration .this
275
281
def compare (x : Value , y : Value ): Int = x compare y
276
282
}
277
283
Original file line number Diff line number Diff line change @@ -292,6 +292,13 @@ abstract class Source extends Iterator[Char] with Closeable {
292
292
*/
293
293
@ nowarn(" cat=deprecation" )
294
294
object RelaxedPosition extends Position {
295
+
296
+ // IMPORTANT:
297
+ // Scala 3 removes unnecessary outer pointers while Scala 2 doesn't
298
+ // This is important to capture the outer pointer when compiling with
299
+ // dotc to maintain our binary compatibility requirements
300
+ private val _ = Source .this
301
+
295
302
def checkInput (line : Int , column : Int ): Unit = ()
296
303
}
297
304
object RelaxedPositioner extends Positioner (RelaxedPosition ) { }
You can’t perform that action at this time.
0 commit comments