From 254af0b56764e51a0ef0ae332b276274e62f6ed2 Mon Sep 17 00:00:00 2001 From: Jaken Herman Date: Wed, 2 Oct 2024 00:24:42 -0500 Subject: [PATCH] Add `get_line` confusable to `Stdin::read_line()` Add tests for addition of `#[rustc_confusables("get_line")]` --- std/src/io/stdio.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/std/src/io/stdio.rs b/std/src/io/stdio.rs index 6de069a518e3d..bf242e715bd94 100644 --- a/std/src/io/stdio.rs +++ b/std/src/io/stdio.rs @@ -394,6 +394,7 @@ impl Stdin { /// in which case it will wait for the Enter key to be pressed before /// continuing #[stable(feature = "rust1", since = "1.0.0")] + #[rustc_confusables("get_line")] pub fn read_line(&self, buf: &mut String) -> io::Result { self.lock().read_line(buf) }