Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve checking of malformed using/import Exprs #30799

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

JeffBezanson
Copy link
Member

Inspired by https://discourse.julialang.org/t/internal-representation-of-using-foo/19771

We were missing some checks in the interpreter and show for malformed using exprs. One case could crash, and some others just did nothing instead of reporting an error.

The AST devdocs mentioned import but not using, so add that. Also put AST docs first since they are important to macro authors. The IR part should perhaps be moved to a separate file.

@JeffBezanson JeffBezanson added the bugfix This change fixes an existing bug label Jan 22, 2019
@JeffBezanson
Copy link
Member Author

Well, I'll be. Looks like this exposed a bug in Distributed, where we broke the functionality of @everywhere using X loading X locally first to help ensure it's precompiled.

@JeffBezanson
Copy link
Member Author

#30804

@JeffBezanson JeffBezanson merged commit b8e8a46 into master Jan 24, 2019
@JeffBezanson JeffBezanson deleted the jb/malformedusing branch January 24, 2019 17:04
@fredrikekre
Copy link
Member

backport?

@StefanKarpinski StefanKarpinski added triage This should be discussed on a triage call backport 1.1 and removed backport 1.0 labels Jan 31, 2019
@JeffBezanson JeffBezanson removed backport 1.0 triage This should be discussed on a triage call labels Jan 31, 2019
@StefanKarpinski StefanKarpinski removed triage This should be discussed on a triage call labels Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants