Dylan DPC
ae4973281b
Rollup merge of #101573 - lcnr:param-kind-ord, r=BoxyUwU
...
update `ParamKindOrd`
https://github.com/rust-lang/rust/pull/90207#discussion_r767160854 😁
writing comments "for future prs" sure works well :3
r? `@BoxyUwU`
2022-09-09 22:02:18 +05:30
Dylan DPC
bef48f9314
Rollup merge of #101492 - TaKO8Ki:suggest-adding-array-length-to-ref-to-array, r=oli-obk
...
Suggest adding array lengths to references to arrays if possible
ref: https://github.com/rust-lang/rust/pull/100590#pullrequestreview-1096851146
2022-09-09 22:02:16 +05:30
Michael Goulet
022e3fe550
Equate fn outputs when inferring RPITIT hidden types
2022-09-09 16:14:59 +00:00
Oli Scherer
f632dbe46f
The <*const T>::guaranteed_* methods now return an option for the unknown case
2022-09-09 15:16:04 +00:00
Yan Chen
052887e4b4
Add inline-llvm option for disabling/enabling LLVM inlining
2022-09-09 08:00:47 -07:00
Tomasz Miąsko
e4d3abfe77
Use memset when repeating 128bit zero value
2022-09-09 15:54:14 +02:00
Tomasz Miąsko
7279106166
Introduce a fallible variant of LLVMConstIntGetZExtValue
...
which verifies that a constant bit width is within 64 bits or fails.
2022-09-09 15:54:14 +02:00
Guillaume Gomez
6102ff18ae
Rollup merge of #101492 - TaKO8Ki:suggest-adding-array-length-to-ref-to-array, r=oli-obk
...
Suggest adding array lengths to references to arrays if possible
ref: https://github.com/rust-lang/rust/pull/100590#pullrequestreview-1096851146
2022-09-09 15:36:35 +02:00
lcnr
5db6907498
review
2022-09-09 14:28:57 +02:00
lcnr
c63020a7c3
rename codegen_fulfill_obligation
2022-09-09 13:36:27 +02:00
lcnr
14f2acd0ac
resolve_instance: remove BoundVarsCollector
2022-09-09 13:08:07 +02:00
Nicholas Nethercote
d2df07c425
Rename {Create,Lazy}TokenStream as {To,Lazy}AttrTokenStream.
...
`To` is better than `Create` for indicating that this is a non-consuming
conversion, rather than creating something out of nothing.
And the addition of `Attr` is because the current names makes them sound
like they relate to `TokenStream`, but really they relate to
`AttrTokenStream`.
2022-09-09 17:25:38 +10:00
Nicholas Nethercote
f6c9e1df59
Inline and remove TokenStream::opt_from_ast.
2022-09-09 16:53:17 +10:00
Nicholas Nethercote
81eaf877d6
Tweak some formatting.
2022-09-09 16:40:25 +10:00
Nicholas Nethercote
208ca93cda
Change return type of Attribute::tokens.
...
The `AttrTokenStream` is always immediately turned into a `TokenStream`.
2022-09-09 16:25:31 +10:00
bors
4a09adf99f
Auto merge of #101603 - matthiaskrgr:rollup-8y6kf20, r=matthiaskrgr
...
Rollup of 6 pull requests
Successful merges:
- #99207 (Enable eager checks for memory sanitizer)
- #101253 (fix the suggestion of format for asm_sub_register)
- #101450 (Add `const_extern_fn` to 1.62 release notes.)
- #101556 (Tweak future opaque ty pretty printing)
- #101563 (Link UEFI target documentation from target list)
- #101593 (Cleanup themes (tooltip))
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-09-09 06:24:25 +00:00
Luis Cardoso
b0cfeec293
translations(rustc_session): migrates session.rs and config.rs
2022-09-09 08:21:23 +02:00
Matthias Krüger
bdfbc3597b
Rollup merge of #101556 - compiler-errors:tweak-generator-print, r=jackh726
...
Tweak future opaque ty pretty printing
1. The `Return` type of a generator doesn't need to be a lang item just for diagnostic printing of types
2. We shouldn't suppress the `Output = Ty` of a opaque future if the type is a int or float var.
2022-09-09 07:02:32 +02:00
Matthias Krüger
0354eee4c6
Rollup merge of #101253 - lyming2007:issue-101163, r=Amanieu
...
fix the suggestion of format for asm_sub_register
modified: compiler/rustc_typeck/src/check/intrinsicck.rs
modified: src/test/ui/asm/bad-template.aarch64_mirunsafeck.stderr
modified: src/test/ui/asm/bad-template.aarch64_thirunsafeck.stderr
modified: src/test/ui/asm/bad-template.x86_64_mirunsafeck.stderr
modified: src/test/ui/asm/bad-template.x86_64_thirunsafeck.stderr
modified: src/test/ui/asm/type-check-1.rs
modified: src/test/ui/asm/type-check-1.stderr
modified: src/test/ui/asm/x86_64/type-check-3.stderr
2022-09-09 07:02:30 +02:00
Matthias Krüger
6d2033512b
Rollup merge of #99207 - 5225225:msan-eager-checks, r=jackh726
...
Enable eager checks for memory sanitizer
Fixes #99179
2022-09-09 07:02:30 +02:00
Nicholas Nethercote
a56d345490
Rename AttrAnnotatedToken{Stream,Tree}.
...
These two type names are long and have long matching prefixes. I find
them hard to read, especially in combinations like
`AttrAnnotatedTokenStream::new(vec![AttrAnnotatedTokenTree::Token(..)])`.
This commit renames them as `AttrToken{Stream,Tree}`.
2022-09-09 12:45:26 +10:00
Nicholas Nethercote
890e759ffc
Move Spacing out of AttrAnnotatedTokenStream.
...
And into `AttrAnnotatedTokenTree::Token`.
PR #99887 did the same thing for `TokenStream`.
2022-09-09 12:00:46 +10:00
chenyukang
7e7dfb83dc
fix #101097 , avoid infinite loop in fn arguments checking
2022-09-09 09:51:21 +08:00
Michael Goulet
6876c94d80
Fix documentation lint failures
2022-09-09 01:31:46 +00:00
Michael Goulet
270b776ef9
Adjust pretty printing of RPITITs
2022-09-09 01:31:46 +00:00
Michael Goulet
ec170bef0d
Rebase fallout
2022-09-09 01:31:46 +00:00
Michael Goulet
526511e86b
Appease clippy again
2022-09-09 01:31:46 +00:00
Michael Goulet
55df9201fe
Tweak feature error, add test
2022-09-09 01:31:46 +00:00
Camille GILLOT
05812df603
Handle generic parameters.
2022-09-09 01:31:46 +00:00
Michael Goulet
cdf78073c5
Deeply check that method signatures match, and allow for nested RPITITs
2022-09-09 01:31:46 +00:00
Michael Goulet
1f03edeabe
Bless tests, fix ICE with ImplTraitPlaceholder
2022-09-09 01:31:45 +00:00
Michael Goulet
70775304cd
Address nits
2022-09-09 01:31:45 +00:00
Michael Goulet
249ede4195
Address rebase issues, make async fn in trait work
2022-09-09 01:31:45 +00:00
Michael Goulet
5be30f9d79
Make async fn in traits work
2022-09-09 01:31:45 +00:00
Michael Goulet
e8fa74ae45
Check that impl types actually satisfy RPITIT bounds
2022-09-09 01:31:45 +00:00
Michael Goulet
4265ef8cb2
Implement projection for ImplTraitPlaceholder
2022-09-09 01:31:44 +00:00
Michael Goulet
d34cb98fb0
Lower RPITIT to ImplTraitPlaceholder item
2022-09-09 01:31:44 +00:00
Michael Goulet
78b962a4f3
RPITIT placeholder items
2022-09-09 01:31:44 +00:00
Jack Huey
1e54fcc1ad
Combine logic from lubs into lub_empty function
2022-09-08 20:55:56 -04:00
Jack Huey
f6d2995fb8
Make some functions pub(super)
2022-09-08 20:55:56 -04:00
Jack Huey
1ca9eb8ec3
Remove ReEmpty
2022-09-08 20:55:55 -04:00
Eric Huss
ed0f0377e2
Fix ICE report flags display.
2022-09-08 16:08:53 -07:00
Jack Huey
dd0335a27f
Don't construct ReEmpty regions in resolve_var
2022-09-08 18:04:10 -04:00
Jack Huey
e7e5feb637
In ReverseMapper, don't fallback to ReEmpty, instead ReStatic
2022-09-08 17:57:34 -04:00
Jack Huey
f29c91bf12
Create VarValue::Empty
2022-09-08 17:57:32 -04:00
Jack Huey
cc87d53da9
Don't use reempty as an implicit_outlives_region
2022-09-08 17:55:56 -04:00
bors
c6861df836
Auto merge of #101592 - compiler-errors:rollup-d2fya7z, r=compiler-errors
...
Rollup of 7 pull requests
Successful merges:
- #101423 (Fix hermit warnings)
- #101499 (Introduce lowering_arena to avoid creating AST nodes on the fly)
- #101530 (llvm-wrapper: adapt for LLVM API changes)
- #101554 (rustdoc: remove unused CSS `#implementations-list > h3 > span.in-band`)
- #101580 (rustdoc: remove unused CSS `div.impl-items > div`)
- #101584 (rustdoc: remove no-op CSS `#settings-menu { padding: 0 }`)
- #101587 (Make `Debug` impl for `Term` useful)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-09-08 21:45:23 +00:00
Michael Goulet
e43cf3deeb
Rollup merge of #101587 - BoxyUwU:term_debug, r=compiler-errors
...
Make `Debug` impl for `Term` useful
because `Term { ptr: 78942378998734298342, maker: PhantomData, }` does not excel at communicating the necessary information
2022-09-08 14:41:13 -07:00
Michael Goulet
963a9ecb85
Rollup merge of #101530 - krasimirgg:llvm-16-up, r=cuviper
...
llvm-wrapper: adapt for LLVM API changes
No functional changes intended.
Adapts PassWrapper for a few recent LLVM API changes:
* e7bac3b9fa
* 93600eb50c
* 5e38b2a456
Note that `ModuleMemorySanitizerPass` was renamed back to its pre-14 name, `MemorySanitizerPass`, hence the funky `#if LLVM_VERSION_GE(14, 0) && LLVM_VERSION_LT(16, 0)` guard.
Found via our experimental rust + llvm at HEAD bot: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/13290#018315e6-24e1-44c8-b56d-9aad9be11c29
2022-09-08 14:41:09 -07:00
Michael Goulet
1499c089df
Rollup merge of #101499 - spastorino:add-lowering-arena, r=oli-obk
...
Introduce lowering_arena to avoid creating AST nodes on the fly
`@oli-obk` requested this and other changes as a way of simplifying https://github.com/rust-lang/rust/pull/101345 . This is just going to make the diff of https://github.com/rust-lang/rust/pull/101345 smaller.
r? `@oli-obk` `@cjgillot`
2022-09-08 14:41:08 -07:00