Skip to content

Commit

Permalink
Add deprecation notice to cranelift_use_egraphs config method (thanks
Browse files Browse the repository at this point in the history
  • Loading branch information
cfallin committed Jan 19, 2023
1 parent a5acda5 commit 98ca402
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/wasmtime/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,10 @@ impl Config {
/// The default value for this is `true`.
#[cfg(compiler)]
#[cfg_attr(nightlydoc, doc(cfg(feature = "cranelift")))] // see build.rs
#[deprecated(
since = "5.0.0",
note = "egraphs will be the default and this method will be removed in a future version."
)]
pub fn cranelift_use_egraphs(&mut self, enable: bool) -> &mut Self {
let val = if enable { "true" } else { "false" };
self.compiler_config
Expand Down

0 comments on commit 98ca402

Please sign in to comment.