Skip to content

Commit 1e81f9a

Browse files
Update tests, etc
1 parent a4974fa commit 1e81f9a

32 files changed

+32
-32
lines changed

src/test/rustdoc-ui/z-help.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
-Z branch-protection=val -- set options for branch target identification and pointer authentication on AArch64
99
-Z cf-protection=val -- instrument control-flow architecture protection
1010
-Z cgu-partitioning-strategy=val -- the codegen unit partitioning strategy to use
11-
-Z chalk=val -- enable the experimental Chalk-based trait solving engine
1211
-Z codegen-backend=val -- the backend to use
1312
-Z combine-cgu=val -- combine CGUs into a single one
1413
-Z crate-attr=val -- inject the given attribute in the crate
@@ -175,6 +174,7 @@
175174
-Z tls-model=val -- choose the TLS model to use (`rustc --print tls-models` for details)
176175
-Z trace-macros=val -- for every macro invocation, print its name and arguments (default: no)
177176
-Z track-diagnostics=val -- tracks where in rustc a diagnostic was emitted
177+
-Z trait-solver=val -- specify the trait solver mode used by rustc (default: stock)
178178
-Z translate-additional-ftl=val -- additional fluent translation to preferentially use (for testing translation)
179179
-Z translate-directionality-markers=val -- emit directionality isolation markers in translated diagnostics
180180
-Z translate-lang=val -- language identifier for diagnostic output

src/test/ui/chalkify/arithmetic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
fn main() {
55
1 + 2;

src/test/ui/chalkify/assert.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
fn main() {
55
assert_eq!(1, 1);

src/test/ui/chalkify/basic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Foo {}
55

src/test/ui/chalkify/bugs/async.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// check-fail
22
// known-bug: unknown
3-
// compile-flags: -Z chalk --edition=2021
3+
// compile-flags: -Z trait-solver=chalk --edition=2021
44

55
fn main() -> () {}
66

src/test/ui/chalkify/builtin-copy-clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
// Test that `Clone` is correctly implemented for builtin types.
55

src/test/ui/chalkify/chalk_initial_program.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z chalk
1+
// compile-flags: -Z trait-solver=chalk
22

33
trait Foo { }
44

src/test/ui/chalkify/closure.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z chalk
1+
// compile-flags: -Z trait-solver=chalk
22

33
fn main() -> () {
44
let t = || {};

src/test/ui/chalkify/generic_impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z chalk
1+
// compile-flags: -Z trait-solver=chalk
22

33
trait Foo { }
44

src/test/ui/chalkify/impl_wf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z chalk
1+
// compile-flags: -Z trait-solver=chalk
22

33
trait Foo: Sized { }
44

src/test/ui/chalkify/impl_wf_2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Split out of impl_wf.rs to work around rust aborting compilation early
22

3-
// compile-flags: -Z chalk
3+
// compile-flags: -Z trait-solver=chalk
44

55
trait Foo: Sized { }
66

src/test/ui/chalkify/inherent_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Foo { }
55

src/test/ui/chalkify/inherent_impl_min.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Foo { }
55

src/test/ui/chalkify/lower_env1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
#![allow(dead_code)]
55

src/test/ui/chalkify/lower_env2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
#![allow(dead_code)]
55

src/test/ui/chalkify/lower_env3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
#![allow(dead_code)]
55

src/test/ui/chalkify/lower_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Foo { }
55

src/test/ui/chalkify/lower_struct.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
struct Foo<'a, T> where Box<T>: Clone {
55
_x: std::marker::PhantomData<&'a T>,

src/test/ui/chalkify/lower_trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Bar { }
55

src/test/ui/chalkify/lower_trait_higher_rank.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Foo<F: ?Sized> where for<'a> F: Fn(&'a (u8, u16)) -> &'a u8
55
{

src/test/ui/chalkify/lower_trait_where_clause.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
use std::borrow::Borrow;
55

src/test/ui/chalkify/println.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
fn main() {
55
println!("hello");

src/test/ui/chalkify/projection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Foo { }
55

src/test/ui/chalkify/recursive_where_clause_on_type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// FIXME(chalk): should fail, see comments
22
// check-fail
3-
// compile-flags: -Z chalk
3+
// compile-flags: -Z trait-solver=chalk
44

55
#![feature(trivial_bounds)]
66

src/test/ui/chalkify/super_trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Foo { }
55
trait Bar: Foo { }

src/test/ui/chalkify/trait-objects.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
use std::fmt::Display;
55

src/test/ui/chalkify/trait_implied_bound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Foo { }
55
trait Bar<U> where U: Foo { }

src/test/ui/chalkify/type_implied_bound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Eq { }
55
trait Hash: Eq { }

src/test/ui/chalkify/type_inference.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z chalk
1+
// compile-flags: -Z trait-solver=chalk
22

33
trait Foo { }
44
impl Foo for i32 { }

src/test/ui/chalkify/type_wf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// check-fail
2-
// compile-flags: -Z chalk
2+
// compile-flags: -Z trait-solver=chalk
33

44
trait Foo { }
55

src/test/ui/implied-bounds/hrlt-implied-trait-bounds-guard.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// A test exploiting the bug behind #25860 except with
2-
// implied trait bounds which currently don't exist without `-Zchalk`.
2+
// implied trait bounds which currently don't exist without `-Ztrait-solver=chalk`.
33
use std::marker::PhantomData;
44
struct Foo<'a, 'b, T>(PhantomData<(&'a (), &'b (), T)>)
55
where

src/tools/compiletest/src/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,7 @@ impl<'test> TestCx<'test> {
20112011
rustc.args(&["-Zpolonius"]);
20122012
}
20132013
Some(CompareMode::Chalk) => {
2014-
rustc.args(&["-Zchalk"]);
2014+
rustc.args(&["-Ztrait-solver=chalk"]);
20152015
}
20162016
Some(CompareMode::SplitDwarf) if self.config.target.contains("windows") => {
20172017
rustc.args(&["-Csplit-debuginfo=unpacked", "-Zunstable-options"]);

0 commit comments

Comments
 (0)