Impl !Send and !Sync for SourceFile

This commit is contained in:
John Kåre Alsaker 2018-03-02 02:42:22 +01:00
parent b74e97cf42
commit fce7201612

View file

@ -38,6 +38,7 @@
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(staged_api)] #![feature(staged_api)]
#![feature(lang_items)] #![feature(lang_items)]
#![feature(optin_builtin_traits)]
#[macro_use] #[macro_use]
extern crate syntax; extern crate syntax;
@ -310,6 +311,11 @@ pub struct SourceFile {
filemap: Lrc<FileMap>, filemap: Lrc<FileMap>,
} }
#[unstable(feature = "proc_macro", issue = "38356")]
impl !Send for SourceFile {}
#[unstable(feature = "proc_macro", issue = "38356")]
impl !Sync for SourceFile {}
impl SourceFile { impl SourceFile {
/// Get the path to this source file. /// Get the path to this source file.
/// ///