Skip to content

Commit 956829c

Browse files
committed
On type error of method call arguments, look at confusables for suggestion
1 parent 6fe7e33 commit 956829c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

alloc/src/string.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,7 @@ impl String {
10491049
#[cfg(not(no_global_oom_handling))]
10501050
#[inline]
10511051
#[stable(feature = "rust1", since = "1.0.0")]
1052+
#[rustc_confusables("append", "push")]
10521053
pub fn push_str(&mut self, string: &str) {
10531054
self.vec.extend_from_slice(string.as_bytes())
10541055
}

0 commit comments

Comments
 (0)