about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-01 20:36:02 -0700
committerGitHub <noreply@github.com>2020-07-01 20:36:02 -0700
commit37e812e53d61ec4060a6307f54446f01fbd8e05e (patch)
treec909dc5738c36220a71c9ab94e37a37f8a125e58
parent1b37bfa537a4ca742ab6e57dc859a5159d9e2c7d (diff)
parent0889d7905050dcf756c38c953889119941a7516b (diff)
downloadrust-37e812e53d61ec4060a6307f54446f01fbd8e05e.tar.gz
rust-37e812e53d61ec4060a6307f54446f01fbd8e05e.zip
Rollup merge of #73898 - lcnr:issue61383, r=jonas-schievink
remove duplicate test for #61935

Apparently I somehow messed up the issue number in #67890
which caused us to add this test twice, both as https://github.com/rust-lang/rust/blob/master/src/test/ui/const-generics/issues/issue-61935.rs and https://github.com/rust-lang/rust/blob/master/src/test/ui/const-generics/lazy-normalization/issue-71922.rs

#61935 is the actually fixed issue while #71922 is still not working, as it depends on lazy norm of repeat expressions
-rw-r--r--src/test/ui/const-generics/lazy-normalization/issue-71922.rs19
-rw-r--r--src/test/ui/const-generics/lazy-normalization/issue-71922.stderr19
2 files changed, 0 insertions, 38 deletions
diff --git a/src/test/ui/const-generics/lazy-normalization/issue-71922.rs b/src/test/ui/const-generics/lazy-normalization/issue-71922.rs
deleted file mode 100644
index 0d392ddcaed..00000000000
--- a/src/test/ui/const-generics/lazy-normalization/issue-71922.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-#![feature(const_generics)]
-//~^ WARN the feature `const_generics` is incomplete
-trait Foo {}
-
-impl<const N: usize> Foo for [(); N] where Self: FooImpl<{ N == 0 }> {}
-//~^ ERROR constant expression depends on a generic parameter
-
-trait FooImpl<const IS_ZERO: bool> {}
-
-impl FooImpl<{ 0u8 == 0u8 }> for [(); 0] {}
-
-impl<const N: usize> FooImpl<{ 0u8 != 0u8 }> for [(); N] {}
-
-fn foo<T: Foo>(_: T) {}
-
-fn main() {
-    foo([]);
-    foo([()]);
-}
diff --git a/src/test/ui/const-generics/lazy-normalization/issue-71922.stderr b/src/test/ui/const-generics/lazy-normalization/issue-71922.stderr
deleted file mode 100644
index 00917571e71..00000000000
--- a/src/test/ui/const-generics/lazy-normalization/issue-71922.stderr
+++ /dev/null
@@ -1,19 +0,0 @@
-warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
-  --> $DIR/issue-71922.rs:1:12
-   |
-LL | #![feature(const_generics)]
-   |            ^^^^^^^^^^^^^^
-   |
-   = note: `#[warn(incomplete_features)]` on by default
-   = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
-
-error: constant expression depends on a generic parameter
-  --> $DIR/issue-71922.rs:5:50
-   |
-LL | impl<const N: usize> Foo for [(); N] where Self: FooImpl<{ N == 0 }> {}
-   |                                                  ^^^^^^^^^^^^^^^^^^^
-   |
-   = note: this may fail depending on what value the parameter takes
-
-error: aborting due to previous error; 1 warning emitted
-