-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Implementing tuple access via desugaring and indexing. #681
Implementing tuple access via desugaring and indexing. #681
Conversation
…uple-destructuring-and-indexing
…uple-destructuring-and-indexing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good but I think the test coverage needs to be improved. See my comment for some test cases.
@@ -10,6 +13,7 @@ pub struct BuildConfig { | |||
pub(crate) print_intermediate_asm: bool, | |||
pub(crate) print_finalized_asm: bool, | |||
pub(crate) print_ir: bool, | |||
pub(crate) generated_names: Arc<Mutex<Vec<&'static str>>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this instead of a Arc<Vec<&'static str>>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arc<Vec<&'static str>>
makes it difficult to push to the vec. There may be another way to accomplish this, but this is the one I am familiar with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, awesome!
Closes #632