Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
e9dd2e2
Auto merge of #124393 - scottmcm:do-the-macros-still-matter, r=joboet
bors Apr 26, 2024
e003a53
Auto merge of #124321 - JoverZhang:run-make-support-tests, r=onur-ozkan
bors Apr 26, 2024
0833d01
Auto merge of #122385 - lcnr:analyze-obligations-for-infer, r=compile…
bors Apr 26, 2024
0cbcde0
Auto merge of #123909 - dtolnay:utf8chunks, r=joboet
bors Apr 26, 2024
d2048bb
Auto merge of #124296 - cuviper:dist-cargo-tests, r=onur-ozkan
bors Apr 26, 2024
d36cf11
Auto merge of #124430 - RalfJung:miri, r=RalfJung
bors Apr 27, 2024
4484908
Auto merge of #124432 - zetanumbers:non_copy_into_raw_with_alloc, r=N…
bors Apr 27, 2024
30b49c2
Auto merge of #124405 - RalfJung:miri-core-alloc-tests, r=clubby789
bors Apr 27, 2024
e520775
Auto merge of #123546 - Rajveer100:branch-for-issue-122128, r=onur-ozkan
bors Apr 28, 2024
04e20ba
Auto merge of #124210 - the8472:consign-ebadf-to-the-fire, r=Mark-Sim…
bors Apr 28, 2024
5cfc91d
Auto merge of #124261 - onur-ozkan:drop-llvm-if-available, r=Mark-Sim…
bors Apr 28, 2024
66c7f6d
Remove direct dependencies on lazy_static, once_cell and byteorder
GKFX Apr 28, 2024
108638f
Auto merge of #124431 - chenyukang:yukang-fix-rustdoc-124363, r=Nadri…
bors Apr 28, 2024
bba8604
Auto merge of #124255 - RenjiSann:renji/mcdc-nested-expressions, r=Za…
bors Apr 29, 2024
4fbb60e
Auto merge of #124332 - Kobzol:toolstate-auto-build, r=pietroalbini
bors Apr 29, 2024
85e4da8
Rollup merge of #124269 - scrabsha:sasha/fix-124206, r=dtolnay
jieyouxu Apr 29, 2024
aaac57e
Rollup merge of #124475 - GKFX:more-dependency-pruning, r=oli-obk
jieyouxu Apr 29, 2024
1ab8ac5
Rollup merge of #124484 - GKFX:offset_of_must_use, r=jieyouxu
jieyouxu Apr 29, 2024
84e6a8d
Rollup merge of #124504 - gurry:123710-union-ICE, r=oli-obk
jieyouxu Apr 29, 2024
798de56
Rollup merge of #124508 - Zalathar:op, r=jieyouxu
jieyouxu Apr 29, 2024
af99faf
Rollup merge of #124522 - blyxyas:refactor-is-loaded, r=jieyouxu
jieyouxu Apr 29, 2024
3dfed35
Auto merge of #124527 - jieyouxu:rollup-eslzncy, r=jieyouxu
bors Apr 29, 2024
3cf2c78
Auto merge of #124398 - klensy:trailing-ws, r=compiler-errors
bors Apr 30, 2024
e50001e
Auto merge of #124507 - Zalathar:coverage-level, r=compiler-errors
bors Apr 30, 2024
ef03b98
Auto merge of #124366 - Kobzol:remove-yaml-expansion, r=pietroalbini
bors Apr 30, 2024
b1e3f7b
Auto merge of #117164 - fmease:orphan-norm, r=lcnr
bors Apr 30, 2024
81a0c7b
Auto merge of #124491 - madsmtm:target_vendor-apple, r=workingjubilee
bors May 1, 2024
1cdb392
Auto merge of #124539 - Urgau:non-local-defs_modulo_modules, r=lcnr
bors May 1, 2024
a52a82f
Auto merge of #122427 - psumbera:bootstrap_out_path, r=clubby789
bors May 1, 2024
f0da421
Auto merge of #121564 - ojeda:rustc-jobserver, r=ehuss
bors May 1, 2024
6602133
Auto merge of #124404 - jonathanpallant:arm-target-changes-new, r=chr…
bors May 1, 2024
f087ecb
Auto merge of #124419 - WaffleLapkin:never-type-fallback-docs, r=work…
bors May 2, 2024
579d616
Don't use `Ty::new_unit` in miri
WaffleLapkin May 2, 2024
74cf21e
interpret: hide some reexports in rustdoc
RalfJung May 2, 2024
90bf82d
Rollup merge of #124138 - mati865:ignore-llvm-abi-in-dlltool-tests, r…
matthiaskrgr May 2, 2024
aa74d35
Rollup merge of #124414 - lqd:subdiagnostics, r=davidtwco
matthiaskrgr May 2, 2024
a51b7dd
Rollup merge of #124624 - WaffleLapkin:old_unit, r=fmease
matthiaskrgr May 2, 2024
e80896e
Rollup merge of #124627 - RalfJung:interpret-doc-no-inline, r=fmease
matthiaskrgr May 2, 2024
66d47d4
Auto merge of #124629 - matthiaskrgr:rollup-gttvzrg, r=matthiaskrgr
bors May 2, 2024
041eb8f
Preparing for merge from rustc
May 3, 2024
54d8525
Merge from rustc
May 3, 2024
9de0f4b
update lockfile
RalfJung May 3, 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
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ colored = "2"
ui_test = "0.21.1"
rustc_version = "0.4"
regex = "1.5.5"
lazy_static = "1.4.0"
tempfile = "3"

[package.metadata.rust-analyzer]
Expand Down
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6acb9e75ebc936df737381a9d0b7a7bccd6f0b2f
79734f1db8dbe322192dea32c0f6b80ab14c4c1d
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ mod shims;
// Establish a "crate-wide prelude": we often import `crate::*`.

// Make all those symbols available in the same place as our own.
#[doc(no_inline)]
pub use rustc_const_eval::interpret::*;
// Resolve ambiguity.
#[doc(no_inline)]
pub use rustc_const_eval::interpret::{self, AllocMap, PlaceTy, Provenance as _};

pub use crate::shims::env::{EnvVars, EvalContextExt as _};
Expand Down
2 changes: 1 addition & 1 deletion src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ impl<'mir, 'tcx: 'mir> PrimitiveLayouts<'tcx> {
let mut_raw_ptr = Ty::new_mut_ptr(tcx, tcx.types.unit);
let const_raw_ptr = Ty::new_imm_ptr(tcx, tcx.types.unit);
Ok(Self {
unit: layout_cx.layout_of(Ty::new_unit(tcx))?,
unit: layout_cx.layout_of(tcx.types.unit)?,
i8: layout_cx.layout_of(tcx.types.i8)?,
i16: layout_cx.layout_of(tcx.types.i16)?,
i32: layout_cx.layout_of(tcx.types.i32)?,
Expand Down
22 changes: 13 additions & 9 deletions tests/ui.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::ffi::OsString;
use std::num::NonZeroUsize;
use std::path::{Path, PathBuf};
use std::sync::OnceLock;
use std::{env, process::Command};

use colored::*;
Expand Down Expand Up @@ -67,8 +68,8 @@ fn miri_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->

let mut config = Config {
target: Some(target.to_owned()),
stderr_filters: STDERR.clone(),
stdout_filters: STDOUT.clone(),
stderr_filters: stderr_filters().into(),
stdout_filters: stdout_filters().into(),
mode,
program,
out_dir: PathBuf::from(std::env::var_os("CARGO_TARGET_DIR").unwrap()).join("ui"),
Expand Down Expand Up @@ -174,15 +175,18 @@ fn run_tests(
}

macro_rules! regexes {
($name:ident: $($regex:expr => $replacement:expr,)*) => {lazy_static::lazy_static! {
static ref $name: Vec<(Match, &'static [u8])> = vec![
$((Regex::new($regex).unwrap().into(), $replacement.as_bytes()),)*
];
}};
($name:ident: $($regex:expr => $replacement:expr,)*) => {
fn $name() -> &'static [(Match, &'static [u8])] {
static S: OnceLock<Vec<(Match, &'static [u8])>> = OnceLock::new();
S.get_or_init(|| vec![
$((Regex::new($regex).unwrap().into(), $replacement.as_bytes()),)*
])
}
};
}

regexes! {
STDOUT:
stdout_filters:
// Windows file paths
r"\\" => "/",
// erase borrow tags
Expand All @@ -191,7 +195,7 @@ regexes! {
}

regexes! {
STDERR:
stderr_filters:
// erase line and column info
r"\.rs:[0-9]+:[0-9]+(: [0-9]+:[0-9]+)?" => ".rs:LL:CC",
// erase alloc ids
Expand Down