Add dyn to traits and bump Rust version

This commit is contained in:
Artur Jamro
2019-08-15 14:52:33 -07:00
committed by Dan Gohman
parent 9a57580258
commit 7009c8dd73
6 changed files with 9 additions and 9 deletions

View File

@@ -105,7 +105,7 @@ impl Context {
}
/// Construct a new instance of `Context` with the given target.
pub fn with_isa(isa: Box<TargetIsa>) -> Self {
pub fn with_isa(isa: Box<dyn TargetIsa>) -> Self {
Self::new(Box::new(Compiler::new(isa)))
}