Nilstrieb
2c456b5123
Test a small cargo-miri smoke test even in run_tests_minimal
...
This makes sure that cargo-miri works on all targets.
2022-11-25 18:28:35 +01:00
Michael Howell
20cb41f466
rustdoc: remove no-op CSS #help dt { display: block }
...
`display: block` is the [default UA style] for dt.
[default UA style]: https://html.spec.whatwg.org/multipage/rendering.html#lists
2022-11-25 10:07:21 -07:00
Michael Howell
75e4de61d4
rustdoc: revert tooltip background color on light theme to readable
...
text #fff on background #fdffd3 fails the [WCAG color contrast checker], and
seems like a mistake in 16b55903ee
.
[WCAG color contrast checker]: https://accessibleweb.com/color-contrast-checker/
2022-11-25 09:28:25 -07:00
Oli Scherer
8582f9644b
Cache Predicates' hash within themselves
2022-11-25 16:25:28 +00:00
Michael Howell
f8b2e13d16
rustdoc: remove cursor: pointer
from unclickable tooltip
...
It's misleading unless it gets changed to respond to being clicked.
2022-11-25 09:16:27 -07:00
bors
08a80d3a8b
Auto merge of #9944 - flip1995:move-syntax-tree-patterns, r=Manishearth
...
Move syntax tree patterns RFC to the book
r? `@Manishearth`
Follow up to #3875
changelog: none
2022-11-25 15:59:47 +00:00
bors
8b2f7e3b52
Auto merge of #104846 - spastorino:santa-clauses-make-goals-early-christmas- 🎄 , r=oli-obk
...
Branch Clause from Predicate
r? `@oli-obk`
This is part of what's proposed in https://github.com/rust-lang/compiler-team/issues/531
2022-11-25 15:59:31 +00:00
bors
051cab2b84
Auto merge of #104846 - spastorino:santa-clauses-make-goals-early-christmas- 🎄 , r=oli-obk
...
Branch Clause from Predicate
r? `@oli-obk`
This is part of what's proposed in https://github.com/rust-lang/compiler-team/issues/531
2022-11-25 15:59:31 +00:00
kraktus
2fd10bc59b
dogfood with expanded uninlined_format_args
2022-11-25 16:49:05 +01:00
lcnr
4f07008419
remove confusing comment
...
`?0: CoerceUnsized<SomeTy>` can definitely apply because
`?0` matches any type, same for `SomeTy: CoerceUnsized<?0>`
2022-11-25 16:39:23 +01:00
lcnr
a215b7b4df
remove TypeError::ObjectUnsafeCoercion
2022-11-25 16:39:23 +01:00
kraktus
5610d22c8d
Re-enable uninlined_format_args
on multiline format!
...
But do not display the code suggestion which can be sometimes completely broken (fortunately when applied it's valid)
2022-11-25 16:36:22 +01:00
Deadbeef
815d370346
Add documentation for has_escaping_bound_vars
2022-11-25 15:02:53 +00:00
lcnr
40a053361a
small method code cleanup
2022-11-25 15:52:58 +01:00
Tshepang Mbambo
b21674f3bd
remove unused code
2022-11-25 16:28:18 +02:00
Tshepang Mbambo
c6ea362571
remove obsolete comment
2022-11-25 16:27:27 +02:00
Nixon Enraght-Moony
37b0a100aa
rustbuild: Don't build doc::SharedAssets when building JSON docs.
2022-11-25 13:50:41 +00:00
lcnr
68d953014e
notify lcnr on changes to ObligationCtxt
2022-11-25 14:26:10 +01:00
bors
e704e95250
Auto merge of #104877 - matthiaskrgr:rollup-s7taiq8, r=matthiaskrgr
...
Rollup of 6 pull requests
Successful merges:
- #103648 (Don't set `is_preview` for clippy and rustfmt)
- #104654 (Add `#![deny(unsafe_op_in_unsafe_fn)]` in liballoc tests)
- #104793 (unstable-book: Add page for the `abi_efiapi` feature)
- #104841 (Assert that we don't capture escaping bound vars in `Fn` trait selection)
- #104849 (Migrate source code elements style to CSS variables)
- #104873 (RefCell::get_mut: fix typo)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-11-25 13:01:45 +00:00
bors
efadb55733
Auto merge of #9851 - Veykril:unnecessary-safety-comment, r=giraffate
...
Lint unnecessary safety comments
changelog: [`unnecessary_safety_comment`]: Add unnecessary safety comment lint
Addresses https://github.com/rust-lang/rust-clippy/issues/7954
This does not necessarily catch all occurences, as doing so would require checking all expressions in the entire source which seems rather expensive. Instead what the lint does is it checks items, statements and the tail expression of blocks for safety comments, then checks if those comments are necessary or not, then linting for the unnecessary ones.
I kept the tests in one file to check that the lints do not clash with each other.
2022-11-25 12:55:24 +00:00
Krasimir Georgiev
e5ccd27e67
[llvm-wrapper] adapt for LLVM API change
...
Adapt for the LLVM API changes from
721f975d35 (diff-5a347903b8412ed1b1b1948c3fce47f9a6ff05dc70bfaeedb6d06b622e399d91)
.
2022-11-25 11:29:00 +00:00
lcnr
84e97907c6
add comment
2022-11-25 11:59:08 +01:00
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