bors
b97bfc3b38
Auto merge of #97465 - jyn514:dist-ra, r=Mark-Simulacrum
...
Fix `x dist --stage 1 src/tools/rust-analyzer`
Previously, this would break because the submodule wasn't checked out.
Fixes https://github.com/rust-lang/rust/issues/97464 .
2022-05-28 06:45:15 +00:00
bors
ed76b773b5
Auto merge of #97284 - b-naber:constraint-dyn-impl-suggestion, r=estebank
...
Add suggestion for relaxing static lifetime bounds on dyn trait impls in NLL
This PR introduces suggestions for relaxing static lifetime bounds on impls of dyn trait items for NLL similar to what is already available in lexical region diagnostics.
Fixes https://github.com/rust-lang/rust/issues/95701
r? `@estebank`
2022-05-28 04:04:29 +00:00
Josh Stone
ab57e36268
Update to rebased rustc-rayon 0.4
2022-05-27 20:20:41 -07:00
bors
764b8615e9
Auto merge of #97433 - GuillaumeGomez:rm-refcell-context, r=notriddle
...
Pass Context as a &mut to allow to remove RefCell fields
Fixes #90323 .
r? `@notriddle`
2022-05-28 01:37:09 +00:00
Jakob Degen
7a99da1d50
Switch incremental/hashes tests to all use optimizations.
2022-05-27 18:17:39 -07:00
bors
2aae8020c7
Auto merge of #97468 - matthiaskrgr:rollup-8cu0hqr, r=matthiaskrgr
...
Rollup of 6 pull requests
Successful merges:
- #95214 (Remove impossible panic note from `Vec::append`)
- #97411 (Print stderr consistently)
- #97453 (rename `TyKind` to `RegionKind` in comment in rustc_middle)
- #97457 (Add regression test for #81899 )
- #97458 (Modify `derive(Debug)` to use `Self` in struct literal to avoid redundant error)
- #97462 (Add more eslint rules)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-05-27 23:17:18 +00:00
Matthias Krüger
b37b735038
Rollup merge of #97462 - GuillaumeGomez:more-eslint-rules, r=notriddle
...
Add more eslint rules
The last one is the most useful of this batch. :)
Here are the links for the eslint rules:
* [arrow-parens](https://eslint.org/docs/rules/arrow-parens )
* [no-unused-vars](https://eslint.org/docs/rules/no-unused-vars )
* [eqeqeq](https://eslint.org/docs/rules/eqeqeq )
r? `@notriddle`
2022-05-28 01:11:51 +02:00
Matthias Krüger
0804ef6563
Rollup merge of #97458 - estebank:use-self-in-derive-macro, r=compiler-errors
...
Modify `derive(Debug)` to use `Self` in struct literal to avoid redundant error
Reduce verbosity in #97343 .
2022-05-28 01:11:50 +02:00
Matthias Krüger
29ac9b13d4
Rollup merge of #97457 - JohnTitor:issue-81899, r=compiler-errors
...
Add regression test for #81899
Closes #81899
r? `@compiler-errors`
2022-05-28 01:11:49 +02:00
Matthias Krüger
e96397b63f
Rollup merge of #97453 - lcnr:comment, r=jackh726
...
rename `TyKind` to `RegionKind` in comment in rustc_middle
2022-05-28 01:11:48 +02:00
Matthias Krüger
1174dba02f
Rollup merge of #97411 - raiyansayeed:print-stderr-consistently, r=Mark-Simulacrum
...
Print stderr consistently
Solves https://github.com/rust-lang/rust/issues/96712
I tried to follow what I perceived as the general consensus for error messages in boostrap i.e messages that were ..
* resulting from an Err(...) =>
* literally called as "Error: ...."
* by the end of the block scope forced to run a panic! or process::exit with a guaranteed non-zero error code.
2022-05-28 01:11:47 +02:00
Matthias Krüger
4254f922db
Rollup merge of #95214 - tbu-:pr_vec_append_doc, r=Mark-Simulacrum
...
Remove impossible panic note from `Vec::append`
Neither the number of elements in a vector can overflow a `usize`, nor
can the amount of elements in two vectors.
2022-05-28 01:11:46 +02:00
Joshua Nelson
81e2c112d9
[bootstrap] Move sanitize_sh
from dist
to install
...
This is the only place it's used, so there's no need for it to be public in another module.
In general, `dist` shouldn't ever touch shell scripts.
2022-05-27 17:52:41 -05:00
Joshua Nelson
6f5de285eb
Fix x dist --stage 1 src/tools/rust-analyzer
...
Previously, this would break because the submodule wasn't checked out.
2022-05-27 17:47:31 -05:00
Guillaume Gomez
334f12c28e
Add "eqeqeq" eslint rule
2022-05-27 22:30:19 +02:00
Guillaume Gomez
3741a88ad7
Add "no-unused-vars" eslint rule
2022-05-27 22:22:22 +02:00
Guillaume Gomez
b7d6a429b5
Add "arrow-parens" eslint rule
2022-05-27 22:21:41 +02:00
Guillaume Gomez
6ab8edb931
Pass Context as a &mut to allow to remove RefCell fields
2022-05-27 22:16:24 +02:00
Michael Howell
718269aab8
cleanup librustdoc by making parent stack store items
2022-05-27 12:55:44 -07:00
Eduard-Mihai Burtescu
78a83b0d5f
proc_macro: don't pass a client-side function pointer through the server.
2022-05-27 19:29:21 +00:00
bors
ebbcbfc236
Auto merge of #96790 - lqd:update_jemalloc, r=Mark-Simulacrum
...
Update jemalloc to v5.3
Now that `jemalloc` version 5.3 has been released, this PR updates `tikv-jemalloc-sys` to the corresponding release.
The crates.io publishing issue seems to have been resolved for the `jemalloc-sys` package, and version 5.3.0 is now also available under the historical name (and should become the preferred crate to be used). Therefore, this PR also switches back to using `jemalloc-sys` instead of `tikv-jemalloc-sys`.
2022-05-27 18:28:12 +00:00
Esteban Küber
f2a1b7b772
Modify derive(Debug)
to use Self
in struct literal to avoid redundant error
...
#97343
2022-05-27 10:48:12 -07:00
Esteban Küber
d21bc6562a
Add test for #97343
2022-05-27 10:47:05 -07:00
Yuki Okushi
6ba9ed86c3
Add regression test for #81899
2022-05-28 01:32:15 +09:00
lcnr
4781246a2c
fix comment
2022-05-27 16:36:59 +02:00
Mark Rousskov
b454991ac4
Finish bumping stage0
...
It looks like the last time had left some remaining cfg's -- which made me think
that the stage0 bump was actually successful. This brings us to a released 1.62
beta though.
2022-05-27 07:36:17 -04:00
bors
56fd680cf9
Auto merge of #96046 - oli-obk:const_typeck, r=cjgillot
...
Move various checks to typeck so them failing causes the typeck result to get tainted
Fixes #69487
fixes #79047
cc `@RalfJung` this gets rid of the `Transmute` invalid program error variant
2022-05-27 11:31:37 +00:00
Xiretza
202026441b
docs: Don't imply that OsStr on Unix is always UTF-8
...
The methods in `OsStrExt` consume and return `&[u8]` and don't perform
any UTF-8 checks.
2022-05-27 12:14:26 +02:00
Oli Scherer
4332c2fbbd
Update tests on aarch64
2022-05-27 09:18:11 +00:00
bors
46147119ec
Auto merge of #97442 - hafeoz:master, r=GuillaumeGomez
...
Fix multiline attributes processing in doctest
Fixes #97440 .
It seems like the call to `check_if_attr_is_complete` is not provided with the correct argument: the pending attribute should be passed, while the current line is actually being passed. This causes any attribute with more than 2 lines to fail and produces ICE when running through doctest.
2022-05-27 08:50:51 +00:00
bors
f558990814
Auto merge of #97004 - nnethercote:proc-macro-tweaks, r=eddyb
...
Proc macro tweaks
Various improvements I spotted while looking through the proc macro code.
r? `@eddyb`
2022-05-27 06:09:45 +00:00
Nicholas Nethercote
41c10dde95
Cut down associated_item
.
...
The part of it dealing with types obfuscates and makes the code less
concise. This commit removes that part.
2022-05-27 16:02:24 +10:00
Nicholas Nethercote
e6fa19a3ce
Remove unnecessary blank line.
2022-05-27 16:02:24 +10:00
Nicholas Nethercote
f5c9c1215c
Rename b
as buf
in several places.
...
Because it's easy to confuse with `bridge`.
2022-05-27 15:58:35 +10:00
Nicholas Nethercote
c2c505737f
Add some comments about _marker
fields.
...
There is some non-obvious information required to understand them.
2022-05-27 15:58:35 +10:00
Nicholas Nethercote
9a785e0aa5
Clarify a comment.
...
`reverse_encode` isn't necessary to please the borrow checker, it's to
match the ordering done by `reverse_decode`.
2022-05-27 15:58:35 +10:00
Nicholas Nethercote
bc70d0db92
Rename ProcMacroDerive
as DeriveProcMacro
.
...
So it matches the existing `AttrProcMacro` and `BangProcMacro` types.
2022-05-27 15:58:35 +10:00
Nicholas Nethercote
dbdc7dd0dc
Rename ProcMacro
trait as BangProcMacro
.
...
Similar to the existing `AttrProcMacro` trait.
2022-05-27 15:58:35 +10:00
Nicholas Nethercote
1a9514d5ce
Simplify types in proc_macro_harness.rs
.
...
This gives the more obvious derive/attr/bang distinction, and reduces
code size slightly.
2022-05-27 15:58:35 +10:00
Nicholas Nethercote
2ece157e17
Make Buffer<T>
non-generic.
...
`u8` is the only type that makes sense for `T`, as demonstrated by the
fact that several impls and functions are hardwired to `Buffer<u8>`.
2022-05-27 15:58:35 +10:00
Nicholas Nethercote
e02789c9f8
Improve formatting in associated_item!
definition.
2022-05-27 15:58:35 +10:00
Nicholas Nethercote
a61a85eb24
Add some comments.
2022-05-27 15:58:35 +10:00
Nicholas Nethercote
2469ed0142
Fix a typo in a comment.
2022-05-27 15:58:35 +10:00
bors
9a42c6509d
Auto merge of #97444 - compiler-errors:rollup-2gvdav6, r=compiler-errors
...
Rollup of 3 pull requests
Successful merges:
- #96051 (Use rounding in float to Duration conversion methods)
- #97066 (rustdoc: Remove `ItemFragment(Kind)`)
- #97436 (Update `triagebot.toml` for macos ping group)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-05-27 03:27:04 +00:00
Michael Goulet
036f62badf
Rollup merge of #97436 - compiler-errors:macos-ping-2, r=Mark-Simulacrum
...
Update `triagebot.toml` for macos ping group
idk what i'm doing but i saw https://github.com/rust-lang/rust/pull/96392#issuecomment-1138893845
cc: `@thomcc`
2022-05-26 20:15:09 -07:00
Michael Goulet
8eb4fc6057
Rollup merge of #97066 - petrochenkov:nofragkind, r=camelid
...
rustdoc: Remove `ItemFragment(Kind)`
And stop using `write!` when rendering URL fragments to avoid impossible errors.
2022-05-26 20:15:08 -07:00
Michael Goulet
e3813e46a2
Rollup merge of #96051 - newpavlov:duration_rounding, r=nagisa,joshtriplett
...
Use rounding in float to Duration conversion methods
Closes #96045
2022-05-26 20:15:07 -07:00
Артём Павлов [Artyom Pavlov]
6495963d5a
fmt
2022-05-27 05:15:22 +03:00
Артём Павлов [Artyom Pavlov]
38609cd8a9
fix nanos overflow for f64
2022-05-27 04:59:01 +03:00
bors
4f68efad64
Auto merge of #96298 - petrochenkov:fromgen, r=estebank
...
libcore: Add `iter::from_generator` which is like `iter::from_fn`, but for coroutines instead of functions
An equally useful little helper.
I didn't follow any of the async-wg work, so I don't know why something like this wasn't added before.
2022-05-27 01:01:15 +00:00