-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove re-exports of std::io::stdio::{print, println} in the prelude.
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
- Loading branch information
1 parent
ff7ecca
commit 4fc0452
Showing
130 changed files
with
350 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -275,7 +275,7 @@ fn main() { | |
}; | ||
if result.is_err() { | ||
println("parsing failed"); | ||
println!("parsing failed"); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
4fc0452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at brendanzab@4fc0452
4fc0452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging bjz/rust/remove-print-fns = 4fc0452 into auto
4fc0452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bjz/rust/remove-print-fns = 4fc0452 merged ok, testing candidate = a34727f
4fc0452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/3498
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/1340
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/1344
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/3500
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/2601
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2606
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/3516
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/2604
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2610
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/3518
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/2604
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2609
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/2678
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/3506
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/2608
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2612
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/3279
4fc0452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = a34727f