Oli Scherer
3568bdc6cd
Revert "add DefId
to unsafety violations and display function path in E0133"
...
This reverts commit 8b8f6653cf
.
2022-04-26 14:49:28 +00:00
Emil Gardström
2e47271cb8
only show a simple description in E0133 span label
2022-04-24 18:33:07 +02:00
Emil Gardström
8b8f6653cf
add DefId
to unsafety violations and display function path in E0133
...
this enables consumers to access the function definition that was reported to be unsafe
2022-04-24 18:33:06 +02:00
Dylan DPC
9010879c0a
Rollup merge of #95374 - RalfJung:assert_uninit_valid, r=Mark-Simulacrum
...
assert_uninit_valid: ensure we detect at least arrays of uninhabited types
We can't easily extend this check to *all* arrays (Cc https://github.com/rust-lang/rust/pull/87041 ), but it turns out the existing check already catches arrays of uninhabited types. So let's make sure it stays that way by adding them to the test.
2022-04-09 05:58:41 +02:00
Pietro Albini
466720c777
bless tests
2022-04-06 09:29:58 +02:00
Ralf Jung
e132077db7
assert_uninit_valid: ensure we detect at least arrays of uninhabited types
2022-03-27 14:10:19 -04:00
Deadbeef
1f3ee7f32e
Rename ~const Drop
to ~const Destruct
2022-03-21 17:04:03 +11:00
Michael Goulet
1ab97dbc52
add note suggesting that predicate is satisfied but is not const
2022-01-26 19:09:44 -08:00
Deadbeef
fdf7d01088
Improve selection errors for ~const
trait bounds
2022-01-26 00:48:01 +11:00
David Koloski
ea68758299
Add needs-unwind to tests that depend on panicking
...
This directive isn't automatically set by compiletest or x.py, but can
be turned on manually for targets that require it.
2021-12-09 22:03:52 +00:00
Richard Lowe
dbc3bf48c4
treat illumos like solaris in failing ui tests which need it
2021-11-04 17:00:19 -05:00
Michael Howell
8520105464
fix(rustc_typeck): report function argument errors on matching type
...
Fixes #90101
2021-10-25 12:23:52 -07:00
Mark Rousskov
8485e6fdec
Revert "Stabilize arbitrary_enum_discriminant
"
...
This reverts commit 7a62f29f31
.
2021-10-14 10:57:56 -04:00
Deadbeef
26b78ccd31
Fix const stability
2021-10-14 07:07:34 +00:00
Deadbeef
6770dbd4b5
Avoid tupling at the callee
2021-10-14 06:18:53 +00:00
Deadbeef
5387b6542f
Add const_eval_select intrinsic
2021-10-12 05:42:23 +00:00
est31
6550021124
Remove box syntax from most places in src/test outside of the issues dir
2021-09-26 04:07:44 +02:00
Alik Aslanyan
9da27f0429
Disable visible path calculation for PrettyPrinter in Ok path of compiler
2021-09-21 00:41:44 +04:00
Deadbeef
7a62f29f31
Stabilize arbitrary_enum_discriminant
2021-07-28 18:08:34 +08:00
Ralf Jung
4759090d15
adjust tests
2021-07-14 18:17:49 +02:00
Scott McMurray
d0644947a3
Bless a UI test
2021-07-08 15:16:37 -07:00
Scott McMurray
2456495a26
Stop generating alloca
s+memcmp
for simple array equality
2021-07-08 14:55:54 -07:00
Yuki Okushi
2c6268678d
Move some UI tests to more suitable subdirs
2021-06-30 06:41:10 +09:00
Felix S. Klock II
f08f933b7c
Regression test for issue 84297.
2021-06-04 16:44:28 -04:00
LeSeulArtichaut
d1f0e9f65c
Test THIR unsafeck for unsafe ops in closures
2021-05-27 21:04:44 +02:00
LeSeulArtichaut
0e1afc4501
Check for use of mutable/extern statics in THIR unsafeck
2021-05-21 19:51:53 +02:00
LeSeulArtichaut
a95b342f02
Test -Zthir-unsafeck
for unsafe function calls
2021-05-11 20:35:38 +02:00
Tyler Mandry
947ad5838c
Fix up/ignore failing ui tests on fuchsia
2021-05-06 02:49:34 +00:00
bors
6765010495
Auto merge of #84065 - c410-f3r:tests-tests-tests, r=petrochenkov
...
Move some tests to more reasonable directories - 6
cc #73494
r? `@petrochenkov`
git mv bad/bad-const-type.* static/
git mv bad/bad-crate-name.* extern
git mv bad/bad-env-capture* fn/
git mv bad/bad-expr-lhs.* expr/
git mv bad/bad-expr-path* expr/
git mv bad/bad-extern-link-attrs.* extern/
git mv bad/bad-intrinsic-monomorphization.* intrinsics/
git mv bad/bad-lint-cap* lint/
git mv bad/bad-main.* fn
git mv bad/bad-method-typaram-kind.* type/
git mv bad/bad-mid-path-type-params.* fn
git mv bad/bad-module.* modules/
git mv bad/bad-sized.* type/
git mv bad/bad-type-env-capture.* fn
2021-04-18 04:53:18 +00:00
Caio
4e6d6abc6a
Move some tests to more reasonable directories - 6
2021-04-17 18:53:54 -03:00
Charles Lew
fc357039f9
Remove #[main] attribute.
2021-04-16 13:04:02 +08:00
Ralf Jung
db03b58f23
remove move_val_init leftovers
2020-12-31 10:53:37 +01:00
Lzu Tao
6bfe27a3e0
Drop support for cloudabi targets
2020-11-22 17:11:41 -05:00
Mara Bos
9890217c0e
Fix ui test for updated core::panic behaviour.
...
It now throws a &str instead of a String.
2020-10-19 22:47:38 +02:00
Ralf Jung
6f881b3b7d
might_permit_raw_init: also check aggregate fields
2020-09-26 12:29:01 +02:00
wangtheo
8df79fcc76
Remove trailing whitespace
2020-07-13 09:44:48 -04:00
Teddy_Wang
eac809244e
Removed trailing whitespace
2020-07-13 01:52:10 -04:00
Teddy_Wang
5ff7e1ad2c
Added ui tests for volatile and nearby intrinsics
2020-07-13 00:47:09 -04:00
Yuki Okushi
077a7f741f
Add test for issue-28575
2020-04-17 06:16:14 +09:00
Dylan DPC
8993358e77
Rollup merge of #70081 - lcnr:issue68387, r=varkor
...
add `unused_braces` lint
Add the lint `unused_braces` which is warn by default.
`unused_parens` is also extended and now checks anon consts.
closes #68387
r? @varkor
2020-04-01 00:27:20 +02:00
Bastian Kauschke
698b20eeda
update tests
2020-03-31 19:01:49 +02:00
Daniel Frampton
d19562062c
Ensure there are versions of test code for aarch64 windows
2020-03-19 16:00:45 -07:00
Ralf Jung
d49306da13
implement zeroed and uninitialized with MaybeUninit
2020-03-11 14:23:13 +01:00
Ralf Jung
bfe593e03a
clarify a comment in the test
2020-02-29 09:29:51 +01:00
Ralf Jung
729f4cd9ae
we cannot short-circuit just becuase the Abi seems harmless
...
also add tests for ScalarPair enums
2020-02-29 09:27:25 +01:00
Ralf Jung
b133d6776f
make it even more conservative, and note some FIXMEs
2020-02-29 09:27:25 +01:00
Ralf Jung
df6a3a0ed2
test some more things that should not panic
2020-02-29 09:27:25 +01:00
Ralf Jung
503026b622
mem::zeroed/uninit: panic on types that do not permit zero-initialization
2020-02-29 09:27:25 +01:00
Umesh Kalappa
eb6d757cb0
UI failures fix
2019-10-23 10:19:45 -07:00
Thomas Lively
2bf59bea48
Upgrade Emscripten targets to use upstream LLVM backend
...
- Compatible with Emscripten 1.38.46-upstream or later upstream.
- Refactors the Emscripten target spec to share code with other wasm
targets.
- Replaces the old incorrect wasm32 C call ABI with the correct one,
preserving the old one as wasm32_bindgen_compat for wasm-bindgen
compatibility.
- Updates the varargs ABI used by Emscripten and deletes the old one.
- Removes the obsolete wasm32-experimental-emscripten target.
- Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649 .
2019-10-16 17:06:48 -07:00