diff --git a/appveyor.yml b/appveyor.yml index 03c1229..ad4a569 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,7 +8,8 @@ environment: install: - curl -sSf -o rustup-init.exe https://win.rustup.rs - rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y - - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin + - gcc --version - rustc -Vv - cargo -V diff --git a/test-project/tests/compile-fail/mut-suggestion.rs b/test-project/tests/compile-fail/mut-suggestion.rs index edb8bdf..b9eb24d 100644 --- a/test-project/tests/compile-fail/mut-suggestion.rs +++ b/test-project/tests/compile-fail/mut-suggestion.rs @@ -17,14 +17,14 @@ impl S { } fn func(arg: S) { - //~^ HELP make this binding mutable - arg.mutate(); //~ ERROR cannot borrow immutable argument - //~| NOTE cannot borrow mutably + //~^ HELP consider changing this to be mutable + arg.mutate(); //~ ERROR cannot borrow `arg` as mutable + //~| NOTE cannot borrow as mutable } fn main() { let local = S; - //~^ HELP make this binding mutable - local.mutate(); //~ ERROR cannot borrow immutable local variable - //~| NOTE cannot borrow mutably + //~^ HELP consider changing this to be mutable + local.mutate(); //~ ERROR cannot borrow `local` as mutable + //~| NOTE cannot borrow as mutable } diff --git a/test-project/tests/compile-fail/trait-bounds-cant-coerce.rs b/test-project/tests/compile-fail/trait-bounds-cant-coerce.rs index fa6eb0b..5460446 100644 --- a/test-project/tests/compile-fail/trait-bounds-cant-coerce.rs +++ b/test-project/tests/compile-fail/trait-bounds-cant-coerce.rs @@ -13,14 +13,14 @@ trait Foo { fn dummy(&self) { } } -fn a(_x: Box) { +fn a(_x: Box) { } -fn c(x: Box) { +fn c(x: Box) { a(x); } -fn d(x: Box) { +fn d(x: Box) { a(x); //~ ERROR mismatched types //~| expected trait `Foo + std::marker::Send`, found trait `Foo` //~| expected type `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>` diff --git a/test-project/tests/pretty/macro.pp b/test-project/tests/pretty/macro.pp index 1f622e5..073f695 100644 --- a/test-project/tests/pretty/macro.pp +++ b/test-project/tests/pretty/macro.pp @@ -8,6 +8,6 @@ // pretty-mode:expanded // pp-exact:macro.pp -macro_rules! square(( $ x : expr ) => { $ x * $ x } ;); +macro_rules! square { ($ x : expr) => { $ x * $ x } ; } fn f() -> i8 { 5 * 5 }