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
Yuki Okushi
846f134cd3
Stabilize toowned_clone_into
2022-05-28 01:07:45 +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
X
cd76f2e609
remove trailing space
...
Co-authored-by: Rémy Rakic <remy.rakic+github@gmail.com>
2022-05-27 08:46:40 +08:00
Artyom Pavlov
06af3a63a5
add debug asserts
2022-05-27 00:22:56 +00:00
Vadim Petrochenkov
5bf23f64cc
libcore: Add iter::from_generator
which is like iter::from_fn
, but for coroutines instead of functions
2022-05-27 01:51:31 +03:00
hafeoz
c3beb03909
Formatting
2022-05-26 23:27:41 +01:00
hafeoz
c6cda15a16
Remove few characters for tidy check to pass
2022-05-26 23:13:37 +01:00
bors
b2c9872c6c
Auto merge of #97386 - nnethercote:optimize-pos-adjustments, r=bjorn3
...
Optimize position adjustments
A small improvement.
r? `@bjorn3`
2022-05-26 22:01:19 +00:00
hafeoz
73ba7a756d
Add tests
2022-05-26 22:55:29 +01:00
hafeoz
d61ab20ff0
Use correct var for attribute completeness fn
2022-05-26 22:54:31 +01:00
Michael Howell
767719cc30
rustdoc: factor orphan impl items into an actual struct
2022-05-26 14:40:48 -07:00