Jubilee Young
a14404a028
Sync core::simd up to rust-lang/portable-simd@2e081db92a
2022-07-20 17:57:56 -07:00
The Atelier
2e081db92a
Fix doctest imports using as_crate feature
...
Within core, `use self::` does not work to import these items.
And because core is not core_simd, neither does the existing `use`.
So, use this quirky hack instead, switching the import on a feature.
2022-07-20 17:55:47 -07:00
bors
2f6c39005c
Auto merge of #12827 - Veykril:be-lazy, r=Veykril
...
internal: Construct fewer `AstIdMap`s in lowering
2022-07-21 00:11:18 +00:00
Lukas Wirth
7bd2e305d6
Simplify
2022-07-21 02:06:26 +02:00
Lukas Wirth
c83f14a44a
Remove AstIdMap from Expander as it is seldom needed
2022-07-21 02:01:07 +02:00
Ralf Jung
d46dfa25d4
detect bad vptrs on dyn calls
2022-07-20 19:52:10 -04:00
bors
be9cfb307e
Auto merge of #99058 - michaelwoerister:remove-stable-set-and-map, r=nagisa
...
Remove the unused StableSet and StableMap types from rustc_data_structures.
The current implementation is not "stable" in the same sense that `HashStable` and `StableHasher` are stable, i.e. across compilation sessions. So, in my opinion, it's better to remove those types (which are basically unused anyway) than to give the wrong impression that these are safe for incr. comp.
I plan to provide new "stable" collection types soon that can be used to replace `FxHashMap` and `FxHashSet` in query results (see [draft](69d03ac7a7
)). It's unsound that `HashMap` and `HashSet` implement `HashStable` (see https://github.com/rust-lang/rust/issues/98890 for a recent P-critical bug caused by this) -- so we should make some progress there.
2022-07-20 22:19:30 +00:00
Ralf Jung
d07ed02783
various nits from review
2022-07-20 17:12:08 -04:00
Ralf Jung
9927b3173b
detect bad vtables on an upcast
2022-07-20 17:12:08 -04:00
Ralf Jung
0318f07bdd
various nits from review
2022-07-20 17:12:08 -04:00
Ralf Jung
9cbd1066d7
add range metadata to alignment loads
2022-07-20 17:12:08 -04:00
bjorn3
399e020b96
Move vtable_size and vtable_align impls to cg_ssa
2022-07-20 17:12:08 -04:00
bjorn3
f8feed7d27
Implement vtable_size and vtable_align intrinsics for cg_clif
2022-07-20 17:12:07 -04:00
bjorn3
1afea1f86a
Implement vtable_size and vtable_align intrinsics for cg_clif
2022-07-20 17:12:07 -04:00
Ralf Jung
6c9abfa0f3
slightly cleaner, if more verbose, vtable handling in codegen backends
2022-07-20 17:12:07 -04:00
Ralf Jung
b4c377e750
bless some tests
2022-07-20 17:12:07 -04:00
Ralf Jung
a1b172224c
consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable)
2022-07-20 17:12:07 -04:00
Ralf Jung
adf6d37d83
slightly cleaner, if more verbose, vtable handling in codegen backends
2022-07-20 17:12:07 -04:00
Ralf Jung
3dad266f40
consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable)
2022-07-20 17:12:07 -04:00
Ralf Jung
114da84996
use extern type for extra opaqueness
2022-07-20 17:12:07 -04:00
Ralf Jung
5e840c5c8c
incorporate some review feedback
2022-07-20 17:12:07 -04:00
Ralf Jung
8affef2ccb
add intrinsic to access vtable size and align
2022-07-20 17:12:07 -04:00
Ralf Jung
b5a32d01f4
we seem to monomorphize fewer vtables by default now, so adjust some tests
2022-07-20 17:12:06 -04:00
Ralf Jung
fe00573324
make use of symbolic vtables in interpreter
2022-07-20 17:12:04 -04:00
Ralf Jung
b5cce74278
rename get_global_alloc to try_get_global_alloc
2022-07-20 17:09:22 -04:00
Ralf Jung
a10d8e4581
rename get_global_alloc to try_get_global_alloc
2022-07-20 17:09:22 -04:00
Michael Goulet
cd3204d1a2
Normalize the arg spans to be within the call span
2022-07-20 21:09:19 +00:00
Ralf Jung
1c77e2b922
add a Vtable kind of symbolic allocations
2022-07-20 16:57:31 -04:00
Ralf Jung
da5e4d73f1
add a Vtable kind of symbolic allocations
2022-07-20 16:57:31 -04:00
Ralf Jung
13877a965d
prune raw pointer read and write methods from Miri backtraces
2022-07-20 16:42:20 -04:00
Ralf Jung
2b269cad43
miri: prune some atomic operation details from stacktrace
2022-07-20 16:34:24 -04:00
benluelo
1993a5f7a8
Add map_continue and continue_value combinators to ControlFlow
...
Fix type error
Fix continue_value doc comment
2022-07-20 16:32:09 -04:00
Camille GILLOT
bfd0435fd7
Introduce AnonymousLifetimeRib::Elided and use it for implied 'static.
2022-07-20 22:12:12 +02:00
bors
d68e7ebc38
Auto merge of #99520 - matthiaskrgr:rollup-05uuv5s, r=matthiaskrgr
...
Rollup of 9 pull requests
Successful merges:
- #99212 (introduce `implied_by` in `#[unstable]` attribute)
- #99352 (Use `typeck_results` to avoid duplicate `ast_ty_to_ty` call)
- #99355 (better error for bad depth parameter on macro metavar expr)
- #99480 (Diagnostic width span is not added when '0$' is used as width in format strings)
- #99488 (compiletest: Allow using revisions with debuginfo tests.)
- #99489 (rustdoc UI fixes)
- #99508 (Avoid `Symbol` to `String` conversions)
- #99510 (adapt assembly/static-relocation-model test for LLVM change)
- #99516 (Use new tracking issue for proc_macro::tracked_*.)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-07-20 19:37:17 +00:00
Josh Stone
bd0474d24a
Fix the stable version of AsFd for Arc<T>
and Box<T>
...
These merged in #97437 for 1.64.0, apart from the main `io_safety`
feature that stabilized in 1.63.0.
2022-07-20 12:09:49 -07:00
Deadbeef
8464396a19
Fix hack that remaps env constness.
...
WARNING: might have perf implications.
Are there any more problems with having a constness
in the `ParamEnv` now? :)
2022-07-20 17:33:45 +00:00
Amos Wenger
480f555334
implement literal_from_str (poorly)
2022-07-20 19:23:25 +02:00
Amos Wenger
d25b61030e
Add literal/ident conversion, tests pass
2022-07-20 19:18:39 +02:00
Amos Wenger
191db9fed4
stub missing APIs
2022-07-20 19:18:39 +02:00
Amos Wenger
00bc060ba3
Fix imports, delete removed interfaces
2022-07-20 19:18:39 +02:00
Amos Wenger
e009cdc8d9
Move token_stream to separate module
2022-07-20 19:18:39 +02:00
Amos Wenger
315b0a7254
Add sysroot-abi feature, copy 1.64 ABI fo rnow
2022-07-20 19:18:39 +02:00
Matthias Krüger
a5a681100c
Rollup merge of #99516 - m-ou-se:proc-macro-tracked-tracking-issue, r=Mark-Simulacrum
...
Use new tracking issue for proc_macro::tracked_*.
2022-07-20 18:58:22 +02:00
Matthias Krüger
2638f3a8d7
Rollup merge of #99510 - krasimirgg:movb, r=nikic
...
adapt assembly/static-relocation-model test for LLVM change
After f0dd12ec5c
LLVM emits `movzbl` instead. Adapted this test case accordingly.
Discovered in our experimental rust + llvm at head ci:
https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/12104#0182195b-8791-4f88-853c-bb23a1e4b54c
2022-07-20 18:58:21 +02:00
Matthias Krüger
4b21ad26df
Rollup merge of #99508 - TaKO8Ki:avoid-symbol-to-string-conversion-in-BuiltinLintDiagnostics, r=compiler-errors
...
Avoid `Symbol` to `String` conversions
follow-up to #99342
2022-07-20 18:58:20 +02:00
Matthias Krüger
73ef81dcea
Rollup merge of #99489 - GuillaumeGomez:gui-fixes, r=notriddle
...
rustdoc UI fixes
The first commit fixes this bug:
![Screenshot from 2022-07-20 02-54-26](https://user-images.githubusercontent.com/3050060/179879053-fc34f27a-6248-4f5c-9fcb-80adbfc1598c.png )
![Screenshot from 2022-07-20 03-00-03](https://user-images.githubusercontent.com/3050060/179879056-1c0973a0-d535-44e7-a48e-bad692034467.png )
The second one fixes the missing change of border color when the search input is focused.
cc `@jsha`
r? `@notriddle`
2022-07-20 18:58:19 +02:00
Matthias Krüger
a0c696484f
Rollup merge of #99488 - luqmana:debuginfo-revisions, r=tmiasko
...
compiletest: Allow using revisions with debuginfo tests.
A small wart that came up in https://github.com/rust-lang/rust/pull/95685#issuecomment-1089184951 .
2022-07-20 18:58:18 +02:00
Matthias Krüger
9e197b75f0
Rollup merge of #99480 - miam-miam100:arg-format, r=oli-obk
...
Diagnostic width span is not added when '0$' is used as width in format strings
When the following code is run rustc does not add diagnostic spans for the width argument. Such spans are necessary for a clippy lint that I am currently writing.
```rust
println!("Hello {1:0$}!", 5, "x");
// ^^
// Should have a span here
```
2022-07-20 18:58:17 +02:00
Matthias Krüger
82d9ae9ca1
Rollup merge of #99355 - compiler-errors:macro-metavar-less-than-zero, r=petrochenkov
...
better error for bad depth parameter on macro metavar expr
Fixes #99060
2022-07-20 18:58:16 +02:00
Matthias Krüger
43f6366da4
Rollup merge of #99352 - compiler-errors:tighter-spans-on-generic-call, r=spastorino
...
Use `typeck_results` to avoid duplicate `ast_ty_to_ty` call
Comes with a bunch of improvements in spans 😍
2022-07-20 18:58:15 +02:00