Skip to content

Rollup of 8 pull requests #122190

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 20 commits into from
Mar 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e760c44
Use `ControlFlow` in AST visitors.
Jarcho Feb 24, 2024
822b10d
Use `ControlFlow` in HIR visitors
Jarcho Feb 24, 2024
63091b1
Make `arg_expand_all` not short-circuit on first error
beetrees May 15, 2023
fb87e60
Refactor argument UTF-8 checking into `rustc_driver::args::raw_args()`
beetrees May 15, 2023
d626d13
Use `rustc_driver::args::raw_args()` in Clippy
beetrees May 15, 2023
2d7d0bd
Use `rustc_driver::args::raw_args()` in Miri
beetrees May 15, 2023
bed9d1f
Add known-bug tests for `derive(PartialEq)` mismatches with `#[repr(p…
oli-obk Mar 7, 2024
025ad40
Don't ICE in CTFE if raw/fn-ptr types differ
compiler-errors Mar 8, 2024
ece20f0
Bless tidy issues order
chenyukang Mar 8, 2024
c2f13db
rustc: Fix typo
heiher Mar 8, 2024
2e5f86c
interpret: update comment about read_discriminant on uninhabited vari…
RalfJung Mar 8, 2024
c81521a
Fix crash in late internal checking
chenyukang Mar 8, 2024
075f1c3
Rollup merge of #121025 - oli-obk:taint_after_errors, r=petrochenkov
matthiaskrgr Mar 8, 2024
a8e3543
Rollup merge of #121194 - beetrees:rustc-raw-args, r=petrochenkov
matthiaskrgr Mar 8, 2024
3e634f8
Rollup merge of #121563 - Jarcho:use_cf, r=petrochenkov
matthiaskrgr Mar 8, 2024
3d71bad
Rollup merge of #122173 - compiler-errors:ptr-equality-in-ctfe, r=lcnr
matthiaskrgr Mar 8, 2024
af3d06c
Rollup merge of #122175 - chenyukang:yukang-fix-tidy-issues, r=workin…
matthiaskrgr Mar 8, 2024
9fd60c5
Rollup merge of #122179 - heiher:fix-typo, r=lcnr
matthiaskrgr Mar 8, 2024
a08a5d4
Rollup merge of #122181 - chenyukang:yukang-fix-late-lint-crash, r=ol…
matthiaskrgr Mar 8, 2024
8abeac2
Rollup merge of #122183 - RalfJung:read-discriminant-uninhabited-vari…
matthiaskrgr Mar 8, 2024
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
Prev Previous commit
Next Next commit
Use rustc_driver::args::raw_args() in Miri
  • Loading branch information
beetrees committed Mar 7, 2024
commit 2d7d0bda4334b1b7be951ff45c4397dab0a1dd32
6 changes: 4 additions & 2 deletions src/tools/miri/src/bin/miri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ fn main() {
// (`install_ice_hook` might change `RUST_BACKTRACE`.)
let env_snapshot = env::vars_os().collect::<Vec<_>>();

let args = rustc_driver::args::raw_args(&early_dcx).unwrap_or_else(|_| std::process::exit(rustc_driver::EXIT_FAILURE));

// If the environment asks us to actually be rustc, then do that.
if let Some(crate_kind) = env::var_os("MIRI_BE_RUSTC") {
// Earliest rustc setup.
Expand All @@ -359,7 +361,7 @@ fn main() {

// We cannot use `rustc_driver::main` as we need to adjust the CLI arguments.
run_compiler(
env::args().collect(),
args,
target_crate,
&mut MiriBeRustCompilerCalls { target_crate },
using_internal_features,
Expand All @@ -382,7 +384,7 @@ fn main() {

// If user has explicitly enabled/disabled isolation
let mut isolation_enabled: Option<bool> = None;
for arg in env::args() {
for arg in args {
if rustc_args.is_empty() {
// Very first arg: binary name.
rustc_args.push(arg);
Expand Down