Skip to content
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

Rollup of 17 pull requests #74223

Closed
wants to merge 48 commits into from
Closed
Changes from 3 commits
Commits
Show all changes
48 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
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
6b59cac
Suppress debuginfo on naked function arguments
npmccallum 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
b50c13c
Update books
ehuss Jul 7, 2020
32025fd
Update rust-installer to latest version
michaelforney May 25, 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
7ca2a4b
Stabilize `transmute` in constants and statics but not const fn
oli-obk Aug 30, 2019
6864546
Add a help to use `in_band_lifetimes` in nightly
JohnTitor Jul 8, 2020
a9b6476
Tweak wording
JohnTitor Jul 9, 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
83ceb09
Rollup merge of #71322 - petrochenkov:tuple00, r=nikomatsakis
Manishearth Jul 10, 2020
393cb45
Rollup merge of #72303 - yoshuawuyts:future-poll-fn, r=dtolnay
Manishearth Jul 10, 2020
7855cc8
Rollup merge of #72920 - oli-obk:const_transmute, r=RalfJung
Manishearth Jul 10, 2020
0af8781
Rollup merge of #73862 - oli-obk:const_array_to_slice, r=RalfJung
Manishearth Jul 10, 2020
04e9061
Rollup merge of #73989 - RalfJung:ub-enum-test, r=oli-obk
Manishearth Jul 10, 2020
372b6e3
Rollup merge of #74045 - tmiasko:config-debug, r=nikomatsakis
Manishearth Jul 10, 2020
dbd9c58
Rollup merge of #74100 - lzutao:strip-bootstrap, r=Mark-Simulacrum
Manishearth Jul 10, 2020
f254701
Rollup merge of #74103 - ajpaverd:cfguard-msvc-only, r=nikomatsakis
Manishearth Jul 10, 2020
189fd68
Rollup merge of #74105 - npmccallum:naked, r=matthewjasper
Manishearth Jul 10, 2020
1e238fb
Rollup merge of #74109 - nbdd0121:issue-74082, r=petrochenkov
Manishearth Jul 10, 2020
fcc2016
Rollup merge of #74122 - nnethercote:startup-cleanup, r=petrochenkov
Manishearth Jul 10, 2020
740890e
Rollup merge of #74125 - ayazhafiz:i/74050, r=matthewjasper
Manishearth Jul 10, 2020
bdbf1e8
Rollup merge of #74127 - tamird:allowlist, r=oli-obk
Manishearth Jul 10, 2020
d570a0d
Rollup merge of #74135 - ehuss:update-books, r=ehuss
Manishearth Jul 10, 2020
ce397e7
Rollup merge of #74145 - michaelforney:rust-installer, r=Mark-Simulacrum
Manishearth Jul 10, 2020
e9712e2
Rollup merge of #74161 - tblah:riscv64gc-dockerfile-improvment, r=Mar…
Manishearth Jul 10, 2020
da5ad59
Rollup merge of #74168 - JohnTitor:help-for-in-band-lifetimes, r=petr…
Manishearth Jul 10, 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
2 changes: 2 additions & 0 deletions src/librustc_passes/check_attr.rs
Original file line number Diff line number Diff line change
@@ -292,6 +292,8 @@ impl CheckAttrVisitor<'tcx> {
| sym::u32
| sym::i64
| sym::u64
| sym::i128
| sym::u128
| sym::isize
| sym::usize => {
int_reprs += 1;
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`.