remove hacks that are no longer needed

This commit is contained in:
Niko Matsakis
2019-06-11 19:09:15 -04:00
parent 9639d8ec34
commit 6fdcc8281a
2 changed files with 0 additions and 19 deletions

View File

@@ -59,17 +59,6 @@ where
TokenStream: Send + Sync,
{}
// These are safe since we ensure that they hold for all fields in the `_dummy` function.
//
// These impls are only here because the compiler takes forever to compute the Send and Sync
// bounds without them.
// FIXME: Remove these impls when the compiler can compute the bounds quickly again.
// See https://github.com/rust-lang/rust/issues/60846
#[cfg(parallel_compiler)]
unsafe impl Send for TokenTree {}
#[cfg(parallel_compiler)]
unsafe impl Sync for TokenTree {}
impl TokenTree {
/// Use this token tree as a matcher to parse given tts.
pub fn parse(cx: &base::ExtCtxt<'_>, mtch: &[quoted::TokenTree], tts: TokenStream)