diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-03-02 02:42:22 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-03-02 10:48:52 +0100 |
| commit | fce72016125e41a8f04a63222955c4b3981e6ad3 (patch) | |
| tree | 5fc772085e872236226d3aa8bacf949786892d00 | |
| parent | b74e97cf42e647d87d67a03c134a0494b6aaa811 (diff) | |
| download | rust-fce72016125e41a8f04a63222955c4b3981e6ad3.tar.gz rust-fce72016125e41a8f04a63222955c4b3981e6ad3.zip | |
Impl !Send and !Sync for SourceFile
| -rw-r--r-- | src/libproc_macro/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs index cf1d4024373..1163c1a98d5 100644 --- a/src/libproc_macro/lib.rs +++ b/src/libproc_macro/lib.rs @@ -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. /// |
