Skip to content

Rollup of 9 pull requests #112415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 8, 2023
Merged
Changes from 2 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
cd43545
Avoid passing --cpu-features when empty
tamird Jun 1, 2023
edf342a
bootstrap: remove dep `is-terminal`
kadiwa4 Jun 5, 2023
3522baa
Migrate GUI colors test to original CSS color format
GuillaumeGomez Jun 7, 2023
053e6b8
Remove accidental comment
clubby789 Jun 7, 2023
adbfd0d
Fix ICE for while loop with assignment condition with LHS place expr
jieyouxu Jun 7, 2023
fbe3a47
Don't `use compile_error as print`
WaffleLapkin Jun 7, 2023
c38d80e
Track more diagnostics in `rustc_expand`
WaffleLapkin Jun 7, 2023
5e57e27
add a test for #105709
TaKO8Ki Jun 7, 2023
29a51e1
Migrate item_opaque_type to Askama
sladyn98 May 28, 2023
e7059f1
Rollup merge of #112034 - sladyn98:migrate-opaque-ty, r=GuillaumeGomez
GuillaumeGomez Jun 8, 2023
ad9d7e3
Rollup merge of #112179 - tamird:no-empty-cpu-features, r=petrochenkov
GuillaumeGomez Jun 8, 2023
737dbb0
Rollup merge of #112309 - kadiwa4:remove_is_terminal, r=albertlarsan68
GuillaumeGomez Jun 8, 2023
53ee185
Rollup merge of #112388 - GuillaumeGomez:migrate-gui-test-color-12, r…
GuillaumeGomez Jun 8, 2023
5b7eba6
Rollup merge of #112389 - TaKO8Ki:issue-105709, r=compiler-errors
GuillaumeGomez Jun 8, 2023
80829ce
Rollup merge of #112392 - jieyouxu:issue-112385, r=compiler-errors
GuillaumeGomez Jun 8, 2023
80c2648
Rollup merge of #112394 - clubby789:remove-comment, r=petrochenkov
GuillaumeGomez Jun 8, 2023
b3d1a83
Rollup merge of #112396 - WaffleLapkin:track_more_diagnostics, r=comp…
GuillaumeGomez Jun 8, 2023
cf5e0b0
Rollup merge of #112401 - WaffleLapkin:dont_compile_error, r=Nilstrieb
GuillaumeGomez Jun 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion compiler/rustc_driver_impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,18 @@ use std::str;
use std::sync::OnceLock;
use std::time::Instant;

#[allow(unused_macros)]
macro do_not_use_print($($t:tt)*) {
std::compile_error!(
"Don't use `print` or `println` here, use `safe_print` or `safe_println` instead"
)
}

// This import blocks the use of panicking `print` and `println` in all the code
// below. Please use `safe_print` and `safe_println` to avoid ICE when
// encountering an I/O error during print.
#[allow(unused_imports)]
use std::{compile_error as print, compile_error as println};
use {do_not_use_print as print, do_not_use_print as println};

pub mod args;
pub mod pretty;
Expand Down