Skip to content

Rollup of 19 pull requests #74235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 54 commits into from
Jul 11, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
a31f103
Add core::future::{poll_fn, PollFn}
yoshuawuyts May 17, 2020
7e682d3
Stabilize casts and coercions to `&[T]` in const fn
oli-obk Jun 29, 2020
a065096
stabilize const mem::forget
DutchGhost Jun 30, 2020
8e256b1
parser: Break float tokens into parts in tuple field positions
petrochenkov Apr 18, 2020
40a2170
Add test of tuple nested indexing
dtolnay Mar 26, 2020
0432f63
Test even deeper nested indexing
dtolnay Mar 26, 2020
776deb6
Test a range, which is not nested indexing
dtolnay Mar 26, 2020
6dfa549
Add tests in which the token really is a float
dtolnay Mar 26, 2020
3814eec
Add test for tuple indexed with float in macro input
dtolnay Mar 26, 2020
63f95a4
Add test for errors triggered on parts of decomposed index
dtolnay Mar 26, 2020
64a88db
Update dtolnay's tests that now work
petrochenkov Apr 19, 2020
52bdaaa
Add some requested tests
petrochenkov Jul 1, 2020
fb9fa5b
adjust ub-enum test to be endianess-independent
RalfJung Jul 3, 2020
bcef848
Explain effects of debugging options from config.toml
tmiasko Jul 5, 2020
7fb2693
Add VecDeque::range* methods
jonhoo Jul 6, 2020
8872ec3
fixups
jonhoo Jul 6, 2020
5702e02
Only allow `repr(i128/u128)` on enum
nbdd0121 Jul 6, 2020
97867bb
Add UI test for issue 74082
nbdd0121 Jul 6, 2020
b82df31
:arrow_up: rust-analyzer
matklad Jul 7, 2020
b50c13c
Update books
ehuss Jul 7, 2020
32025fd
Update rust-installer to latest version
michaelforney May 25, 2020
653c091
Add `read_exact_at` and `write_all_at` to WASI's `FileExt`
sunfishcode Jul 3, 2020
58fc61b
Make WASI's FileExt's read_at/write_at consistent with other targets.
sunfishcode Jul 7, 2020
3c63fba
Correctly mark the ending span of a match arm
ayazhafiz Jul 7, 2020
51b646e
ci: disabled: riscv: minimise docker overlays
tblah Jul 8, 2020
d9fec59
ci: fix context for disabled docker images
tblah Jul 8, 2020
1f98230
ToPredicate by value
lcnr Jul 8, 2020
0a7d297
Eliminate `rust_input`.
nnethercote Jul 7, 2020
1e8ec2d
Add an explanatory comment to `scoped_thread`.
nnethercote Jul 7, 2020
4ad5de2
Tweak `spawn_thread_pool`.
nnethercote Jul 7, 2020
bf70786
Change some function names.
nnethercote Jul 7, 2020
481988b
Use str::strip* in bootstrap
tesuji Jul 10, 2020
1ca7bfe
Only add cfguard module flag on windows-msvc
ajpaverd Jul 6, 2020
62cf767
Avoid "whitelist"
tamird Jul 7, 2020
a1a19cb
Add tracking issue
jonhoo Jul 10, 2020
ec1e7e9
Rollup merge of #71322 - petrochenkov:tuple00, r=nikomatsakis
Manishearth Jul 11, 2020
d82588b
Rollup merge of #72303 - yoshuawuyts:future-poll-fn, r=dtolnay
Manishearth Jul 11, 2020
f4f9690
Rollup merge of #73862 - oli-obk:const_array_to_slice, r=RalfJung
Manishearth Jul 11, 2020
efda2b5
Rollup merge of #73887 - DutchGhost:master, r=oli-obk
Manishearth Jul 11, 2020
ef3dc09
Rollup merge of #73989 - RalfJung:ub-enum-test, r=oli-obk
Manishearth Jul 11, 2020
2ae7d8c
Rollup merge of #74045 - tmiasko:config-debug, r=nikomatsakis
Manishearth Jul 11, 2020
427ef98
Rollup merge of #74076 - sunfishcode:wasi-fileext-newmethods, r=alexc…
Manishearth Jul 11, 2020
2da709e
Rollup merge of #74099 - jonhoo:deque-range, r=dtolnay
Manishearth Jul 11, 2020
3a6209c
Rollup merge of #74100 - lzutao:strip-bootstrap, r=Mark-Simulacrum
Manishearth Jul 11, 2020
fa50a87
Rollup merge of #74103 - ajpaverd:cfguard-msvc-only, r=nikomatsakis
Manishearth Jul 11, 2020
8efa197
Rollup merge of #74109 - nbdd0121:issue-74082, r=petrochenkov
Manishearth Jul 11, 2020
eb1754e
Rollup merge of #74122 - nnethercote:startup-cleanup, r=petrochenkov
Manishearth Jul 11, 2020
8355024
Rollup merge of #74125 - ayazhafiz:i/74050, r=matthewjasper
Manishearth Jul 11, 2020
d2f8c30
Rollup merge of #74127 - tamird:allowlist, r=oli-obk
Manishearth Jul 11, 2020
cc3b57f
Rollup merge of #74129 - matklad:rust-analyzer-2020-07-07, r=Mark-Sim…
Manishearth Jul 11, 2020
b43c26e
Rollup merge of #74135 - ehuss:update-books, r=ehuss
Manishearth Jul 11, 2020
8f2304f
Rollup merge of #74145 - michaelforney:rust-installer, r=Mark-Simulacrum
Manishearth Jul 11, 2020
8376fcd
Rollup merge of #74161 - tblah:riscv64gc-dockerfile-improvment, r=Mar…
Manishearth Jul 11, 2020
79fc386
Rollup merge of #74162 - lcnr:ToPredicate-no-ref, r=varkor
Manishearth Jul 11, 2020
File filter

Filter by extension

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 UI test for issue 74082
  • Loading branch information
nbdd0121 committed Jul 6, 2020
commit 97867bbe5cd09df7754864c826f58d3029f4422e
9 changes: 9 additions & 0 deletions src/test/ui/issues/issue-74082.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![allow(dead_code)]

#[repr(i128)] //~ ERROR: attribute should be applied to enum
struct Foo;

#[repr(u128)] //~ ERROR: attribute should be applied to enum
struct Bar;

fn main() {}
19 changes: 19 additions & 0 deletions src/test/ui/issues/issue-74082.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
error[E0517]: attribute should be applied to enum
--> $DIR/issue-74082.rs:3:8
|
LL | #[repr(i128)]
| ^^^^
LL | struct Foo;
| ----------- not an enum

error[E0517]: attribute should be applied to enum
--> $DIR/issue-74082.rs:6:8
|
LL | #[repr(u128)]
| ^^^^
LL | struct Bar;
| ----------- not an enum

error: aborting due to 2 previous errors

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