about summary refs log tree commit diff
path: root/tests/ui/unsafe
AgeCommit message (Collapse)AuthorLines
2023-12-07recurse into refs when comparing tys for diagnosticsjyn-4/+4
2023-11-24Show number in error message even for one errorNilstrieb-35/+35
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-16recover primary span labelEsteban Küber-1/+2
2023-11-06Visit patterns in THIR let expressionsMatthew Jasper-2/+19
This fixes some THIR unsafety checking errors not being emitted for let expressions in these situations.
2023-11-06Add suggestion to THIR unsafe_op_in_unsafe_fn lintMatthew Jasper-30/+246
2023-11-02Pretty print Fn traits in rustc_on_unimplementedMichael Goulet-1/+1
2023-10-25Make THIR unused_unsafe lint consistent with MIRMatthew Jasper-7/+5
Updates THIR behavior to match the changes from #93678
2023-09-14Auto merge of #112038 - Nemo157:edition-2024-unsafe_op_in_unsafe_fn, r=RalfJungbors-0/+33
Change `unsafe_op_in_unsafe_fn` to be `warn`-by-default from edition 2024 This was previously FCPed: https://github.com/rust-lang/rust/issues/71668#issuecomment-1189396886 There were two blocking requirements: * Fix the `unused_unsafe` lint, done in https://github.com/rust-lang/rust/pull/100081 * Have `cargo fix` able to fix the lint, done in https://github.com/rust-lang/rust/pull/112017
2023-09-06add a regression testmojave2-0/+37
2023-09-06Change unsafe_op_in_unsafe_fn to be warn-by-default from edition 2024Wim Looman-0/+33
2023-08-30Test and note unsafe ctor to fn ptr coercionMichael Goulet-0/+25
Also remove a note that I don't consider to be very useful in context.
2023-08-30rustc_layout_scalar_valid_range makes ctors unsafeMichael Goulet-0/+27
2023-07-15Implement "items do not inherit unsafety" for THIR unsafecksyvb-2/+28
2023-06-13Add test cases for suggestions with unsafe operations contained inside macrosWim Looman-11/+100
2023-06-13Add note about unsafe functions body not being unsafeWim Looman-8/+63
2023-06-13Hide suggestion to wrap function in unsafe blockWim Looman-37/+0
2023-06-13Test that a couple more types of unsafe-ops get a wrapping unsafe block addedWim Looman-1/+69
2023-06-13Add MVP suggestion for `unsafe_op_in_unsafe_fn`Léo Lanteri Thauvin-0/+70
Nemo157 rebase notes: Migrated the changes to the lint into fluent
2023-04-02Move some UI tests into subdirectoriesjyn-0/+89
to avoid going over the existing limit now that the ui-fulldeps tests have been moved to ui.
2023-03-09Also test destructuring assignment.Camille GILLOT-4/+21
2023-03-09Ignore AscribeUserType in unsafeck to avoid duplicate diagnostics.Camille GILLOT-12/+3
2023-03-09Introduce a no-op PlaceMention statement for `let _ =`.Camille GILLOT-4/+21
2023-03-09Add ui test.Camille GILLOT-4/+30
2023-01-11Move /src/test to /testsAlbert Larsan-0/+2151