duplicate self ty test

This commit is contained in:
nora 2023-04-04 15:09:20 +02:00
parent 7fcc623c7f
commit cc526f10c7
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,16 @@
trait A {}
/// ~REQUIRE-DELETED trait-B
trait B {}
trait C {}
/// ~MINIMIZE-ROOT impl-A
impl A for () {}
/// ~REQUIRE-DELETED impl-B
impl B for () {}
/// ~MINIMIZE-ROOT impl-C
impl C for () {}
/// ~MINIMIZE-ROOT main
fn main() {}

View file

@ -97,6 +97,11 @@ fn setup_scripts(start_roots: &[String], proj_dir: &Path) -> Result<()> {
write!( write!(
BufWriter::new(&file), BufWriter::new(&file),
r#"#!/usr/bin/env bash r#"#!/usr/bin/env bash
if ! cargo check ; then
>&2 echo "Cargo check failed"
exit 1
fi
OUT=$(rg -o "~MINIMIZE-ROOT [\w\-]*" --no-filename --sort path src) OUT=$(rg -o "~MINIMIZE-ROOT [\w\-]*" --no-filename --sort path src)
python3 -c " python3 -c "