Add deprecation notice to cranelift_use_egraphs option. (#5610)

After #5587, this is on by default. We are retaining the traditional
(no-egraphs) path for now, selected by setting this option to `false`,
but we eventually plan to delete it assuming that we don't find serious
regressions or issues. This PR adds a deprecation notice to the option.
This commit is contained in:
Chris Fallin
2023-01-20 14:52:49 -08:00
committed by GitHub
parent 7e10bd1f58
commit 69cd0a6b1a
2 changed files with 5 additions and 0 deletions

View File

@@ -141,6 +141,7 @@ impl Config {
}
/// Converts this to a `wasmtime::Config` object
#[allow(deprecated)] // Allow use of `cranelift_use_egraphs` below.
pub fn to_wasmtime(&self) -> wasmtime::Config {
crate::init_fuzzing();
log::debug!("creating wasmtime config with {:#?}", self.wasmtime);