Michael Goulet
1b5ac39908
dyn* is a valid const
2023-04-04 00:28:05 +00:00
León Orell Valerian Liehr
6567bc9a47
rustdoc: escape GAT args in more cases
2023-04-04 02:09:23 +02:00
Michael Goulet
a368316905
Remove intercrate and mark_ambiguous from Relation
2023-04-04 00:09:12 +00:00
bors
cf7ada217c
Auto merge of #109911 - JohnTitor:rollup-7gjiqim, r=JohnTitor
...
Rollup of 6 pull requests
Successful merges:
- #109783 (Update contributing links for rustc-dev-guide changes)
- #109883 (Add links to <cell.rs>)
- #109889 (Update book, rustc-dev-guide, rust-by-example)
- #109896 (Never consider int and float vars for `FnPtr` candidates)
- #109902 (Add async-await test for #107414 )
- #109903 (Add Chris Denton to `.mailmap`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-04-03 22:29:54 +00:00
Scott McMurray
5c3e5af2ed
Doc-comment IndexVec::from_elem
and use it in a few more places
2023-04-03 14:29:32 -07:00
Michael Goulet
ab0b9356e6
Emit feature error for parenthesized generics in associated type bounds
2023-04-03 21:20:48 +00:00
Yuki Okushi
b691507b73
Rollup merge of #109903 - ChrisDenton:map-me, r=compiler-errors
...
Add Chris Denton to `.mailmap`
2023-04-04 05:52:36 +09:00
Yuki Okushi
52dad9933b
Rollup merge of #109902 - Nilstrieb:107414test, r=compiler-errors
...
Add async-await test for #107414
fixes #107414
r? `@cjgillot`
2023-04-04 05:52:36 +09:00
Yuki Okushi
7d3207be97
Rollup merge of #109896 - Nilstrieb:integers-are-not-fn-ptrs-remember-this-dear-transmuter, r=compiler-errors
...
Never consider int and float vars for `FnPtr` candidates
This solves a regression where `0.0.cmp()` was ambiguous when a custom trait with a `cmp` method was in scope.
For integers it shouldn't be a problem in practice so I wasn't able to add a test.
I'm not sure whether there could be more issues hidden in the shadows as mentioned in the issue, but this should at least fix the problematic regression immediately.
fixes #109892
r? oli-obk
2023-04-04 05:52:35 +09:00
Yuki Okushi
4e25d20f95
Rollup merge of #109889 - ferrocene:pa-update-books, r=ehuss
...
Update book, rustc-dev-guide, rust-by-example
Changes from `rust-lang/book`:
* https://github.com/rust-lang/book/pull/3598
Changes from `rust-lang/rust-by-example`:
* https://github.com/rust-lang/rust-by-example/pull/1695
* https://github.com/rust-lang/rust-by-example/pull/1694
* https://github.com/rust-lang/rust-by-example/pull/1693
* https://github.com/rust-lang/rust-by-example/pull/1688
* https://github.com/rust-lang/rust-by-example/pull/1696
Changes from `rust-lang/rustc-dev-guide`:
* https://github.com/rust-lang/rustc-dev-guide/pull/1655
* https://github.com/rust-lang/rustc-dev-guide/pull/1657
* https://github.com/rust-lang/rustc-dev-guide/pull/1659
* d436bf134e...fca8af6c15
r? `@ehuss`
2023-04-04 05:52:35 +09:00
Yuki Okushi
ed5e2ddeed
Rollup merge of #109883 - skaunov:patch-1, r=thomcc
...
Add links to <cell.rs>
`UnsafeCell` page could benefit too from having links to these most popular structs in the module.
2023-04-04 05:52:34 +09:00
Yuki Okushi
bce7253178
Rollup merge of #109783 - jyn514:dev-guide-links, r=Mark-Simulacrum
...
Update contributing links for rustc-dev-guide changes
Companion PR to https://github.com/rust-lang/rustc-dev-guide/pull/1653 .
- Remove unused reference link in CONTRIBUTING.md
- Change the contributing_url for triagebot to the getting started page
2023-04-04 05:52:34 +09:00
bors
48829ea74b
Auto merge of #109771 - uweigand:s390x-miri-libffi, r=oli-obk
...
Increase libffi version to 3.2 to support s390x
libffi versions prior to 3.2 have no support for s390x, causing the Miri build to fail on our platform.
2023-04-03 19:53:24 +00:00
Chris Denton
07e3bd1ffb
Add Chris Denton to .mailmap
2023-04-03 20:07:35 +01:00
Nilstrieb
9e579cc10c
Add test
2023-04-03 20:45:02 +02:00
Camille GILLOT
a84909c1e7
Enforce VarDebugInfo::Place in MIR validation.
2023-04-03 17:44:12 +00:00
bors
bf41e753ec
Auto merge of #109819 - scottmcm:index-slice, r=WaffleLapkin
...
Use `&IndexSlice` instead of `&IndexVec` where possible
All the same reasons as for `[T]`: more general, less pointer chasing, and `&mut IndexSlice` emphasizes that it doesn't change *length*.
r? `@ghost`
2023-04-03 16:41:49 +00:00
Nilstrieb
ca79b82c6c
Never consider int and float vars for FnPtr
candidates
...
This solves a regression where `0.0.cmp()` was ambiguous when a custom
trait with a `cmp` method was in scope.
FOr integers it shouldn't be a problem in practice so I wasn't able to
add a test.
2023-04-03 15:25:06 +00:00
The 8472
7a70647f19
llvm 16 finally reconizes some additional vec in-place conversions as noops
2023-04-03 15:29:46 +02:00
bors
1767585509
Auto merge of #109756 - cr1901:msp-shift, r=Mark-Simulacrum
...
Update compiler-builtins to 0.1.91 to bring in msp430 shift primitive…
… fixes.
This fixes unsoundness on MSP430 where `compiler-builtins` and LLVM didn't agree on the width of the shift amount argument of the shifting primitives (4 bytes vs 2 bytes). See https://github.com/rust-lang/compiler-builtins/pull/522 for more details.
2023-04-03 13:09:08 +00:00
Pietro Albini
a6431e96b1
update rust-by-example
2023-04-03 14:12:48 +02:00
Pietro Albini
49795b40cf
update rustc dev guide
2023-04-03 14:12:13 +02:00
Mark Rousskov
0da526b5f3
Remove optimal xz settings from CI
...
This is a companion PR to rust-lang/promote-release#58 , which moves the
relevant optimal code to rust-lang/promote-release. As mentioned in the
comments of that PR, this is expected to cut CI costs (and time, though
predominantly felt on fast builders) and reduce wasted resources due to
in-practice single-threaded compression not using the full 8+ vCPU
builders we have available.
2023-04-03 07:44:58 -04:00
Ulrich Weigand
09541b5e1b
Increase libffi version to 3.2 to support s390x
2023-04-03 13:27:51 +02:00
bors
f13ccefb5b
Auto merge of #108448 - ishitatsuyuki:binary-heap, r=Mark-Simulacrum
...
binary_heap: Optimize Extend implementation.
This PR makes the `Extend` implementation for `BinaryHeap` no longer rely on specialization, so that it always use the bulk rebuild optimization that was previously only available for the `Vec` specialization.
2023-04-03 10:30:20 +00:00
Pietro Albini
5d842a6f32
update book
2023-04-03 11:44:06 +02:00
Pietro Albini
bbcbb6fcce
ignore x86-stdcall on mingw
2023-04-03 10:23:16 +02:00
Pietro Albini
48bea636fa
fix solaris ignore
2023-04-03 10:23:15 +02:00
Pietro Albini
bf66ddbf24
fix wrong ignore condition
2023-04-03 10:23:13 +02:00
Pietro Albini
9a2d1b85ed
restore check for both target os and env
...
This is better than the old impl of target.ends_with("windows-gnu"),
because it also catches things like windows-gnullvm
2023-04-03 10:23:12 +02:00
Pietro Albini
5b0a0d8254
add support for ignore-gdb-version
2023-04-03 10:23:11 +02:00
Pietro Albini
8f8873e386
remove unknown xcore arch
2023-04-03 10:23:09 +02:00
Pietro Albini
3602200d50
make 32bit ignore more accurate
2023-04-03 10:23:08 +02:00
Pietro Albini
e045598c68
remove a bunch of unknown archs from the global_asm tests
2023-04-03 09:30:37 +02:00
Pietro Albini
60f2761503
add support for ignore-llvm-version
2023-04-03 09:30:36 +02:00
Pietro Albini
54c4762a86
fix remaining tests
2023-04-03 09:30:35 +02:00
Pietro Albini
91be8cadcb
properly match multiple families
2023-04-03 09:30:33 +02:00
Pietro Albini
4cdb783cb9
migrate existing behavior of matches_arch
2023-04-03 09:30:32 +02:00
Pietro Albini
e085192729
allow some out of tree archs
2023-04-03 09:30:31 +02:00
Pietro Albini
bc991de233
reduce allocations when validating cfgs
2023-04-03 09:30:29 +02:00
Pietro Albini
9cb4373a84
move cfg handling into its own module
2023-04-03 09:30:28 +02:00
Pietro Albini
8eb3def446
handle "ignore-" and "only-"
2023-04-03 09:30:26 +02:00
Pietro Albini
55121a9c46
avoid cloning the whole compiletest configuration for every test
2023-04-03 09:30:23 +02:00
bors
932c173ca1
Auto merge of #109884 - matthiaskrgr:rollup-5wapig9, r=matthiaskrgr
...
Rollup of 7 pull requests
Successful merges:
- #109526 (LIBPATH is used as dylib's path environment variable on AIX)
- #109642 (check for missing codegen backeng config)
- #109722 (Implement read_buf for RustHermit)
- #109856 (fix(middle): emit error rather than delay bug when reaching limit)
- #109868 (Improve PR job names in Github Actions preview)
- #109871 (Include invocation start times)
- #109873 (Move some UI tests into subdirectories)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-04-03 07:27:58 +00:00
Pietro Albini
c075691b82
use --print=all-target-specs-json for stage1+
2023-04-03 09:24:16 +02:00
Pietro Albini
0e6d2053b4
use target specs rather than --print=cfg to discover targets
2023-04-03 09:24:15 +02:00
Pietro Albini
ef2bf6d505
implement --print=all-target-specs-json
2023-04-03 09:24:14 +02:00
Pietro Albini
e592aaa705
remove invalid ignore-powerpc64le
2023-04-03 09:24:12 +02:00
Pietro Albini
64af509377
remove invalid ignore-pretty
2023-04-03 09:24:11 +02:00
Pietro Albini
8dd6c19379
split invalid only-x86-windows into only-x86 and only-windows
2023-04-03 09:24:10 +02:00