Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
18c248b
Make `NEVER_TYPE_FALLBACK_FLOWING_INTO_UNSAFE` deny-by-default in e2024
WaffleLapkin Jun 23, 2024
c147805
library: outline VaList into ffi::va_list
workingjubilee Jun 24, 2024
c1a29b3
core: erase redundant stability attrs in va_list
workingjubilee Jun 24, 2024
7566f41
Run alloc sync tests
ChrisDenton Jul 5, 2024
8c2ea71
Use field ident spans directly instead of the full field span in diag…
oli-obk Jul 6, 2024
c990e00
Add support for literals
c410-f3r Jul 6, 2024
58aad3c
iter_identity is a better name
compiler-errors Jul 6, 2024
39bb14e
Improve `run-make/output-type-permutations` code and improve `filenam…
GuillaumeGomez Jul 7, 2024
4f54193
Fix intrinsic const parameter counting with `effects`
fee1-dead Jul 7, 2024
8e7314f
rustdoc-json: add trait/type alias tests
its-the-shrimp Jul 7, 2024
b2e30bd
Add fundamental to trait def
compiler-errors Jul 6, 2024
a982471
Uplift trait_ref_is_knowable and friends
compiler-errors Jul 6, 2024
ab27c2f
Get rid of trait_ref_is_knowable from delegate
compiler-errors Jul 6, 2024
90423a7
Uplift elaboration
compiler-errors Jul 6, 2024
66eb346
Get rid of the redundant elaboration in middle
compiler-errors Jul 6, 2024
15d16f1
Finish uplifting supertraits
compiler-errors Jul 6, 2024
2c16d65
Rollup merge of #126841 - c410-f3r:concat-again, r=petrochenkov
jieyouxu Jul 8, 2024
29c1a43
Rollup merge of #126881 - WaffleLapkin:unsafe-code-affected-by-fallba…
jieyouxu Jul 8, 2024
adbcb1a
Rollup merge of #126921 - workingjubilee:outline-va-list, r=Nilstrieb
jieyouxu Jul 8, 2024
e76b017
Rollup merge of #127367 - ChrisDenton:run-sync, r=Nilstrieb
jieyouxu Jul 8, 2024
bd4ab30
Rollup merge of #127431 - oli-obk:feed_item_attrs, r=compiler-errors
jieyouxu Jul 8, 2024
928d71f
Rollup merge of #127437 - compiler-errors:uplift-trait-ref-is-knowabl…
jieyouxu Jul 8, 2024
ffb9336
Rollup merge of #127439 - compiler-errors:uplift-elaborate, r=lcnr
jieyouxu Jul 8, 2024
0332834
Rollup merge of #127451 - GuillaumeGomez:improve-output-type-permutat…
jieyouxu Jul 8, 2024
73593b9
Rollup merge of #127452 - fee1-dead-contrib:fx-intrinsic-counting, r=…
jieyouxu Jul 8, 2024
76be8f1
Rollup merge of #127459 - its-the-shrimp:rustdocjson_add_alias_tests,…
jieyouxu Jul 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
Improve run-make/output-type-permutations code and improve `filenam…
…e_not_in_denylist` API
  • Loading branch information
GuillaumeGomez committed Jul 7, 2024
commit 39bb14e34a5670603386a7e6d4029b5e6699de6c
3 changes: 2 additions & 1 deletion src/tools/run-make-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ pub fn not_contains<P: AsRef<Path>>(path: P, expected: &str) -> bool {
}

/// Returns true if the filename at `path` is not in `expected`.
pub fn filename_not_in_denylist<P: AsRef<Path>>(path: P, expected: &[String]) -> bool {
pub fn filename_not_in_denylist<P: AsRef<Path>, V: AsRef<[String]>>(path: P, expected: V) -> bool {
let expected = expected.as_ref();
path.as_ref()
.file_name()
.is_some_and(|name| !expected.contains(&name.to_str().unwrap().to_owned()))
Expand Down
5 changes: 2 additions & 3 deletions tests/run-make/output-type-permutations/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ use std::path::PathBuf;
// `rustc_invocation`: the rustc command being tested
// Any unexpected output files not listed in `must_exist` or `can_exist` will cause a failure.
fn assert_expected_output_files(expectations: Expectations, rustc_invocation: impl Fn()) {
let must_exist = expectations.expected_files;
let can_exist = expectations.allowed_files;
let dir = expectations.test_dir;
let Expectations { expected_files: must_exist, allowed_files: can_exist, test_dir: dir } =
expectations;

fs_wrapper::create_dir(&dir);
rustc_invocation();
Expand Down