]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #91962 - matthiaskrgr:rollup-2g082jw, r=matthiaskrgr
authorbors <bors@rust-lang.org>
Wed, 15 Dec 2021 12:41:42 +0000 (12:41 +0000)
committerbors <bors@rust-lang.org>
Wed, 15 Dec 2021 12:41:42 +0000 (12:41 +0000)
Rollup of 7 pull requests

Successful merges:

 - #91880 (fix clippy::single_char_pattern perf findings)
 - #91885 (Remove `in_band_lifetimes` from `rustc_codegen_ssa`)
 - #91898 (Make `TyS::is_suggestable` check for non-suggestable types structually)
 - #91915 (Add another regression test for unnormalized fn args with Self)
 - #91916 (Fix a bunch of typos)
 - #91918 (Constify `bool::then{,_some}`)
 - #91920 (Use `tcx.def_path_hash` in `ExistentialPredicate.stable_cmp`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

1  2 
src/test/ui/destructuring-assignment/default-match-bindings-forbidden.stderr
src/test/ui/destructuring-assignment/tuple_destructure_fail.stderr

index 3d472bf63094d90db1d3c17e423876b8b0406690,9ea78bd097485a92c1d1bb80134892f162fa3638..2250f561b54a5998bcd843b7123123f335bdb0a4
@@@ -1,10 -1,8 +1,8 @@@
  error[E0308]: mismatched types
 -  --> $DIR/default-match-bindings-forbidden.rs:6:5
 +  --> $DIR/default-match-bindings-forbidden.rs:4:5
     |
  LL |     (x, y) = &(1, 2);
-    |     ^^^^^^   ------- this expression has type `&({integer}, {integer})`
-    |     |
-    |     expected reference, found tuple
+    |     ^^^^^^ expected reference, found tuple
     |
     = note: expected type `&({integer}, {integer})`
               found tuple `(_, _)`
index 55b08b74af0620a0edd598c7aded9e46d23825f1,79ac15187665b7fe284410a9b16dd888010133ef..184b3ea6da82b6249af572c819aa312706148438
@@@ -7,12 -7,10 +7,10 @@@ LL |     (a, .., b, ..) = (0, 1)
     |         previously used here
  
  error[E0308]: mismatched types
 -  --> $DIR/tuple_destructure_fail.rs:8:5
 +  --> $DIR/tuple_destructure_fail.rs:6:5
     |
  LL |     (a, a, b) = (1, 2);
-    |     ^^^^^^^^^   ------ this expression has type `({integer}, {integer})`
-    |     |
-    |     expected a tuple with 2 elements, found one with 3 elements
+    |     ^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
     |
     = note: expected type `({integer}, {integer})`
               found tuple `(_, _, _)`
@@@ -26,12 -24,10 +24,10 @@@ LL |     (C, ..) = (0,1)
     |      cannot assign to this expression
  
  error[E0308]: mismatched types
 -  --> $DIR/tuple_destructure_fail.rs:10:5
 +  --> $DIR/tuple_destructure_fail.rs:8:5
     |
  LL |     (_,) = (1, 2);
-    |     ^^^^   ------ this expression has type `({integer}, {integer})`
-    |     |
-    |     expected a tuple with 2 elements, found one with 1 element
+    |     ^^^^ expected a tuple with 2 elements, found one with 1 element
     |
     = note: expected type `({integer}, {integer})`
               found tuple `(_,)`