Skip to content

Commit fce7201

Browse files
committed
Impl !Send and !Sync for SourceFile
1 parent b74e97c commit fce7201

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libproc_macro/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#![feature(rustc_private)]
3939
#![feature(staged_api)]
4040
#![feature(lang_items)]
41+
#![feature(optin_builtin_traits)]
4142

4243
#[macro_use]
4344
extern crate syntax;
@@ -310,6 +311,11 @@ pub struct SourceFile {
310311
filemap: Lrc<FileMap>,
311312
}
312313

314+
#[unstable(feature = "proc_macro", issue = "38356")]
315+
impl !Send for SourceFile {}
316+
#[unstable(feature = "proc_macro", issue = "38356")]
317+
impl !Sync for SourceFile {}
318+
313319
impl SourceFile {
314320
/// Get the path to this source file.
315321
///

0 commit comments

Comments
 (0)