-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure that trace is shown correctly in the presence of invalid li…
…ne numbers (#18930) Make sure that trace is shown correctly in the presence of invalid line numbers (-1) in TASTy. Before: ```Scala Reading mutable state of object Array during initialization of object Parent. Reading mutable state of other static objects is forbidden as it breaks initialization-time irrelevance. Calling trace: -> object Parent { // error [ t9312.scala:11 ] ^ -> final val children = Set(Child1, Child2) [ t9312.scala:21 ] ^^^^^^^^^^^^^^^^^^^ -> BitmapIndexedSetNode.this.originalHashes.apply(index) ``` After: ```Scala Reading mutable state of object Array during initialization of object Parent. Reading mutable state of other static objects is forbidden as it breaks initialization-time irrelevance. Calling trace: ├── object Parent { // error [ t9312.scala:11 ] │ ^ ├── final val children = Set(Child1, Child2) [ t9312.scala:21 ] │ ^^^^^^^^^^^^^^^^^^^ ├── scala.collection.IterableFactory.apply ├── IterableFactory.this.from[A](elems) ├── scala.collection.immutable.Set.from ├── scala.collection.immutable.Set.newBuilder[E].addAll(it) ├── scala.collection.immutable.SetBuilderImpl.addAll ├── super.addAll(xs) ├── scala.collection.mutable.Growable.addAll ├── Growable.this.addOne(it.next()) ├── scala.collection.immutable.SetBuilderImpl.addOne ├── SetBuilderImpl.this.hashSetBuilder.addOne(elem) ├── scala.collection.immutable.HashSetBuilder.addOne ├── HashSetBuilder.this.update(HashSetBuilder.this.rootNode, elem, h, im, 0) ├── scala.collection.immutable.HashSetBuilder.update ├── bm.getHash(index) ├── scala.collection.immutable.BitmapIndexedSetNode.getHash └── BitmapIndexedSetNode.this.originalHashes.apply(index) ``` Ref: #18882
- Loading branch information
Showing
25 changed files
with
293 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.