Skip to content
This repository was archived by the owner on Jul 13, 2019. It is now read-only.

Reset the thread local state between compiles. #83

Closed
wants to merge 1 commit into from

Conversation

jseyfried
Copy link

@jseyfried jseyfried commented Jul 16, 2016

Once rust-lang/rust#34856 lands, phase_1_parse_input will no longer reset the thread local state, but driver::reset_thread_local_state() will.

@murarth
Copy link
Owner

murarth commented Jul 16, 2016

Cool. Thanks for the PR.

@murarth
Copy link
Owner

murarth commented Aug 1, 2016

The change has landed and it looks like resetting state is no longer necessary for rusti. The compiler resets the hygiene data, but isn't clearing the ident interner, so it's not causing any errors. As long as this is the case, calling driver::reset_thread_local_state() isn't necessary, so I'm closing this for now.

@murarth murarth closed this Aug 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants