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