bors
1d9c262eea
Auto merge of #95274 - jendrikw:slice-must-use, r=Dylan-DPC
...
add #[must_use] to functions of slice and its iterators.
Continuation of #92853 .
Tracking issue: #89692 .
2022-03-26 20:17:04 +00:00
Meziu
419b6309a9
Merge pull request #16 from ian-h-chamberlain/feature/target-thread-local
...
Enable #[thread_local] on armv6k-nintendo-3ds
2022-03-26 20:49:19 +01:00
Ralf Jung
3bbcf64fb3
interpret: with enforce_number_validity, ensure integers are truly Scalar::Int (i.e., no pointers)
2022-03-26 14:35:36 -04:00
bjorn3
bbff48e094
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
2022-03-26 18:29:37 +01:00
Ralf Jung
78b680e14a
interpret: mark a dead match arm as dead
2022-03-26 13:17:07 -04:00
antoyo
39683d8eb7
Merge pull request #146 from bjorn3/rustup
...
Rustup to rustc 1.61.0-nightly (d53246fed
2022-03-25)
2022-03-26 13:00:39 -04:00
bjorn3
fb9658d312
Review comments
2022-03-26 17:27:06 +01:00
Badel2
ea26d72710
Move resolve_path to rustc_builtin_macros and make it private
2022-03-26 16:47:13 +01:00
bjorn3
724473b330
Fix compiletest compilation
2022-03-26 16:29:27 +01:00
Jendrik
763094bb59
add #[must_use] to functions of slice and its iterators.
2022-03-26 16:23:55 +01:00
Jendrik
531080e8e5
add #[must_use] to functions of slice and its iterators.
2022-03-26 16:19:47 +01:00
Jendrik
b0c8337d76
add #[must_use] to functions of slice and its iterators.
2022-03-26 15:47:22 +01:00
Jendrik
754fdb0aa5
add #[must_use] to functions of slice and its iterators.
2022-03-26 15:37:48 +01:00
Guillaume Gomez
ad88732254
Fix perf issue for auto trait selection
2022-03-26 14:58:19 +01:00
bjorn3
edf33fe0a2
Add Destruct and Drop traits to static.rs
2022-03-26 14:41:55 +01:00
Ian Chamberlain
78294371c4
Enable #[thread_local] on armv6k-nintendo-3ds
2022-03-26 09:29:01 -04:00
bjorn3
6faa6a28ba
Rustup to rustc 1.61.0-nightly ( d53246fed
2022-03-25)
2022-03-26 14:12:44 +01:00
bors
1fca19c8ca
Auto merge of #95326 - lupd:std-iter-doc, r=Dylan-DPC
...
Remove mention of `HashMap<K, V>` not offering `iter_mut`
HashMap<K, V> does offer iter_mut. Fixes #94755 .
r? rust-lang/libs
`@rustbot` label +A-docs +T-libs
2022-03-26 12:01:58 +00:00
Samuel E. Moelius III
37ebd47ddb
Address review comments
...
* Add lazily computed `switch_sources` data structure
* Don't assume a target has only one associated value
2022-03-26 08:01:51 -04:00
bjorn3
db591778ac
Sync from rust bc881e83d1
2022-03-26 12:52:21 +01:00
Vadim Petrochenkov
baa3ad4dc8
proc-macro: Stop wrapping ident
matchers into groups
2022-03-26 12:38:46 +03:00
Jendrik
5f88c23c39
add #[must_use] to functions of slice and its iterators.
2022-03-26 10:24:25 +01:00
bors
bc881e83d1
Auto merge of #95306 - est31:master, r=Dylan-DPC
...
std::process docs: linkify references to output, spawn and status
2022-03-26 09:00:23 +00:00
DrMeepster
ece64ed3f5
check the the right field
2022-03-26 00:08:51 -07:00
DrMeepster
e9f08e709d
fix wrong header command
2022-03-25 23:46:37 -07:00
DrMeepster
46dadfc142
widen special case on deref to all non-zst allocators
2022-03-25 23:16:23 -07:00
dlup
15134249f4
Remove mention of HashMap<K, V> not offering iter_mut
2022-03-26 02:05:34 -04:00
bors
2882c2023d
Auto merge of #95296 - workingjubilee:pretty-session, r=Dylan-DPC
...
Prettify rustc_session with recent conveniences
No functional changes.
I felt like making something beautiful.
2022-03-26 06:00:41 +00:00
bors
d4acac935b
Auto merge of #95299 - mkroening:rm-hermitkernel, r=joshtriplett
...
Remove hermitkernel targets
RustyHermit now maintains custom json targets, which are distributed with the kernel: https://github.com/hermitcore/libhermit-rs/pull/395
See https://github.com/hermitcore/rusty-hermit/issues/197#issuecomment-1076667961
CC: `@stlankes,` `@bstrie`
2022-03-26 03:19:49 +00:00
bors
c74925438c
Auto merge of #95149 - cjgillot:once-diag, r=estebank
...
Remove `Session::one_time_diagnostic`
This is untracked mutable state, which modified the behaviour of queries.
It was used for 2 things: some full-blown errors, but mostly for lint declaration notes ("the lint level is defined here" notes).
It is replaced by the diagnostic deduplication infra which already exists in the diagnostic emitter.
A new diagnostic level `OnceNote` is introduced specifically for lint notes, to deduplicate subdiagnostics.
As a drive-by, diagnostic emission takes a `&mut` to allow dropping the `SubDiagnostic`s.
2022-03-26 00:54:54 +00:00
bors
a2ebd5a1f1
Auto merge of #95172 - GuillaumeGomez:reduce-wait-for, r=notriddle
...
Reduce wait-for instructions for rustdoc GUI tests
r? `@notriddle`
2022-03-25 22:16:44 +00:00
Caio
9e0b7c3f44
Minor let_chains
modification
2022-03-25 18:50:52 -03:00
Michael Howell
2a7837262f
diagnostics: correct generic bounds with doubled colon
...
Fixes #95208
2022-03-25 13:57:05 -07:00
Guillaume Gomez
e0a697aad4
Replace wait-for instructions for rustdoc GUI tests with wait-for-css
2022-03-25 21:32:16 +01:00
Guillaume Gomez
98d51960c4
Update browser-ui-test version to 0.8.4
2022-03-25 21:12:31 +01:00
bors
d53246fedd
Auto merge of #95304 - michaelwoerister:retry-finalize-session-dir, r=oli-obk
...
incr. comp.: Let compiler retry finalizing session directory a few times.
In my local testing this fixed issue https://github.com/rust-lang/rust/issues/86929 . I wasn't able to come up with a regression test for it though.
2022-03-25 19:47:19 +00:00
bors
3fe3b89cd5
Auto merge of #95282 - RalfJung:miri, r=RalfJung
...
update Miri
Fixes https://github.com/rust-lang/rust/issues/95258
r? `@ghost`
2022-03-25 16:45:08 +00:00
bors
09be68c869
Auto merge of #95280 - InfRandomness:infrandomness/Dtorck_clarification, r=oli-obk
...
Swap DtorckConstraint to DropckConstraint
This change was made as per suspicion that this struct was never renamed after consistent use of DropCk.
This also clarifies the meaning behind the name of this structure.
Fixes https://github.com/rust-lang/rust/issues/94310
2022-03-25 14:16:13 +00:00
est31
8c0e6a8f10
std::process docs: linkify references to output, spawn and status
2022-03-25 14:41:37 +01:00
Michael Woerister
e5b9430578
incr. comp.: Let compiler retry finalizing session directory a few times.
...
See https://github.com/rust-lang/rust/issues/86929 .
2022-03-25 14:14:26 +01:00
Camille GILLOT
f7d5b7afb7
Bless rustdoc tests.
2022-03-25 12:50:48 +01:00
bors
903427b2e8
Auto merge of #95255 - petrochenkov:suggresolve, r=michaelwoerister
...
resolve: Do not build expensive suggestions if they are not actually used
And remove a bunch of (conditionally) unused parameters from path resolution functions.
This helps with performance issues in https://github.com/rust-lang/rust/pull/94857 , and should be helpful in general even without that.
2022-03-25 11:35:19 +00:00
Jubilee Young
f5f0e6d551
Skip needless bitset for debuginfo
2022-03-25 03:55:18 -07:00
Martin Kröning
335d196498
Remove hermitkernel targets
...
RustyHermit now maintains custom json targets, which are distributed with the kernel. [1]
[1]: https://github.com/hermitcore/libhermit-rs/pull/395
2022-03-25 11:52:11 +01:00
bors
e70e211e99
Auto merge of #95082 - spastorino:overlap-inherent-impls, r=nikomatsakis
...
Overlap inherent impls
r? `@nikomatsakis`
Closes #94526
2022-03-25 09:09:48 +00:00
bors
8a0c55046c
Auto merge of #95259 - nnethercote:more-macro-expansion-optimizations, r=petrochenkov
...
More macro expansion optimizations
A few nice wins for macro-heavy crates.
r? `@petrochenkov`
2022-03-25 06:28:58 +00:00
Jubilee Young
fd2448b5fc
Use a let-chain in _session::output (nfc)
2022-03-24 22:38:32 -07:00
Jubilee Young
d3ca9ba123
Vigorously refactor _session::code_stats (nfc)
2022-03-24 22:38:16 -07:00
Jubilee Young
de66e08957
Prettify rustc_session fmt with capturing args (nfc)
2022-03-24 22:38:13 -07:00
bors
4ce257ff19
Auto merge of #92361 - vacuus:doctest-run-test-out-lines, r=CraftSpider
...
Remove `collect` in `doctest::run_test`
2022-03-25 04:01:00 +00:00