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
Matthew Jasper
f46eabb9e5
Report nicer lifetime errors for specialization
...
Add an obligation cause for these error so that the error points to the
implementations that caused the error.
2023-05-05 22:19:56 +01:00
Boxy
73b3ce26ec
improve diagnostics and bless tests
2023-05-05 21:42:54 +01:00
Boxy
442617c046
misc nameres changes for anon consts
2023-05-05 21:31:35 +01:00
Matt Hammerly
812f2d75e1
add "force" option to --extern
2023-05-05 13:02:43 -07:00
Chris Denton
e314a3b21f
Sort windows_sys.lst alphabetically
2023-05-05 20:48:17 +01:00
Chris Denton
3ffb27ff89
Use new bindings
2023-05-05 20:48:16 +01:00
Chris Denton
e92ee03559
Generate windows-sys bindings
2023-05-05 20:48:16 +01:00
Chris Denton
f9b3d6a525
Generate windows-sys bindings
2023-05-05 20:48:16 +01:00
Charisee
37f3e2f4b1
rewriting match on endianness
2023-05-05 19:47:00 +00:00
est31
83b4df4e61
Add feature gate
2023-05-05 21:44:48 +02:00
est31
5eb29c7f49
Migrate offset_of from a macro to builtin # syntax
2023-05-05 21:44:13 +02:00
est31
59ecbd2cea
Add parsing for builtin # in expression and item context
2023-05-05 21:44:13 +02:00
Guillaume Gomez
8de4308b43
Add regression test for #111064
2023-05-05 21:33:44 +02:00
Guillaume Gomez
cbc6daa559
Improve code to remove duplication
2023-05-05 21:33:44 +02:00
Guillaume Gomez
fb160d5d3b
Modules can be reexported and it should be handled by rustdoc
2023-05-05 21:33:44 +02:00
Guillaume Gomez
879f8de409
Correctly handle associated items of a trait inside a #[doc(hidden)]
item
2023-05-05 21:33:44 +02: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
Charisee
1fc0442f7e
rewriting match on endianness
2023-05-05 19:06:14 +00: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
bors
81c2459af6
Stabilize const_ptr_read
2023-05-05 20:36:21 +02:00
Charisee
68a5bb4de1
Add GNU Property Note
2023-05-05 18:32:20 +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
Matthew Jasper
fafe9e71d5
Normalize consistently for specializations
2023-05-05 16:19:18 +01:00
Matthew Jasper
bd928a0b5e
Disallow (min) specialization imps with no items
...
Such implementations are usually mistakes and are not used in the
compiler or standard library (after this commit) so forbid them with
`min_specialization`.
2023-05-05 16:19:18 +01: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