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
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
6a5ee11027
Don't bitcast aggregate field.
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
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
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
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
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
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
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
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
Ezra Shaw
3e64e986fe
fix trait definition spans in "make mut" suggestion
2023-05-05 23:11:54 +12: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
Ezra Shaw
d2608dfabb
implement review comment
...
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
2023-05-05 22:40:05 +12:00
Ezra Shaw
87a1b3840e
tweak spans for ref mut
suggestion
2023-05-05 22:40:05 +12:00
Ezra Shaw
336a6569f5
tweak "make mut" spans (No. 4)
2023-05-05 22:40:05 +12:00
Ezra Shaw
57c6a3183c
tweak "make mut" spans (No. 3)
2023-05-05 22:40:05 +12:00
Ezra Shaw
9624d2b08e
tweak "make mut" spans (No. 2)
2023-05-05 22:40:05 +12:00
Ezra Shaw
fd8aa5ec7d
tweak "make mut" spans when assigning to locals
2023-05-05 22:40:04 +12:00
Takayuki Maeda
0a64dac604
remove unnecessary attribute from a diagnostic
2023-05-05 17:28:52 +09:00
BlackHoleFox
a427d418fd
Add deployment-target --print flag for Apple targets
2023-05-05 01:22:17 -05:00
WANG Rui
08fc451771
asm: loongarch64: Implementation of clobber_abi
2023-05-05 14:21:13 +08:00
Yuki Okushi
31e2f4d800
Rollup merge of #111173 - nnethercote:still-more-Encoder-cleanups, r=cjgillot
...
Still more encoder cleanups
r? ``@cjgillot``
2023-05-05 12:46:27 +09:00
Yuki Okushi
f5c50e3350
Rollup merge of #111132 - lcnr:nll-generalize, r=b-naber
...
cleanup nll generalizer
followup to #108861
2023-05-05 12:46:27 +09:00
Yuki Okushi
18d4e22e57
Rollup merge of #110954 - cjgillot:const-prop-ref, r=wesleywiser
...
Reject borrows of projections in ConstProp.
Fixes https://github.com/rust-lang/rust/issues/110947
2023-05-05 12:46:26 +09:00
James Dietz
f239cd6a35
added SAFETY comment
2023-05-04 20:54:17 -04:00
James Dietz
cb74cd524f
change expect() to unwrap_or_else() and update msg
2023-05-04 20:29:38 -04:00