rust/tests/ui/static
Zhi Qi ce2ae62d68 Convert a hard-warning about named static lifetimes into lint "unused_lifetimes"
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-02-22 09:44:26 +08:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-const-type.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
bad-const-type.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-5216.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-5216.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-18118-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-18118-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-18118.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-18118.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-24843.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-34194.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nested_item_main.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
refer-to-other-statics-by-value.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
safe-extern-statics-mut.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
safe-extern-statics-mut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
safe-extern-statics-mut.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
safe-extern-statics.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
safe-extern-statics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
safe-extern-statics.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static_sized_requirement.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-closures.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-closures.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-drop-scope.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-drop-scope.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-extern-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-items-cant-move.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-items-cant-move.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-lifetime-bound.rs Convert a hard-warning about named static lifetimes into lint "unused_lifetimes" 2023-02-22 09:44:26 +08:00
static-lifetime-bound.stderr Convert a hard-warning about named static lifetimes into lint "unused_lifetimes" 2023-02-22 09:44:26 +08:00
static-lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-lifetime.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-method-privacy.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-method-privacy.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-bad-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-bad-types.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-foreign-requires-unsafe.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-foreign-requires-unsafe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-foreign-requires-unsafe.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-not-constant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-not-constant.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-not-pat.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-not-pat.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-requires-unsafe.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-requires-unsafe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-requires-unsafe.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-priv-by-default2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-priv-by-default2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-reference-to-fn-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-reference-to-fn-1.stderr Make structured suggestion for fn casting verbose 2023-01-30 21:55:25 +00:00
static-reference-to-fn-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-reference-to-fn-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-region-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-region-bound.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-vec-repeat-not-constant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-vec-repeat-not-constant.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
thread-local-in-ctfe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
thread-local-in-ctfe.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00