mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Rollup merge of #95185 - m-ou-se:stabilize-stdin-lines, r=Mark-Simulacrum
Stabilize Stdin::lines. Closes https://github.com/rust-lang/rust/issues/87096 Fcp completed here: https://github.com/rust-lang/rust/issues/87096#issuecomment-1028792980
This commit is contained in:
commit
d2f1a0b88c
@ -394,7 +394,6 @@ impl Stdin {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// #![feature(stdin_forwarders)]
|
||||
/// use std::io;
|
||||
///
|
||||
/// let lines = io::stdin().lines();
|
||||
@ -403,7 +402,7 @@ impl Stdin {
|
||||
/// }
|
||||
/// ```
|
||||
#[must_use = "`self` will be dropped if the result is not used"]
|
||||
#[unstable(feature = "stdin_forwarders", issue = "87096")]
|
||||
#[stable(feature = "stdin_forwarders", since = "1.62.0")]
|
||||
pub fn lines(self) -> Lines<StdinLock<'static>> {
|
||||
self.lock().lines()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user