about summary refs log tree commit diff
path: root/tests/ui/static
AgeCommit message (Collapse)AuthorLines
2024-02-18Improve wording of static_mut_refObei Sideg-160/+492
Rename `static_mut_ref` lint to `static_mut_refs`.
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-19/+19
2024-02-10rebless after rebaseRalf Jung-0/+1
2024-02-10unstably allow constants to refer to statics and read from immutable staticsRalf Jung-4/+7
2024-02-08Taint borrowck results without running any borrowck if the MIR body was ↵Oli Scherer-32/+9
already tainted
2024-01-07Update test for `E0796` and `static_mut_ref` lintObei Sideg-5/+36
2024-01-06Add test for `E0796` and `static_mut_ref` lintObei Sideg-0/+356
2024-01-05Stabilize THIR unsafeckMatthew Jasper-12/+12
2024-01-05Remove revisions for THIR unsafeckMatthew Jasper-148/+14
This is to make the diff when stabilizing it easier to review.
2023-12-07recurse into refs when comparing tys for diagnosticsjyn-2/+2
2023-11-24Show number in error message even for one errorNilstrieb-13/+13
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-08-30Test and note unsafe ctor to fn ptr coercionMichael Goulet-1/+0
Also remove a note that I don't consider to be very useful in context.
2023-04-19Extend and use `hir::Node::body_id`Maybe Waffle-0/+2
2023-03-12Remove uses of `box_syntax` in rustc and toolsclubby789-9/+10
2023-02-22Convert a hard-warning about named static lifetimes into lint "unused_lifetimes"Zhi Qi-10/+2
Define the `named_static_lifetimes` lint This lint will replace the existing hard-warning. Replace the named static lifetime hard-warning with the new lint Update the UI tests for the `named_static_lifetimes` lint Remove the direct dependency on `rustc_lint_defs` fix build Signed-off-by: Zhi Qi <qizhi@pingcap.com> use "UNUSED_LIFETIMES" instead Signed-off-by: Zhi Qi <qizhi@pingcap.com> update 1 test and fix typo Signed-off-by: Zhi Qi <qizhi@pingcap.com> update tests Signed-off-by: Zhi Qi <qizhi@pingcap.com> fix tests: add extra blank line Signed-off-by: Zhi Qi <qizhi@pingcap.com>
2023-01-30Make structured suggestion for fn casting verboseEsteban Küber-4/+5
2023-01-30Mention fn coercion rules (needs to be expanded)Esteban Küber-0/+1
2023-01-30Modify primary span label for E0308Esteban Küber-5/+5
The previous output was unintuitive to users.
2023-01-25Rollup merge of #106897 - estebank:issue-99430, r=davidtwcoMatthias Krüger-0/+2
Tweak E0597 CC #99430
2023-01-24Add suggestions for function pointersMatthew J Perez-1/+5
- On compiler-error's suggestion of moving this lower down the stack, along the path of `report_mismatched_types()`, which is used by `rustc_hir_analysis` and `rustc_hir_typeck`. - update ui tests, add test - add suggestions for references to fn pointers - modify `TypeErrCtxt::same_type_modulo_infer` to take `T: relate::Relate` instead of `Ty`
2023-01-15Tweak E0597Esteban Küber-0/+2
CC #99430
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1215