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
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,7 @@
#![feature(rustc_private)]
#![feature(staged_api)]
#![feature(lang_items)]
#![feature(optin_builtin_traits)]
#[macro_use]
extern crate syntax;
@ -310,6 +311,11 @@ pub struct SourceFile {
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 {
/// Get the path to this source file.
///