bors
223b58e484
Auto merge of #93957 - SaltyKitkat:stablize_const_ptr_offset, r=dtolnay
...
Stabilize const_ptr_offset
Close #71499
2022-03-27 07:01:29 +00:00
Esteban Kuber
157c67b7a8
Handle ,
to ;
substitution in arg params
2022-03-27 06:05:18 +00:00
David Tolnay
1431c76c56
Bump the ripgrep commit exercised by cargotest
2022-03-26 21:55:19 -07:00
bors
185a3f0a11
Auto merge of #95351 - Dylan-DPC:rollup-o1il7tx, r=Dylan-DPC
...
Rollup of 5 pull requests
Successful merges:
- #91981 (Recover suggestions and useful information lost in previous PR)
- #93469 (Skip pointing out ambiguous impls in alloc/std crates too in inference errors)
- #95335 (Move resolve_path to rustc_builtin_macros and make it private)
- #95340 (interpret: with enforce_number_validity, ensure integers are truly Scalar::Int (i.e., no pointers))
- #95341 (ARMv6K Horizon OS has_thread_local support)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-03-27 04:20:07 +00:00
David Tolnay
333756f1c5
Bump const_ptr_offset stabilization to 1.61
2022-03-26 21:15:16 -07:00
Dylan DPC
2ab4ad5f26
Rollup merge of #95341 - Meziu:armv6k-3ds-target, r=nagisa
...
ARMv6K Horizon OS has_thread_local support
cc. ```@ian-h-chamberlain```
cc. ```@AzureMarker```
Being an ARM target, it has always had built-in support for `#[thread_local]`. This PR comes in just now because we were testing `std::thread` support with `thread_local_dtor`s. This will hopefully be the last PR for the target specification, unless anymore features will be needed as time goes on.
2022-03-27 05:36:11 +02:00
Dylan DPC
178a09e672
Rollup merge of #95340 - RalfJung:pnvi, r=oli-obk
...
interpret: with enforce_number_validity, ensure integers are truly Scalar::Int (i.e., no pointers)
This is required for https://github.com/rust-lang/miri/pull/2040
r? ```@oli-obk```
2022-03-27 05:36:10 +02:00
Dylan DPC
979c8e885e
Rollup merge of #95335 - Badel2:resolve-path, r=Dylan-DPC
...
Move resolve_path to rustc_builtin_macros and make it private
Fixing a FIXME introduced by `@jyn514` in #85457
2022-03-27 05:36:09 +02:00
Dylan DPC
c6bb219fc4
Rollup merge of #93469 - compiler-errors:issue-93450, r=estebank
...
Skip pointing out ambiguous impls in alloc/std crates too in inference errors
This generalizes the logic in `annotate_source_of_ambiguity` to skip printing ambiguity errors traits in `alloc` and `std` as well, not just `core`.
While this does spot-fix the issue mentioned below, it would be nicer to generalize this logic, for example to detect when the trait predicate's `self_ty` has any numerical inference variables. Is it worthwhile to scrap this solution for one like that?
Fixes #93450
r? `@estebank`
feel free to reassign
2022-03-27 05:36:08 +02:00
Dylan DPC
4435bb0704
Rollup merge of #91981 - estebank:tweakaroo, r=lcnr
...
Recover suggestions and useful information lost in previous PR
Follow up to #91898 .
2022-03-27 05:36:08 +02:00
Esteban Kuber
6874bd27f5
Provide suggestion for missing >
in a type parameter list
...
When encountering an inproperly terminated type parameter list, provide
a suggestion to close it after the last non-constraint type parameter
that was successfully parsed.
Fix #94058 .
2022-03-27 02:50:04 +00:00
Esteban Kuber
f479e262d6
review comments and rebase
2022-03-27 02:40:07 +00:00
Esteban Kuber
1db02b8a43
Change wording of missing return type suggestion
2022-03-27 02:20:17 +00:00
Esteban Kuber
b09420f95a
Drive by: handle references in same_type_modulo_infer
2022-03-27 02:20:17 +00:00
Esteban Kuber
1c85987274
Point (again) to more expressions with their type, even if not fully resolved
2022-03-27 02:20:17 +00:00
Esteban Kuber
c4d741fa16
Also resolve const
param suggestion
2022-03-27 02:20:17 +00:00
Esteban Kuber
474626af50
Eagerly replace {integer}
/{float}
with i32
/f64
for suggestion
2022-03-27 02:20:16 +00:00
bors
06c3c62a52
Auto merge of #95338 - bjorn3:sync_cg_gcc-2022-03-26, r=antoyo
...
Sync rustc_codegen_gcc
r? `@ghost`
`@rustbot` label +A-codegen +A-gcc +T-compiler
cc `@antoyo`
2022-03-27 01:55:15 +00:00
Guillaume Gomez
bd51f174ed
Remove SelectionContext::allow_negative_impls field
2022-03-27 03:01:34 +02:00
Vadim Petrochenkov
a7d7a268e9
resolve: Simplify some diagnostic code to avoid an ICE
2022-03-27 02:43:29 +03:00
bors
551b4fa395
Auto merge of #92472 - petrochenkov:nowrapident, r=Aaron1011
...
proc-macro: Stop wrapping `ident` matchers into groups
`ident` is always a single token and can be treated in the same way as `tt`.
r? `@Aaron1011`
2022-03-26 23:01:12 +00:00
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 bc881e83d1cced71046e844fa55c0b0e9f9af382
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