Luqman Aden
012f9a333b
Review feedback
2023-05-05 16:14:36 -07:00
Luqman Aden
c63a204e23
Don't discard preferred alignment in scalar pair.
2023-05-05 16:11:08 -07:00
Luqman Aden
3b1e535f36
Factor out checks in layout check and add helper inherent_size.
2023-05-05 16:11:03 -07:00
Luqman Aden
f2d81defa1
Add additional test case for repr(packed) allowing union abi opt to kick in.
2023-05-05 16:05:04 -07:00
Luqman Aden
d5ab3a06d2
Add test cases for #104802 .
2023-05-05 16:05:03 -07:00
Luqman Aden
4f4f22b11c
Incorporate review feedback from 103926.
2023-05-05 16:04:59 -07:00
Luqman Aden
a3800535b1
Add helper methods inherent_align and to_union on Abi.
2023-05-05 16:00:19 -07:00
Oli Scherer
23d09aebc8
Do not use scalar layout if there are ZSTs with alignment > 1
2023-05-05 16:00:12 -07:00
Luqman Aden
c7c042ad31
Address review comments.
...
Remove bitcasts in OperandRef::extract_field; only pointercasts should
be needed.
2023-05-05 15:13:18 -07:00
Luqman Aden
7b1eedaae8
Switch test back to run-pass.
2023-05-05 14:58:52 -07:00
bors
963e5c0eff
Auto merge of #111255 - flip1995:clippyup, r=Manishearth
...
Update Clippy
r? `@Manishearth`
2023-05-05 21:50:14 +00:00
Luqman Aden
2942121736
Update test location.
2023-05-05 14:43:20 -07:00
Luqman Aden
6a5ee11027
Don't bitcast aggregate field.
2023-05-05 14:25:56 -07:00
Luqman Aden
af69cc0ea0
Make test more targeted.
2023-05-05 14:25:56 -07:00
Luqman Aden
75f3fafa72
Add test.
2023-05-05 14:25:56 -07:00
Luqman Aden
48af94c080
Operand::extract_field: only cast llval if it's a pointer and replace bitcast w/ pointercast.
2023-05-05 14:25:55 -07:00
Matt Hammerly
812f2d75e1
add "force" option to --extern
2023-05-05 13:02:43 -07:00
James Dietz
2da54a9dc6
add fn compile_test_with_passes()
2023-05-05 15:33:03 -04:00
Santiago Pastorino
f2cf795af4
Make generics_of has_self on RPITITs delegate to the opaque
2023-05-05 16:24:51 -03:00
bors
f9a6b71580
Auto merge of #111258 - weihanglo:update-cargo, r=weihanglo
...
Update cargo
10 commits in ac84010322a31f4a581dafe26258aa4ac8dea9cd..569b648b5831ae8a515e90c80843a5287c3304ef
2023-05-02 13:41:16 +0000 to 2023-05-05 15:49:44 +0000
- xtask-unpublished: output a markdown table (rust-lang/cargo#12085 )
- fix: hack around `libsysroot` instead of `libtest` (rust-lang/cargo#12088 )
- Optimize usage under rustup. (rust-lang/cargo#11917 )
- Update lock to normalize `home` dep (rust-lang/cargo#12084 )
- fix: doc-test failures (rust-lang/cargo#12055 )
- feat(cargo-metadata): add `workspace_default_members` (rust-lang/cargo#11978 )
- doc: clarify implications of `cargo-yank` (rust-lang/cargo#11862 )
- chore: Use `[workspace.dependencies]` (rust-lang/cargo#12057 )
- support for shallow clones and fetches with `gitoxide` (rust-lang/cargo#11840 )
- Build by PackageIdSpec, not name, to avoid ambiguity (rust-lang/cargo#12015 )
r? `@ghost`
2023-05-05 18:48:07 +00:00
Michael Goulet
6077fdd219
Mark ErrorGuaranteed
constructor as deprecated so people don't use it
2023-05-05 17:58:46 +00:00
Chris Denton
26b413eb2e
Further normalize msvc-non-utf8-ouput
2023-05-05 18:54:06 +01:00
Weihang Lo
31c85fd0ef
Update cargo
2023-05-05 18:00:19 +01:00
bors
4b94c23219
Auto merge of #111248 - Dylan-DPC:rollup-lbp0ui3, r=Dylan-DPC
...
Rollup of 6 pull requests
Successful merges:
- #103056 (Fix `checked_{add,sub}_duration` incorrectly returning `None` when `other` has more than `i64::MAX` seconds)
- #108801 (Implement RFC 3348, `c"foo"` literals)
- #110773 (Reduce MIR dump file count for MIR-opt tests)
- #110876 (Added default target cpu to `--print target-cpus` output and updated docs)
- #111068 (Improve check-cfg implementation)
- #111238 (btree_map: `Cursor{,Mut}::peek_prev` must agree)
Failed merges:
- #110694 (Implement builtin # syntax and use it for offset_of!(...))
r? `@ghost`
`@rustbot` modify labels: rollup
2023-05-05 15:59:20 +00:00
Philipp Krones
b53c1bb270
Update Cargo.lock
2023-05-05 17:46:00 +02:00
Philipp Krones
4cb05193fb
Merge commit '371120bdbf58a331db5dcfb2d9cddc040f486de8' into clippyup
2023-05-05 17:45:49 +02:00
bors
371120bdbf
Auto merge of #10749 - flip1995:rustup, r=flip1995
...
Rustup
r? `@ghost`
changelog: none
2023-05-05 15:30:22 +00:00
Philipp Krones
79656cc95e
Bump nightly version -> 2023-05-05
2023-05-05 17:29:40 +02:00
Philipp Krones
88c7632659
Merge remote-tracking branch 'upstream/master' into rustup
2023-05-05 17:29:35 +02:00
Zachary Mayhew
a183ac6f90
add hint for =< as <=
2023-05-05 11:17:14 -04:00
Bryanskiy
cff85f22f5
Populate effective visibilities in rustc_privacy
2023-05-05 17:33:10 +03:00
Santiago Pastorino
698acc645e
Add GeneratorDrop terminator to SMIR
2023-05-05 10:34:55 -03:00
Santiago Pastorino
4b85bea4ae
Add Assert terminator to SMIR
2023-05-05 10:34:52 -03:00
Dylan DPC
c99ab29e6b
Rollup merge of #111238 - workingjubilee:fix-btree-cursormut-peek-prev, r=Amanieu
...
btree_map: `Cursor{,Mut}::peek_prev` must agree
Our `Cursor::peek_prev` and `CursorMut::peek_prev` must agree on how to behave when they are called on the "null element". This will fix rust-lang#111228.
r? `@Amanieu`
2023-05-05 18:40:36 +05:30
Dylan DPC
ded0a9e15f
Rollup merge of #111068 - Urgau:check-cfg-improvements, r=petrochenkov
...
Improve check-cfg implementation
This PR makes multiple improvements into the implementation of check-cfg, it is a prerequisite to a follow-up PR that will introduce a simpler and more explicit syntax.
The 2 main area of improvements are:
1. Internal representation of expected values:
- now uses `FxHashSet<Option<Symbol>>` instead of `FxHashSet<Symbol>`, it made the no value expected case only possible when no values where in the `HashSet` which is now represented as `None` (same as cfg represent-it).
- a enum with `Some` and `Any` makes it now clear if some values are expected or not, necessary for `feature` and `target_feature`.
2. Diagnostics: Improve the diagnostics in multiple case and fix case where a missing value could have had a new name suggestion instead of the value diagnostic; and some drive by improvements
I highly recommend reviewing commit by commit.
r? `@petrochenkov`
2023-05-05 18:40:35 +05:30
Dylan DPC
65702bfd6b
Rollup merge of #110876 - mj10021:issue-110647-fix, r=b-naber
...
Added default target cpu to `--print target-cpus` output and updated docs
Added default target cpu info as requested in issue #110647 and noted the new output in the documentation
2023-05-05 18:40:35 +05:30
Dylan DPC
de7e29e593
Rollup merge of #110773 - mj10021:issue-109502-fix, r=oli-obk
...
Reduce MIR dump file count for MIR-opt tests
As referenced in issue #109502 , mir-opt tests previously used the -Zdump-mir=all flag, which generates very large output. This PR only dumps the passes under test, greatly reducing dump output.
2023-05-05 18:40:34 +05:30
Dylan DPC
4891f02cff
Rollup merge of #108801 - fee1-dead-contrib:c-str, r=compiler-errors
...
Implement RFC 3348, `c"foo"` literals
RFC: https://github.com/rust-lang/rfcs/pull/3348
Tracking issue: #105723
2023-05-05 18:40:33 +05:30
Dylan DPC
3502e48321
Rollup merge of #103056 - beetrees:timespec-bug-fix, r=thomcc
...
Fix `checked_{add,sub}_duration` incorrectly returning `None` when `other` has more than `i64::MAX` seconds
Use `checked_{add,sub}_unsigned` in `checked_{add,sub}_duration` so that the correct result is returned when adding/subtracting durations with more than `i64::MAX` seconds.
2023-05-05 18:40:32 +05:30
bors
4a18324a4d
Auto merge of #111113 - scottmcm:assume-align-offset, r=thomcc
...
`assume` the runtime range of `align_offset`
Found when I saw code with `align_to` having extraneous checks.
Demo that LLVM can't do this today: <https://rust.godbolt.org/z/6dnG749bq >
(It's filed as https://github.com/llvm/llvm-project/issues/62502 .)
2023-05-05 12:50:59 +00:00
bors
d7173e2599
Auto merge of #10747 - Alexendoo:cargo-dev-dogfood-stdout, r=flip1995
...
Inherit stdout/stderr for `cargo dev dogfood`
changelog: none
Prints progress as it happens and in colour, and will also show anything printed to stderr
2023-05-05 12:22:25 +00:00
Alex Macleod
0f7b61d729
Inherit stdout/stderr for cargo dev dogfood
2023-05-05 12:10:36 +00:00
lcnr
6691c4cdad
forbid escaping bound vars in combine
...
removes the `CollectAllMismatches` in favor of a slightly
more manual approach.
2023-05-05 13:51:19 +02:00
Scott McMurray
a1e5c65aa4
assume
the runtime range of align_offset
...
Found when I saw code with `align_to` having extraneous checks.
2023-05-05 04:22:51 -07:00
Urgau
53647845b9
Improve check-cfg diagnostics (part 2)
2023-05-05 13:06:48 +02:00
Urgau
a5f8dba4cd
Improve check-cfg diagnostics (part 1)
2023-05-05 13:06:48 +02:00
Urgau
d327d5b168
Improve internal representation of check-cfg
...
This is done to simplify to relationship between names() and values()
but also make thing clearer (having an Any to represent that any values
are allowed) but also to allow the (none) + values expected cases that
wasn't possible before.
2023-05-05 13:06:47 +02:00
Urgau
ad6f4b73eb
Use explicit instead of implicit control-flow for check-cfg parsing
2023-05-05 13:06:47 +02:00
Takayuki Maeda
0a64dac604
remove unnecessary attribute from a diagnostic
2023-05-05 17:28:52 +09:00
bors
dd9a7bf848
Auto merge of #111236 - RalfJung:miri-sysroot, r=RalfJung
...
bump rustc-build-sysroot to fix miri sysroot build
Fixes https://github.com/rust-lang/miri/issues/2874
2023-05-05 08:04:28 +00:00