Move edition outside the hygiene lock and avoid accessing it

This commit is contained in:
John Kåre Alsaker
2019-04-06 00:15:49 +02:00
parent 50a0defd5a
commit a1f2dceaeb
39 changed files with 155 additions and 139 deletions

View File

@@ -1,5 +1,5 @@
use crate::source_map::{SourceMap, FilePathMapping};
use crate::with_globals;
use crate::with_default_globals;
use errors::Handler;
use errors::emitter::EmitterWriter;
@@ -39,7 +39,7 @@ impl<T: Write> Write for Shared<T> {
}
fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &str) {
with_globals(|| {
with_default_globals(|| {
let output = Arc::new(Mutex::new(Vec::new()));
let source_map = Lrc::new(SourceMap::new(FilePathMapping::empty()));