Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
4ab3bcb9
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4ab3bcb9
编写于
4月 20, 2017
作者:
Z
Zack Weinberg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix up stability annotations per feedback.
上级
07766f67
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
9 addition
and
31 deletion
+9
-31
src/doc/unstable-book/src/SUMMARY.md
src/doc/unstable-book/src/SUMMARY.md
+1
-3
src/doc/unstable-book/src/library-features/eprint.md
src/doc/unstable-book/src/library-features/eprint.md
+0
-13
src/doc/unstable-book/src/library-features/print-internals.md
...doc/unstable-book/src/library-features/print-internals.md
+1
-1
src/doc/unstable-book/src/library-features/print.md
src/doc/unstable-book/src/library-features/print.md
+0
-5
src/libstd/io/mod.rs
src/libstd/io/mod.rs
+3
-3
src/libstd/io/stdio.rs
src/libstd/io/stdio.rs
+2
-2
src/libstd/macros.rs
src/libstd/macros.rs
+2
-2
src/test/run-pass/print-stdout-eprint-stderr.rs
src/test/run-pass/print-stdout-eprint-stderr.rs
+0
-2
未找到文件。
src/doc/unstable-book/src/SUMMARY.md
浏览文件 @
4ab3bcb9
...
...
@@ -130,8 +130,6 @@
-
[
derive_eq
](
library-features/derive-eq.md
)
-
[
discriminant_value
](
library-features/discriminant-value.md
)
-
[
error_type_id
](
library-features/error-type-id.md
)
-
[
eprint
](
library-features/eprint.md
)
-
[
eprint_internal
](
library-features/eprint-internal.md
)
-
[
exact_size_is_empty
](
library-features/exact-size-is-empty.md
)
-
[
fd
](
library-features/fd.md
)
-
[
fd_read
](
library-features/fd-read.md
)
...
...
@@ -180,7 +178,7 @@
-
[
peek
](
library-features/peek.md
)
-
[
placement_in
](
library-features/placement-in.md
)
-
[
placement_new_protocol
](
library-features/placement-new-protocol.md
)
-
[
print
](
library-features/print
.md
)
-
[
print
_internals
](
library-features/print-internals
.md
)
-
[
proc_macro_internals
](
library-features/proc-macro-internals.md
)
-
[
process_try_wait
](
library-features/process-try-wait.md
)
-
[
question_mark_carrier
](
library-features/question-mark-carrier.md
)
...
...
src/doc/unstable-book/src/library-features/eprint.md
已删除
100644 → 0
浏览文件 @
07766f67
# `eprint`
The tracking issue for this feature is: [#40528]
[
#40528
]:
https://github.com/rust-lang/rust/issues/40528
------------------------
This feature enables the
`eprint!`
and
`eprintln!`
global macros,
which are just like
`print!`
and
`println!`
, respectively, except that
they send output to the standard _error_ stream, rather than standard
output. (
`panic!`
messages have always been written to standard error.)
src/doc/unstable-book/src/library-features/
eprint-internal
.md
→
src/doc/unstable-book/src/library-features/
print-internals
.md
浏览文件 @
4ab3bcb9
# `
eprint_internal
`
# `
print_internals
`
This feature is internal to the Rust compiler and is not intended for general use.
...
...
src/doc/unstable-book/src/library-features/print.md
已删除
100644 → 0
浏览文件 @
07766f67
# `print`
This feature is internal to the Rust compiler and is not intended for general use.
------------------------
src/libstd/io/mod.rs
浏览文件 @
4ab3bcb9
...
...
@@ -287,11 +287,11 @@
#[stable(feature
=
"rust1"
,
since
=
"1.0.0"
)]
pub
use
self
::
util
::{
copy
,
sink
,
Sink
,
empty
,
Empty
,
repeat
,
Repeat
};
#[stable(feature
=
"rust1"
,
since
=
"1.0.0"
)]
pub
use
self
::
stdio
::{
stdin
,
stdout
,
stderr
,
_
print
,
Stdin
,
Stdout
,
Stderr
};
pub
use
self
::
stdio
::{
stdin
,
stdout
,
stderr
,
Stdin
,
Stdout
,
Stderr
};
#[stable(feature
=
"rust1"
,
since
=
"1.0.0"
)]
pub
use
self
::
stdio
::{
StdoutLock
,
StderrLock
,
StdinLock
};
#[unstable(feature
=
"
eprint"
,
issue=
"40528
"
)]
pub
use
self
::
stdio
::
_
eprint
;
#[unstable(feature
=
"
print_internals"
,
issue
=
"0
"
)]
pub
use
self
::
stdio
::
{
_
print
,
_
eprint
}
;
#[unstable(feature
=
"libstd_io_internals"
,
issue
=
"0"
)]
#[doc(no_inline,
hidden)]
pub
use
self
::
stdio
::{
set_panic
,
set_print
};
...
...
src/libstd/io/stdio.rs
浏览文件 @
4ab3bcb9
...
...
@@ -692,7 +692,7 @@ fn print_to<T>(args: fmt::Arguments,
}
}
#[unstable(feature
=
"print"
,
#[unstable(feature
=
"print
_internals
"
,
reason
=
"implementation detail which may disappear or be replaced at any time"
,
issue
=
"0"
)]
#[doc(hidden)]
...
...
@@ -700,7 +700,7 @@ pub fn _print(args: fmt::Arguments) {
print_to
(
args
,
&
LOCAL_STDOUT
,
stdout
,
"stdout"
);
}
#[unstable(feature
=
"
eprint_internal
"
,
#[unstable(feature
=
"
print_internals
"
,
reason
=
"implementation detail which may disappear or be replaced at any time"
,
issue
=
"0"
)]
#[doc(hidden)]
...
...
src/libstd/macros.rs
浏览文件 @
4ab3bcb9
...
...
@@ -143,7 +143,7 @@
///
/// Panics if writing to `io::stderr` fails.
#[macro_export]
#[
unstable(feature
=
"eprint"
,
issue=
"40528
"
)]
#[
stable(feature
=
"eprint"
,
since=
"1.18.0
"
)]
#[allow_internal_unstable]
macro_rules!
eprint
{
(
$
(
$arg:tt
)
*
)
=>
(
$crate
::
io
::
_
eprint
(
format_args!
(
$
(
$arg
)
*
)));
...
...
@@ -162,7 +162,7 @@
///
/// Panics if writing to `io::stderr` fails.
#[macro_export]
#[
unstable(feature
=
"eprint"
,
issue=
"40528
"
)]
#[
stable(feature
=
"eprint"
,
since=
"1.18.0
"
)]
macro_rules!
eprintln
{
()
=>
(
eprint!
(
"
\n
"
));
(
$fmt:expr
)
=>
(
eprint!
(
concat!
(
$fmt
,
"
\n
"
)));
...
...
src/test/run-pass/print-stdout-eprint-stderr.rs
浏览文件 @
4ab3bcb9
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(eprint)]
use
std
::{
env
,
process
};
fn
child
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录