From cb7ae89dc3f2b572ccc12af724ba73e1bbb328df Mon Sep 17 00:00:00 2001 From: tianyeyouyou Date: Sat, 4 Jan 2025 07:22:07 +0800 Subject: [PATCH] fix: remove some duplicate words in msgs (#20766) ## Description spotted some abundant words in msgs and removed them. --- .../move/crates/move-compiler/src/diagnostics/mod.rs | 2 +- .../crates/move-compiler/src/typing/deprecation_warnings.rs | 2 +- sui-execution/latest/sui-move-natives/src/config.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/external-crates/move/crates/move-compiler/src/diagnostics/mod.rs b/external-crates/move/crates/move-compiler/src/diagnostics/mod.rs index e10d33e99c46d..5a3927d1a1fc2 100644 --- a/external-crates/move/crates/move-compiler/src/diagnostics/mod.rs +++ b/external-crates/move/crates/move-compiler/src/diagnostics/mod.rs @@ -832,7 +832,7 @@ macro_rules! diag { pub const ICE_BUG_REPORT_MESSAGE: &str = "The Move compiler has encountered an internal compiler error.\n \ - Please report this this issue to the Mysten Labs Move language team,\n \ + Please report this issue to the Mysten Labs Move language team,\n \ including this error and any relevant code, to the Mysten Labs issue tracker\n \ at : https://github.com/MystenLabs/sui/issues"; diff --git a/external-crates/move/crates/move-compiler/src/typing/deprecation_warnings.rs b/external-crates/move/crates/move-compiler/src/typing/deprecation_warnings.rs index b3c32fbc21825..fe463ec98b31c 100644 --- a/external-crates/move/crates/move-compiler/src/typing/deprecation_warnings.rs +++ b/external-crates/move/crates/move-compiler/src/typing/deprecation_warnings.rs @@ -186,7 +186,7 @@ fn deprecations( if deprecations.len() != 1 { reporter.add_diag(ice!(( source_location, - "ICE: verified that there is at at least one deprecation attribute above, \ + "ICE: verified that there is at least one deprecation attribute above, \ and expansion should have failed if there were multiple deprecation attributes." ))); return None; diff --git a/sui-execution/latest/sui-move-natives/src/config.rs b/sui-execution/latest/sui-move-natives/src/config.rs index e576f9d99ed9a..dc0ae6bf980ed 100644 --- a/sui-execution/latest/sui-move-natives/src/config.rs +++ b/sui-execution/latest/sui-move-natives/src/config.rs @@ -164,7 +164,7 @@ fn unpack_struct(s: Value) -> PartialVMResult<[Value; N]> { let s: Struct = s.value_as()?; s.unpack()?.collect::>().try_into().map_err(|e| { PartialVMError::new(StatusCode::UNKNOWN_INVARIANT_VIOLATION_ERROR) - .with_message(format!("struct expected to have have {N} fields: {e:?}")) + .with_message(format!("struct expected to have {N} fields: {e:?}")) }) }