c2rust-refactor 0.15.0

C2Rust refactoring tool implementation
1
2
3
4
5
6
7
use crate::rewrite::RewriteCtxtRef;

/// World's simplest rewrite strategy: just hope the two ASTs are already equal!  Returns success
/// (and does nothing) if they are; returns failure (and still does nothing) if they aren't.
pub fn rewrite<T: PartialEq<T>>(old: &T, new: &T, _rcx: RewriteCtxtRef) -> bool {
    old == new
}