bors
7c96e40da8
Auto merge of #109891 - the8472:llvm-16-fixes-79308, r=nikic
...
llvm 16 finally reconizes some additional vec in-place conversions as noops
closes #79308
r? `@nikic`
2023-04-04 08:54:33 +00:00
kadmin
648a35e327
Add ability to transmute with generic consts
...
Previously if the expression contained generic consts and did not have a directly equivalent
type, transmuting the type in this way was forbidden, despite the two sizes being identical.
Instead, we should be able to lazily tell if the two consts are identical, and if so allow them
to be transmuted.
2023-04-04 08:05:15 +00:00
bors
35d06f9c74
Auto merge of #109599 - notriddle:notriddle/use-redundant-glob, r=petrochenkov
...
diagnostics: account for glob shadowing when linting redundant imports
Fixes #92904
2023-04-04 06:41:27 +00:00
Tam Pham
4e5c120f33
Update ui tests involving invalid visibility qualifiers
2023-04-03 22:28:55 -05:00
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
ab0b9356e6
Emit feature error for parenthesized generics in associated type bounds
2023-04-03 21:20:48 +00: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
Nilstrieb
9e579cc10c
Add test
2023-04-03 20:45:02 +02:00
Camille GILLOT
1dde34b831
Bless ui test.
2023-04-03 16:16:14 +00:00
Camille GILLOT
4f97540432
Reinstate confusion note.
2023-04-03 15:59:21 +00:00
Camille GILLOT
4d8ed585f2
Bless mir-opt.
2023-04-03 15:59:21 +00:00
Camille GILLOT
05082f57af
Perform match checking on THIR.
2023-04-03 15:59:21 +00:00
Camille GILLOT
28d74a9b72
Shrink binding span.
2023-04-03 15:59:21 +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
Nikita Popov
73f40d4293
Add codegen tests for issues fixed by LLVM 16
...
Fixes #75978 .
Fixes #99960 .
Fixes #101048 .
Fixes #101082 .
Fixes #101814 .
Fixes #103132 .
Fixes #103327 .
2023-04-03 17:02:57 +02:00
The 8472
7a70647f19
llvm 16 finally reconizes some additional vec in-place conversions as noops
2023-04-03 15:29:46 +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
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
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
Pietro Albini
703ba0ce26
fix ignore-thumbv8m.base
2023-04-03 09:24:07 +02:00
Matthias Krüger
22df7107bd
Rollup merge of #109873 - jyn514:subdirectories, r=compiler-errors
...
Move some UI tests into subdirectories
2023-04-03 08:58:55 +02:00
Matthias Krüger
99a71dc4d6
Rollup merge of #109856 - bvanjoi:fix-issue-109304, r=compiler-errors
...
fix(middle): emit error rather than delay bug when reaching limit
close #109304
2023-04-03 08:58:53 +02:00
bohan
d8a4e7cf51
fix(middle): emit error rather than delay bug when reaching limit
2023-04-03 11:08:14 +08:00
bors
33289132ec
Auto merge of #109770 - jyn514:run-make-fulldeps, r=Mark-Simulacrum
...
Move almost all run-make-fulldeps tests to run-make
They pass fine, and this avoids having to build the compiler twice.
There are few enough tests left that I think it should be possible to get rid of this test suite altogether, but I expect this PR to fail at least a few times in bors and want to get it merged before tackling further changes. cc https://github.com/rust-lang/rust/pull/83775
Fixes https://github.com/rust-lang/rust/issues/66085 . Fixes https://github.com/rust-lang/rust/issues/83773 .
2023-04-03 01:34:05 +00:00
jyn
01b75e20f2
Move some UI tests into subdirectories
...
to avoid going over the existing limit now that the ui-fulldeps tests have
been moved to ui.
2023-04-02 19:42:30 -04:00
jyn
c45037b956
try to fix test-various
2023-04-02 17:54:24 -04:00
clubby789
696f182191
Fix non_exhaustive_omitted_patterns lint span
2023-04-02 16:37:23 +01:00
bors
a5a690cf4b
Auto merge of #109008 - clubby789:drop-elaborate-array, r=davidtwco
...
Drop array patterns using subslices
Fixes #109004
Drops contiguous subslices of an array when moving elements out with a pattern, which improves perf for large arrays
r? `@compiler-errors`
2023-04-02 12:17:52 +00:00
Mu42
80e4285531
Make each idx is used once
2023-04-02 11:41:50 +08:00
Mu42
bbfbecd59f
Do not repeat idx
2023-04-02 10:48:01 +08:00
clubby789
46f7d3deb7
Fix non_exhaustive_omitted_patterns on arguments
2023-04-01 19:15:24 +01:00
Michael Howell
000e94e67d
diagnostics: account for glob shadowing when linting redundant imports
...
Co-Authored-By: Vadim Petrochenkov <vadim.petrochenkov@gmail.com >
2023-04-01 11:11:21 -07:00
bors
b9535c0b7d
Auto merge of #109801 - aliemjay:test-implied-normalization, r=petrochenkov
...
add test for normalization in implied bounds query
See https://github.com/rust-lang/rust/issues/109799 .
2023-04-01 04:29:53 +00:00
Tom Martin
86230dcde6
Bless
2023-04-01 03:52:58 +01:00
bors
fadf164d8d
Auto merge of #109165 - aliemjay:fix-ice-annotation, r=davidtwco
...
allow ReError in CanonicalUserTypeAnnotation
Why not? we already allow `TyKind::Error`.
Fixes #109072 .
2023-03-31 23:15:52 +00:00
bors
5e1d3299a2
Auto merge of #109824 - GuillaumeGomez:rollup-i5r4uts, r=GuillaumeGomez
...
Rollup of 7 pull requests
Successful merges:
- #109104 (rustdoc: Fix invalid suggestions on ambiguous intra doc links v2)
- #109443 (Move `doc(primitive)` future incompat warning to `invalid_doc_attributes`)
- #109680 (Fix subslice capture in closure)
- #109798 (fluent_messages macro: don't emit the OS error in a note)
- #109805 (Source map cleanups)
- #109818 (rustdoc: Add GUI test for jump to collapsed item)
- #109820 (rustdoc-search: update docs for comma in `?` help popover)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-03-31 20:38:06 +00:00
Guillaume Gomez
32842e87b1
Rollup merge of #109818 - GuillaumeGomez:test-collapsed-item, r=notriddle
...
rustdoc: Add GUI test for jump to collapsed item
Part of https://github.com/rust-lang/rust/issues/66181 .
I updated `browser-ui-test` version because I needed to add a new command `property`: https://github.com/GuillaumeGomez/browser-UI-test/pull/452 .
r? `@notriddle`
2023-03-31 22:32:51 +02:00
Guillaume Gomez
bd4e3f37da
Rollup merge of #109798 - est31:ftl_test_note, r=davidtwco
...
fluent_messages macro: don't emit the OS error in a note
This makes it possible to make the normalization of the error message precise, allowing us to not normalize all notes away. See https://github.com/rust-lang/rust/pull/109700#discussion_r1152489053
2023-03-31 22:32:50 +02:00
Guillaume Gomez
45fcb6fd7c
Rollup merge of #109680 - clubby789:array-subslice-2229, r=davidtwco
...
Fix subslice capture in closure
Fixes #109298 by refining captures in the same way for Subslices and Indexes. The comment `// we never capture this` seems to have been inaccurate, as changing it to an assert causes many test failures
`@rustbot` label +A-closures
2023-03-31 22:32:49 +02:00
Guillaume Gomez
6c93c63771
Rollup merge of #109443 - GuillaumeGomez:doc-primitive-hard-error, r=notriddle
...
Move `doc(primitive)` future incompat warning to `invalid_doc_attributes`
Fixes #88070 .
It's been a while since this was turned into a "future incompatible lint" so I think we can now turn it into a hard error without problem.
r? `@jyn514`
2023-03-31 22:32:49 +02:00
Guillaume Gomez
8fe5b56b66
Rollup merge of #109104 - GuillaumeGomez:fix-invalid-suggestion-ambiguous-intra-doc2, r=oli-obk,notriddle
...
rustdoc: Fix invalid suggestions on ambiguous intra doc links v2
Fixes https://github.com/rust-lang/rust/issues/108653 .
This is another approach to fixing the same issue. This time, we keep the computed information around instead of re-computing it.
Strangely enough, the order for ambiguities seem to have been changed. Not an issue but it creates a lot of diff...
So which version do you prefer?
r? `@notriddle`
2023-03-31 22:32:48 +02:00