Skip to content

Commit 61e3a90

Browse files
committed
Auto merge of #111036 - RalfJung:miri, r=RalfJung
update Miri r? `@ghost`
2 parents 73f0c34 + 798e6e1 commit 61e3a90

File tree

89 files changed

+1432
-453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1432
-453
lines changed

Cargo.lock

Lines changed: 24 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ libloading = "0.7"
3939

4040
[dev-dependencies]
4141
colored = "2"
42-
ui_test = "0.5"
42+
ui_test = "0.6.2"
4343
rustc_version = "0.4"
4444
# Features chosen to match those required by env_logger, to avoid rebuilds
4545
regex = { version = "1.5.5", default-features = false, features = ["perf", "std"] }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ to Miri failing to detect cases of undefined behavior in a program.
407407
* `-Zmiri-retag-fields=<all|none|scalar>` controls when Stacked Borrows retagging recurses into
408408
fields. `all` means it always recurses (like `-Zmiri-retag-fields`), `none` means it never
409409
recurses, `scalar` (the default) means it only recurses for types where we would also emit
410-
`noalias` annotations in the generated LLVM IR (types passed as indivudal scalars or pairs of
410+
`noalias` annotations in the generated LLVM IR (types passed as individual scalars or pairs of
411411
scalars). Setting this to `none` is **unsound**.
412412
* `-Zmiri-tag-gc=<blocks>` configures how often the pointer tag garbage collector runs. The default
413413
is to search for and remove unreachable tags once every `10000` basic blocks. Setting this to

cargo-miri/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn main() {
8181
"miri" => phase_cargo_miri(args),
8282
"runner" => phase_runner(args, RunnerPhase::Cargo),
8383
arg if arg == env::var("RUSTC").unwrap() => {
84-
// If the first arg is equal to the RUSTC env ariable (which should be set at this
84+
// If the first arg is equal to the RUSTC env variable (which should be set at this
8585
// point), then we need to behave as rustc. This is the somewhat counter-intuitive
8686
// behavior of having both RUSTC and RUSTC_WRAPPER set
8787
// (see https://github.com/rust-lang/cargo/issues/10886).

miri

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ rustc-pull)
121121
# Update rust-version file. As a separate commit, since making it part of
122122
# the merge has confused the heck out of josh in the past.
123123
echo "$FETCH_COMMIT" > rust-version
124-
git commit rust-version -m "Preparing for merge from rustc"
124+
git commit rust-version -m "Preparing for merge from rustc" || (echo "FAILED to commit rust-version file, something went wrong"; exit 1)
125125
# Fetch given rustc commit and note down which one that was
126-
git fetch http://localhost:8000/rust-lang/rust.git@$FETCH_COMMIT$JOSH_FILTER.git
127-
git merge FETCH_HEAD --no-ff -m "Merge from rustc"
126+
git fetch http://localhost:8000/rust-lang/rust.git@$FETCH_COMMIT$JOSH_FILTER.git || (echo "FAILED to fetch new commits, something went wrong"; exit 1)
127+
git merge FETCH_HEAD --no-ff -m "Merge from rustc" || (echo "FAILED to merge new commits, something went wrong"; exit 1)
128128
exit 0
129129
;;
130130
rustc-push)

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d4be8efc6296bace5b1e165f1b34d3c6da76aa8e
1+
eb62877597000ccf8bb99ab131b5977344afdfa3

src/bin/miri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
120120
#[allow(rustc::potential_query_instability)] // rustc_codegen_ssa (where this code is copied from) also allows this lint
121121
fn config(&mut self, config: &mut Config) {
122122
if config.opts.prints.is_empty() && self.target_crate {
123-
// Queries overriden here affect the data stored in `rmeta` files of dependencies,
123+
// Queries overridden here affect the data stored in `rmeta` files of dependencies,
124124
// which will be used later in non-`MIRI_BE_RUSTC` mode.
125125
config.override_queries = Some(|_, local_providers, _| {
126126
// `exported_symbols` and `reachable_non_generics` provided by rustc always returns

src/borrow_tracker/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ pub enum BorrowTrackerMethod {
238238
}
239239

240240
impl BorrowTrackerMethod {
241-
pub fn instanciate_global_state(self, config: &MiriConfig) -> GlobalState {
241+
pub fn instantiate_global_state(self, config: &MiriConfig) -> GlobalState {
242242
RefCell::new(GlobalStateInner::new(
243243
self,
244244
config.tracked_pointer_tags.clone(),

src/borrow_tracker/stacked_borrows/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl<'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'history, 'ecx, 'mir, 'tcx> {
292292
.rev()
293293
.find_map(|event| {
294294
// First, look for a Creation event where the tag and the offset matches. This
295-
// ensrues that we pick the right Creation event when a retag isn't uniform due to
295+
// ensures that we pick the right Creation event when a retag isn't uniform due to
296296
// Freeze.
297297
let range = event.retag.range;
298298
if event.retag.new_tag == tag

src/borrow_tracker/stacked_borrows/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ impl<'tcx> Stack {
433433
let (Some(granting_idx), ProvenanceExtra::Concrete(_)) = (granting_idx, derived_from) else {
434434
// The parent is a wildcard pointer or matched the unknown bottom.
435435
// This is approximate. Nobody knows what happened, so forget everything.
436-
// The new thing is SRW anyway, so we cannot push it "on top of the unkown part"
436+
// The new thing is SRW anyway, so we cannot push it "on top of the unknown part"
437437
// (for all we know, it might join an SRW group inside the unknown).
438438
trace!("reborrow: forgetting stack entirely due to SharedReadWrite reborrow from wildcard or unknown");
439439
self.set_unknown_bottom(global.next_ptr_tag);
@@ -825,7 +825,7 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
825825
Ok(Some(alloc_id))
826826
}
827827

828-
/// Retags an indidual pointer, returning the retagged version.
828+
/// Retags an individual pointer, returning the retagged version.
829829
/// `kind` indicates what kind of reference is being created.
830830
fn sb_retag_reference(
831831
&mut self,

0 commit comments

Comments
 (0)