Auto merge of #93138 - matthiaskrgr:rollup-m8akifd, r=matthiaskrgr
Rollup of 17 pull requests Successful merges: - #91032 (Introduce drop range tracking to generator interior analysis) - #92856 (Exclude "test" from doc_auto_cfg) - #92860 (Fix errors on blanket impls by ignoring the children of generated impls) - #93038 (Fix star handling in block doc comments) - #93061 (Only suggest adding `!` to expressions that can be macro invocation) - #93067 (rustdoc mobile: fix scroll offset when jumping to internal id) - #93086 (Add tests to ensure that `let_chains` works with `if_let_guard`) - #93087 (Fix src/test/run-make/raw-dylib-alt-calling-convention) - #93091 (⬆ chalk to 0.76.0) - #93094 (src/test/rustdoc-json: Check for `struct_field`s in `variant_tuple_struct.rs`) - #93098 (Show a more informative panic message when `DefPathHash` does not exist) - #93099 (rustdoc: auto create output directory when "--output-format json") - #93102 (Pretty printer algorithm revamp step 3) - #93104 (Support --bless for pp-exact pretty printer tests) - #93114 (update comment for `ensure_monomorphic_enough`) - #93128 (Add script to prevent point releases with same number as existing ones) - #93136 (Backport the 1.58.1 release notes to master) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This commit is contained in:
commit
523be2e05d
62 changed files with 1925 additions and 339 deletions
|
|
@ -500,7 +500,19 @@ impl<'test> TestCx<'test> {
|
|||
expected = expected.replace(&cr, "");
|
||||
}
|
||||
|
||||
self.compare_source(&expected, &actual);
|
||||
if !self.config.bless {
|
||||
self.compare_source(&expected, &actual);
|
||||
} else if expected != actual {
|
||||
let filepath_buf;
|
||||
let filepath = match &self.props.pp_exact {
|
||||
Some(file) => {
|
||||
filepath_buf = self.testpaths.file.parent().unwrap().join(file);
|
||||
&filepath_buf
|
||||
}
|
||||
None => &self.testpaths.file,
|
||||
};
|
||||
fs::write(filepath, &actual).unwrap();
|
||||
}
|
||||
|
||||
// If we're only making sure that the output matches then just stop here
|
||||
if self.props.pretty_compare_only {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue