Impl !Send and !Sync for SourceFile
This commit is contained in:
parent
b74e97cf42
commit
fce7201612
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue