From 48186b3199c00bd88cd0acf1a1bff3326fc648b1 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sun, 18 Nov 2018 23:47:58 -0800 Subject: [PATCH] Make TargetIsa thread-safe --- lib/codegen/src/isa/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codegen/src/isa/mod.rs b/lib/codegen/src/isa/mod.rs index f304cf09c3..b4bf97d334 100644 --- a/lib/codegen/src/isa/mod.rs +++ b/lib/codegen/src/isa/mod.rs @@ -196,7 +196,7 @@ impl TargetFrontendConfig { /// Methods that are specialized to a target ISA. Implies a Display trait that shows the /// shared flags, as well as any isa-specific flags. -pub trait TargetIsa: fmt::Display { +pub trait TargetIsa: fmt::Display + Sync { /// Get the name of this ISA. fn name(&self) -> &'static str;