Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ecacc75
Add advance_by and advance_back_by
timvermeulen Sep 19, 2020
c29a29c
Defer Apple SDKROOT detection to link time.
ehuss Sep 25, 2020
de725fe
Remove note about missing ios/tvos targets in platform docs.
ehuss Sep 25, 2020
7420d7a
Move add_apple_sdk out of add_pre_link_args.
ehuss Sep 27, 2020
a4783de
const evaluatable: improve `TooGeneric` handling
lcnr Sep 28, 2020
db5b70f
move candidate_from_obligation_no_cache
lcnr Sep 28, 2020
5829560
Rename AllocErr to AllocError
Sep 24, 2020
46d8c4b
Fix recursive nonterminal expansion during pretty-print/reparse check
Aaron1011 Sep 24, 2020
c6107c5
Don't fire `const_item_mutation` lint on writes through a pointer
Aaron1011 Sep 29, 2020
15c3573
Update cargo
ehuss Sep 29, 2020
d061fee
Stable hashing: add comments and tests concerning platform-independence
tgnottingham Sep 29, 2020
ce6c25d
References to ZSTs may be at arbitrary aligned addresses
oli-obk Sep 30, 2020
609786d
Validate `rustc_args_required_const`
varkor Sep 29, 2020
05d0b96
Add test for error message
camelid Sep 30, 2020
b2ce3e5
Remove trailing space in error message
camelid Sep 30, 2020
8bd4ed9
Rollup merge of #76909 - timvermeulen:advance_by, r=Amanieu
Dylan-DPC Oct 1, 2020
8ccc063
Rollup merge of #77153 - Aaron1011:fix/better-recursive-expand, r=pet…
Dylan-DPC Oct 1, 2020
37df40b
Rollup merge of #77202 - ehuss:defer-apple-sdkroot, r=petrochenkov
Dylan-DPC Oct 1, 2020
f235594
Rollup merge of #77303 - lcnr:const-evaluatable-TooGeneric, r=oli-obk…
Dylan-DPC Oct 1, 2020
6d3cfd9
Rollup merge of #77305 - lcnr:candidate_from_obligation, r=davidtwco
Dylan-DPC Oct 1, 2020
70740b1
Rollup merge of #77315 - exrook:rename-allocerror, r=joshtriplett
Dylan-DPC Oct 1, 2020
0044a9c
Rollup merge of #77319 - tgnottingham:siphasher_endianness, r=nnether…
Dylan-DPC Oct 1, 2020
73258f8
Rollup merge of #77324 - Aaron1011:fix/const-item-mutation-ptr, r=pet…
Dylan-DPC Oct 1, 2020
849e563
Rollup merge of #77343 - varkor:rustc_args_required_const-validation,…
Dylan-DPC Oct 1, 2020
ffb771b
Rollup merge of #77349 - ehuss:update-cargo, r=ehuss
Dylan-DPC Oct 1, 2020
cc1513b
Rollup merge of #77360 - oli-obk:zst_const_pat_regression, r=RalfJung
Dylan-DPC Oct 1, 2020
85e77ed
Rollup merge of #77371 - camelid:remove-extra-space-in-diagnostic, r=…
Dylan-DPC Oct 1, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test for error message
  • Loading branch information
camelid committed Sep 30, 2020
commit 05d0b969d9e1c3da6a2651a2ded45f662842a3f9
6 changes: 6 additions & 0 deletions src/test/ui/slice-to-vec-comparison.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fn main() {
let a = &[];
let b: &Vec<u8> = &vec![];
a > b;
//~^ ERROR mismatched types
}
12 changes: 12 additions & 0 deletions src/test/ui/slice-to-vec-comparison.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
error[E0308]: mismatched types
--> $DIR/slice-to-vec-comparison.rs:4:9
|
LL | a > b;
| ^ expected array of 0 elements , found struct `Vec`
|
= note: expected reference `&[_; 0]`
found reference `&Vec<u8>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.