Lukas Wirth
23d5231607
Use non-2015 edition paths in tests that do not test for their resolution
...
This allows for testing these tests on editions other than 2015
2025-06-03 10:13:33 +02:00
Michael Goulet
77e35944af
Rollup merge of #140591 - Kivooeo:new-fix-five, r=davidtwco
...
Fix malformed suggestion for E0061 when method is a macro token in macro context
fixes #140512
before
```rust
3 - <Self>::$method(8)
3 + <Self>::<Self>::$method(8, /* u8 */)
```
now
```rust
3 | <Self>::$method(8, /* u8 */)
| ++++++++++
```
2025-05-27 13:01:35 +02:00
Kivooeo
3cd065d3d3
macro expansion issue
2025-05-07 21:51:41 +05:00
mejrs
9a574b0871
Move some tests out of tests/ui
2025-05-03 17:22:52 +02:00
Matthias Krüger
051e94e60c
Rollup merge of #140476 - mejrs:test3, r=jieyouxu
...
chore: delete unused ui/auxiliary crates
It appears that all the tests that used it have been moved to tests/ui/editions/ (or elsewhere) already.
r? `````@jieyouxu`````
2025-04-30 22:36:42 +02:00
mejrs
9b33cea260
Delete unused ui/auxiliary crates
2025-04-29 18:42:10 +02:00
mejrs
a917de445b
Move tests from /ui directory
2025-04-29 18:19:26 +02:00
Jieyou Xu
40b73322b9
tests: adjust some augmented-assignment* tests
...
- `tests/ui/augmented-assignment-feature-gate-cross.rs`:
- This was *originally* to feature-gate overloaded OpAssign
cross-crate, but now let's keep it as a smoke test.
- Renamed as `augmented-assignment-cross-crate.rs`.
- Relocated under `tests/ui/binop/`.
- `tests/ui/augmented-assignments.rs`:
- Documented test intent.
- Moved under `tests/ui/borrowck/`.
- `tests/ui/augmented-assignment-rpass.rs`:
- Renamed to drop the `-rpass` suffix, since this was leftover from
when `run-pass` test suite was a thing.
- Moved under `tests/ui/binop/`.
2025-04-19 18:42:24 +08:00
Jack Wrenn
a122dde217
do not implement unsafe auto traits for types with unsafe fields
...
If a type has unsafe fields, its safety invariants are not simply
the conjunction of its field types' safety invariants. Consequently,
it's invalid to reason about the safety properties of these types
in a purely structural manner — i.e., the manner in which `auto`
traits are implemented.
Makes progress towards #132922 .
2024-12-05 23:52:21 +00:00
Luca Versari
9022bb2d6f
Implement the unsafe-fields RFC.
...
Co-Authored-By: Jacob Pratt <jacob@jhpratt.dev>
2024-11-21 19:32:07 +01:00
Ralf Jung
b07ed6ab16
stability: remove skip_stability_check_due_to_privacy
2024-11-18 08:07:46 +01:00
Ralf Jung
ffad9aac27
mark some target features as 'forbidden' so they cannot be (un)set
...
For now, this is just a warning, but should become a hard error in the future
2024-11-04 22:56:47 +01:00
Jubilee Young
d89500843c
Move 100 entries from tests/ui into subdirs
...
- Move super-fast-paren-parsing test into ui/parser
- Move stmt_expr_attrs test into ui/feature-gates
- Move macro tests into ui/macros
- Move global_asm tests into ui/asm
- Move env tests into ui/process
- Move xcrate tests into ui/cross-crate
- Move unop tests into ui/unop
- Move backtrace tests into ui/backtrace
- Move check-static tests into ui/statics
- Move expr tests into ui/expr
- Move optimization fuel tests into ui/fuel
- Move ffi attribute tests into ui/ffi-attrs
- Move suggestion tests into ui/suggestions
- Move main tests into ui/fn-main
- Move lint tests into ui/lint
- Move repr tests into ui/repr
- Move intrinsics tests into ui/intrinsics
- Move tool lint tests into ui/tool-attributes
- Move return tests into ui/return
- Move pattern tests into ui/patttern
- Move range tests into ui/range
- Move foreign-fn tests into ui/foreign
- Move orphan-check tests into ui/coherence
- Move inference tests into ui/inference
- Reduce ROOT_ENTRY_LIMIT
2024-05-20 19:55:59 -07:00
Jubilee Young
def6b99b4a
move rustc-rust-log test into ui/rustc-env
2024-05-19 18:27:53 -07:00
Ben Kimock
7457a0d441
Use the rustc_private libc less in tests
2024-04-15 08:54:11 -04:00
许杰友 Jieyou Xu (Joe)
ec2cc761bc
[AUTO-GENERATED] Migrate ui tests from // to //@ directives
2024-02-16 20:02:50 +00:00
Caio
69a5264a52
Move some tests
2024-02-09 15:43:08 -03:00
jyn
2ffb0de8cf
Move most ui-fulldeps tests to ui
...
They pass fine. Only tests that required `extern crate rustc_*` or were
marked `ignore-stage1` have been keep in fulldeps.
2023-04-13 22:08:07 -05: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
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00