Niko Matsakis
d8337ee2f4
try to clarify confusing comment
2022-06-23 17:00:28 -04:00
Niko Matsakis
c3137d9e8c
normalize if-eq bounds before testing
...
Hat-tip: aliemjay
2022-06-23 17:00:28 -04:00
Niko Matsakis
e6b630c5b1
apply suggestions from oli-obk
...
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
2022-06-23 16:40:06 -04:00
Niko Matsakis
c9bf88ccf9
coallesce docs
2022-06-23 16:38:24 -04:00
Niko Matsakis
27e0f7a886
rename IfEqBound to IfEq
2022-06-23 16:35:47 -04:00
Niko Matsakis
893b919e64
remove VerifyBound::IfEq variant
2022-06-23 16:28:46 -04:00
bors
43347397f7
Auto merge of #98423 - ehuss:ci-submodule-no-archive, r=compiler-errors
...
Temporarily disable submodule archive downloads.
The `llvm-project` `/archive/` download has been timing out with a 504 error since yesterday. This changes it so that it uses a normal submodule clone, but also uses `--depth 1` since GitHub now supports `allowReachableSHA1InWant` which allows for fetching a specific revision. That should be reasonably fast (but not as fast as an archive download) to unstick CI.
2022-06-23 18:00:16 +00:00
Eric Huss
ebfde3cca4
Temporarily disable submodule archive downloads.
2022-06-23 10:44:36 -07:00
Maybe Waffle
3c7f1f1601
Suggest defining variable as mutable on &mut _
type mismatch in pats
2022-06-23 21:16:32 +04:00
Guillaume Gomez
137d3c7067
Update browser-ui-test version to 0.9.6
...
This update provides a better error message when chromium crashes
2022-06-23 13:04:29 +02:00
Martin Kröning
21625e5730
Session object: Set OS/ABI
...
This adapts LLVM's behavior of MCELFObjectTargetWriter::getOSABI [1].
[1]: 8c8a2679a2/llvm/include/llvm/MC/MCELFObjectWriter.h (L72-L86)
2022-06-23 11:20:52 +02:00
Maybe Waffle
9730221b9d
Remove excess rib while resolving closures
2022-06-23 12:21:23 +04:00
Caleb Cartwright
993ee00f21
update rustfmt
2022-06-22 22:16:58 -05:00
Caleb Cartwright
591b056376
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
2022-06-22 22:14:32 -05:00
Caleb Cartwright
c4416f20dc
chore: prep v1.5.1 release
2022-06-22 21:55:51 -05:00
Caleb Cartwright
224f1c938f
Merge pull request #5405 from calebcartwright/subtree-sync-2022-06-22
...
Subtree sync 2022 06 22
2022-06-22 20:57:46 -05:00
Nicholas Nethercote
7586e79af8
Rename some ExtCtxt
methods.
...
The new names are more accurate.
Co-authored-by: Scott McMurray <scottmcm@users.noreply.github.com>
2022-06-23 11:10:43 +10:00
Hood Chatham
b96ae9b204
Set no_default_libraries: false in wasm32_emscripten target
2022-06-22 17:43:10 -07:00
Caleb Cartwright
dc2d86dec3
chore: bump toolchain
2022-06-22 19:36:53 -05:00
Caleb Cartwright
778e1b1a76
Revert "Memoize format_expr"
...
This reverts commit a37d3ab0e1c7c05f1a6410fb7ddf5539f0d030f8.
2022-06-22 19:29:38 -05:00
Caleb Cartwright
f43c96688d
Merge remote-tracking branch 'upstream/master' into subtree-sync-2022-06-22
2022-06-22 19:28:27 -05:00
Eric Huss
04b75a72d7
Update tendril
2022-06-22 16:49:24 -07:00
Eric Huss
24e0c44eb6
Update books
2022-06-22 16:12:32 -07:00
Yacin Tmimi
08105e80b7
Fix issue where cargo fmt --version
would not display version info
...
Fixes 5395
In PR 5239 we switched from using `structopt` to `clap`. It seems that
the default behavior for `clap` is to override the `--version` flag,
which prevented our custom version display code from running.
The fix as outlined in https://github.com/clap-rs/clap/issues/3405 was
to set `#[clap(global_setting(AppSettings::NoAutoVersion))]` to prevent
clap from setting its own default behavior for the `--version` flag.
2022-06-22 17:47:00 -05:00
Yacin Tmimi
a187091568
Add idempotency test for issue 5399
2022-06-22 17:45:42 -05:00
Yacin Tmimi
0156575a32
Revert "Memoize format_expr"
...
Fixes 5399
Memoizing expressions lead to cases where rustfmt's stability guarantees
were violated.
This reverts commit a37d3ab0e1c7c05f1a6410fb7ddf5539f0d030f8.
2022-06-22 17:45:42 -05:00
Cameron Steffen
6587dda39e
Refactor iter adapters with less macros
2022-06-22 17:44:39 -05:00
Guillaume Gomez
e4b2b41290
Merge all popover hide functions into one
2022-06-23 00:22:25 +02:00
Guillaume Gomez
3eb9e1a7ae
Add/update GUI tests for help pocket menu
2022-06-23 00:22:25 +02:00
Guillaume Gomez
cc4f804829
Move help popup into a pocket menu as well
2022-06-23 00:22:25 +02:00
Ralf Jung
08789aa0f8
update Miri
2022-06-22 15:09:54 -07:00
Eric Huss
d23eea59f8
Add tracking issues to --extern
option docs.
2022-06-22 14:03:58 -07:00
Josh Triplett
5cf5a5236f
triagebot.toml: Sort and wrap the list of allowed labels
2022-06-22 14:02:48 -07:00
Josh Triplett
96cc0c691a
triagebot.toml: Allow applying nominated labels
...
This seems likely to help more than it would hurt; let's see how it
goes.
2022-06-22 14:01:31 -07:00
Camille GILLOT
9388824b9e
Contaminate ErrorGuaranteed.
2022-06-22 21:47:01 +02:00
Camille GILLOT
95b83f9cac
Correct function name.
2022-06-22 21:19:12 +02:00
Camille GILLOT
0ff8c65d6f
Perform coherence checking per impl.
2022-06-22 21:18:46 +02:00
Mara Bos
f107923cc0
Slightly tweak invalid atomic ordering lint messages.
...
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
2022-06-22 20:09:23 +02:00
Aaron Hill
36ccdbefbb
Remove (transitive) reliance on sorting by DefId in pretty-printer
...
This moves us a step closer to removing the `PartialOrd/`Ord` impls
for `DefId`. See #90317
2022-06-22 12:58:56 -05:00
Martin Nordholts
94477e3323
Fixup missing renames from #[main]
to #[rustc_main]
...
In fc357039f9 `#[main]` was removed and replaced with `#[rustc_main]`.
In some place the rename was forgotten, which makes the current code
confusing, because at first glance it seems that `#[main]` is still
around. Perform the renames also in these places.
2022-06-22 18:24:09 +02:00
Guillaume Gomez
75ad2f7a76
Add test for keywords in rustdoc JSON output
2022-06-22 16:26:22 +02:00
Guillaume Gomez
8e40d93647
Filter out keyword items in rustdoc JSON output
2022-06-22 16:26:04 +02:00
Rose Hudson
53481a5a8f
implement iter_projections
function on PlaceRef
...
this makes the api more flexible. the original function now calls the PlaceRef
version to avoid duplicating the code.
2022-06-22 14:06:13 +01:00
Mara Bos
903357604d
Work around llvm 12's memory ordering restrictions.
...
Older llvm has the pre-C++17 restriction on success and failure memory
ordering, requiring the former to be at least as strong as the latter.
So, for llvm 12, this upgrades the success ordering to a stronger one if
necessary.
2022-06-22 14:48:49 +02:00
Rida Dzhaafar
c41630735c
Fixed RSS reporting on macOS
2022-06-22 15:24:54 +03:00
Raoul Strackx
6a6910e5a9
Address reviewer comments
2022-06-22 13:49:12 +02:00
klensy
18ed1fa129
use -Cstrip=debuginfo
with ui tests to reduce disk space usage
2022-06-22 14:43:59 +03:00
bors
10f4ce324b
Auto merge of #98279 - cjgillot:all-fresh-nofn, r=petrochenkov
...
Create elided lifetime parameters for function-like types
Split from https://github.com/rust-lang/rust/pull/97720
This PR refactor lifetime generic parameters in bare function types and parenthesized traits to introduce the additional required lifetimes as fresh parameters in a `for<>` bound.
This PR does the same to lifetimes appearing in closure signatures, and as-if introducing `for<>` bounds on closures (without the associated change in semantics).
r? `@petrochenkov`
2022-06-22 10:48:58 +00:00
bors
89a0783f1c
Auto merge of #98375 - JohnTitor:rollup-e5c6rgo, r=JohnTitor
...
Rollup of 10 pull requests
Successful merges:
- #95446 (update CPU usage script)
- #96768 (Use futex based thread parker on Fuchsia.)
- #97454 (Add release notes for 1.62)
- #97516 (clarify how Rust atomics correspond to C++ atomics)
- #97818 (Point at return expression for RPIT-related error)
- #97895 (Simplify `likely!` and `unlikely!` macro)
- #98005 (Add some tests for impossible bounds)
- #98226 (Document unstable `--extern` options)
- #98356 (Add missing period)
- #98363 (remove use of &Alloc in btree tests)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-06-22 08:07:46 +00:00
Robin Raymond
5656de73d9
Fix debug info test
2022-06-22 06:51:39 +00:00