lcnr
31431ccda9
move 2 candidates into builtin candidate
2022-11-25 11:59:08 +01:00
Nixon Enraght-Moony
eac8921ccf
jsondoclint: Recognise Typedef as valid kind for Type::ResolvedPath
...
Closes #104851
2022-11-25 10:53:14 +00:00
Philipp Krones
c6a1184e4d
Book: Format syntax tree pattern proposal
2022-11-25 11:39:36 +01:00
Philipp Krones
4faf11a102
Move syntax tree patterns RFC to the book
2022-11-25 11:39:04 +01:00
dswij
a4b53c9c14
manual_let_else: Add test with expanded macros
2022-11-25 18:17:34 +08:00
dswij
bbcc260b6f
manual_let_else: keep macro call on suggestion blocks
2022-11-25 18:04:17 +08:00
Matthias Krüger
268d230231
Rollup merge of #104873 - RalfJung:therefore, r=Dylan-DPC
...
RefCell::get_mut: fix typo
and fix the same typo in a bunch of other places
2022-11-25 10:44:40 +01:00
Matthias Krüger
f360686ed6
Rollup merge of #104873 - RalfJung:therefore, r=Dylan-DPC
...
RefCell::get_mut: fix typo
and fix the same typo in a bunch of other places
2022-11-25 10:44:40 +01:00
Matthias Krüger
8babe1c417
Rollup merge of #104849 - GuillaumeGomez:source-code-sidebar-css-migration, r=notriddle
...
Migrate source code elements style to CSS variables
r? ``@notriddle``
2022-11-25 10:44:40 +01:00
Matthias Krüger
34f1de8395
Rollup merge of #104841 - compiler-errors:fishy-bound-var, r=jackh726
...
Assert that we don't capture escaping bound vars in `Fn` trait selection
Fixes #104825
2022-11-25 10:44:39 +01:00
Matthias Krüger
f00c3f05bc
Rollup merge of #104793 - nicholasbishop:bishop-add-efiapi, r=JohnTitor
...
unstable-book: Add page for the `abi_efiapi` feature
Tracking issue for `abi_efiapi`: https://github.com/rust-lang/rust/issues/65815
2022-11-25 10:44:39 +01:00
Matthias Krüger
808157bd7d
Rollup merge of #104654 - thomcc:alloc-tests-unsafe_op_in_unsafe_fn, r=Mark-Simulacrum
...
Add `#![deny(unsafe_op_in_unsafe_fn)]` in liballoc tests
In https://github.com/rust-lang/rust/pull/104647#discussion_r1027332930 it was mentioned that liballoc tests should probably have this enabled (we have it pretty much everywhere else in the stdlib), so I added it.
This will probably conflict with https://github.com/rust-lang/rust/pull/104647 so I'll rebase after that lands.
2022-11-25 10:44:38 +01:00
Matthias Krüger
a9313e9077
Rollup merge of #103648 - jyn514:no-preview, r=Mark-Simulacrum
...
Don't set `is_preview` for clippy and rustfmt
These have been shipped on stable for many years now and it would be very disruptive to ever remove them.
Remove the `-preview` suffix from their dist components.
Based on https://github.com/rust-lang/rust/pull/102565 .
2022-11-25 10:44:37 +01:00
bors
8a75c5a9b5
Auto merge of #104650 - BlackHoleFox:stuck-with-xcode-13, r=Mark-Simulacrum
...
Build macOS distribution artifacts with XCode 13
After all of the `rust-lang/rust` Apple runners started using macOS 12, the builds created by CI began to use XCode 14.0.1. Due to this (as far as we can tell), XCode's build tools started to ignore the `MACOSX_DEPLOYMENT_TARGET` being defined by us for the distributed builds that let both `rustc` and `libstd` work on older versions. The current idea is that since XCode 14's macOS SDK doesn't support deployment targets before 10.13, it uses some default of its own. You can see the difference between stable's and the most recent nighty's supported versions [here](https://github.com/rust-lang/rust/issues/104570#issuecomment-1321225907 ).
I wasn't able to confirm my SDK versioning hypothesis locally since I think there's something jammed with my XCode installation, but hopefully this should still fix it for releases.
Closes https://github.com/rust-lang/rust/issues/104570
r? `@Mark-Simulacrum`
2022-11-25 09:44:16 +00:00
kadmin
d0209db157
Fix mk_const_list
2022-11-25 09:35:37 +00:00
Boxy
677bdcb8a9
only emit "enable gce" error if it would fix compile error
2022-11-25 09:28:44 +00:00
Boxy
2ac5d91d63
Make expand_abstract_consts infallible
2022-11-25 09:28:44 +00:00
Boxy
4085e94ece
super_relate_consts do not spurriously fail on assoc consts
2022-11-25 09:28:44 +00:00
Boxy
430f7d16e6
add FIXME's
2022-11-25 09:28:44 +00:00
Boxy
95e1a39c04
correctly intern List<Const<'tcx>>
2022-11-25 09:28:44 +00:00
Boxy
5a496aab03
dont skip const evalautable of non unevaluateds
2022-11-25 09:28:44 +00:00
Boxy
e58b932daf
add FIXME for things that I couldn't find ways to trigger
2022-11-25 09:28:44 +00:00
Boxy
4833ce8673
fmt
2022-11-25 09:28:43 +00:00
Boxy
f59b91e8a0
reduce duplicated argument logic
2022-11-25 09:28:43 +00:00
Boxy
fd271ffe28
also handle it in evaluate
2022-11-25 09:28:43 +00:00
Boxy
0ae3c5c609
handle assoc consts in fulfill ConstEquate
2022-11-25 09:28:43 +00:00
Boxy
d75cd5c051
fmt
2022-11-25 09:28:43 +00:00
Boxy
8c729bd0f3
handle nested obligations in satisfied_from_param_env
2022-11-25 09:28:43 +00:00
kadmin
5bb1a9febc
Add expand_abstract_const
...
Adds the ability to directly expand a const to an expr without having to deal with intermediate
steps.
2022-11-25 09:28:43 +00:00
kadmin
f9750c1554
Add empty ConstKind::Abstract
...
Initial pass at expr/abstract const/s
Address comments
Switch to using a list instead of &[ty::Const], rm `AbstractConst`
Remove try_unify_abstract_consts
Update comments
Add edits
Recurse more
More edits
Prevent equating associated consts
Move failing test to ui
Changes this test from incremental to ui, and mark it as failing and a known bug.
Does not cause the compiler to ICE, so should be ok.
2022-11-25 09:28:43 +00:00
yukang
7c11a53f9c
fix #104867 , Properly handle postfix inc/dec in standalone and subexpr scenarios
2022-11-25 17:13:45 +08:00
Lukas Wirth
f96dd38318
Address reviews
2022-11-25 10:09:35 +01:00
Lukas Wirth
9c69e1cc89
Simplify
2022-11-25 10:09:35 +01:00
Lukas Wirth
4fa5757530
Lint unnecessary safety comments on statements and block tail expressions
2022-11-25 10:09:34 +01:00
Lukas Wirth
b8c3f64cee
Add some more test cases for undocumented_unsafe_blocks
2022-11-25 10:09:34 +01:00
Lukas Wirth
a116b9bdba
Lint unnecessary safety comments on items
2022-11-25 10:09:34 +01:00
Fabian Hintringer
69d562d684
change example of array_from_fn to match suggestion
2022-11-25 10:05:07 +01:00
Oli Scherer
208bb933e7
Use "must be init" instead of "must not be uninit" everywhere
2022-11-25 08:40:27 +00:00
Oli Scherer
5446a52b4b
Add a because to errors derived from fields
2022-11-25 08:40:03 +00:00
Oli Scherer
9b6f8e500c
Add a test for OOB ranges
2022-11-25 08:39:50 +00:00
Oli Scherer
d7f5d784d7
Simplify and document range layout computation
2022-11-25 08:39:11 +00:00
Oli Scherer
fcb1f1874f
Don't show fields from other crates
2022-11-25 08:12:16 +00:00
Oli Scherer
2e79f5f9f8
Move a comment to the right place
2022-11-25 08:11:53 +00:00
Oli Scherer
98c550ecc8
Reinstate the previous compact form of "in this field" errors
2022-11-25 08:11:29 +00:00
Oli Scherer
545fccaab4
Add a test for scalar pair layout validation
2022-11-25 08:11:16 +00:00
Oli Scherer
ccaa28bf69
Don't try to compute the layout of generic types.
2022-11-25 08:10:52 +00:00
Oli Scherer
2bed079103
Compute layout instead of manually procesisng the layout restriction attributes
2022-11-25 08:10:29 +00:00
Oli Scherer
5cbf172909
Print a trace through types to show how to get to the problematic type
2022-11-25 08:09:52 +00:00
Oli Scherer
9909cb902f
Make the ICEs in the mir typechecker have more spans helpful
2022-11-25 08:01:12 +00:00
Oli Scherer
6773e7ee56
More manual formatting
2022-11-25 08:00:49 +00:00