Skip to content

[NFC] Hide SourceFile::Decls#525

Merged
CodaFi merged 2 commits into
swiftlang:swift/masterfrom
CodaFi:absolutely-path-ological
Jan 7, 2020
Merged

[NFC] Hide SourceFile::Decls#525
CodaFi merged 2 commits into
swiftlang:swift/masterfrom
CodaFi:absolutely-path-ological

Conversation

@CodaFi
Copy link
Copy Markdown

@CodaFi CodaFi commented Jan 3, 2020

@CodaFi
Copy link
Copy Markdown
Author

CodaFi commented Jan 3, 2020

swiftlang/swift#28995

@swift-ci test

Copy link
Copy Markdown
Author

@CodaFi CodaFi Jan 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dcci Do you know why this was injecting variables into the start of the top level decls list instead of the end?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite honestly, I don't. This predates my time. Do you know what breaks when you change it? I'll be happy to take a look with you.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite honestly, I don't. This predates my time. Do you know what breaks when you change it? I'll be happy to take a look with you.

Copy link
Copy Markdown
Author

@CodaFi CodaFi Jan 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I put these in the original order (Redirected VarDecl then Top Level Code with Pattern Binding) then it fails a REPL test. But the odd thing is that it should have failed much much more spectacularly than just a runtime exclusivity assertion.

The correct way around (Top Level Code then Redirected VarDecl) we'll see soon enough...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'm curious to see the results too. @jimingham might have more context on why this was the order originally, but it was long enough ago that he might not remember either and the history is lost in the initial import.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'm curious to see the results too. @jimingham might have more context on why this was the order originally, but it was long enough ago that he might not remember either and the history is lost in the initial import.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same REPL test fails. I can merge this through with an extra entrypoint on the Swift side to preserve this behavior, but the fact that only a single test fails because of this, and fails in such a bizarre way, suggests there's something deeper at play.

@CodaFi CodaFi force-pushed the absolutely-path-ological branch from 154ec47 to f64e25b Compare January 6, 2020 19:08
@CodaFi
Copy link
Copy Markdown
Author

CodaFi commented Jan 6, 2020

swiftlang/swift#28995

@swift-ci test

@CodaFi
Copy link
Copy Markdown
Author

CodaFi commented Jan 6, 2020

swiftlang/swift#28995

@swift-ci test

@CodaFi
Copy link
Copy Markdown
Author

CodaFi commented Jan 7, 2020

⛵️

@CodaFi CodaFi merged commit 1f73ecd into swiftlang:swift/master Jan 7, 2020
@CodaFi CodaFi deleted the absolutely-path-ological branch January 7, 2020 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants