Add get_line confusable to Stdin::read_line() · qinheping/verify-rust-std@254af0b (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit 254af0b

Add get_line confusable to Stdin::read_line()

Add tests for addition of `#[rustc_confusables("get_line")]`

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -394,6 +394,7 @@ impl Stdin {
394 394 /// in which case it will wait for the Enter key to be pressed before
395 395 /// continuing
396 396 #[stable(feature = "rust1", since = "1.0.0")]
397 +#[rustc_confusables("get_line")]
397 398 pub fn read_line(&self, buf: &mut String) -> io::Result<usize> {
398 399 self.lock().read_line(buf)
399 400 }