rust/src/test/ui/inference
Dylan DPC 54ea8e1b82
Rollup merge of #81922 - magurotuna:issue81522, r=matthewjasper
Let `#[allow(unstable_name_collisions)]` work for things other than function

Fixes #81522

In addition to the report in #81522, currently `#[allow(unstable_name_collisions)]` doesn't suppress the corresponding diagnostics even if this attribute is appended to an expression statement or a let statement. It seems like this is because the wrong `HirId` is passed to `struct_span_lint_hir`.
It's fixed in this PR, and a regression test for it is also added.
2021-04-05 13:03:36 +02:00
..
auxiliary Account for associated consts in the "unstable assoc item name colission" lint 2021-02-24 15:35:16 -08:00
cannot-infer-async-enabled-impl-trait-bindings.rs adjust tests 2020-05-09 14:40:17 +02:00
cannot-infer-async-enabled-impl-trait-bindings.stderr Tweak ? inference error messages 2021-01-10 19:48:11 -05:00
cannot-infer-async.rs Remove async_await gates from tests. 2019-08-20 03:08:42 +02:00
cannot-infer-async.stderr Tweak ? inference error messages 2021-01-10 19:48:11 -05:00
cannot-infer-closure-circular.rs Note inference failures using ? conversion 2021-01-10 19:47:57 -05:00
cannot-infer-closure-circular.stderr path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
cannot-infer-closure.rs Resolve types when suggesting boxed closure 2019-08-12 18:12:19 -07:00
cannot-infer-closure.stderr path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
cannot-infer-partial-try-return.rs Note inference failures using ? conversion 2021-01-10 19:47:57 -05:00
cannot-infer-partial-try-return.stderr path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
infer-binary-operand-behind-reference.rs Add more tests 2020-02-09 01:51:13 +00:00
inference-variable-behind-raw-pointer.rs Make error and warning annotations mandatory in UI tests 2019-11-10 21:01:02 +01:00
inference-variable-behind-raw-pointer.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
inference_unstable.rs Account for associated consts in the "unstable assoc item name colission" lint 2021-02-24 15:35:16 -08:00
inference_unstable.stderr Account for associated consts in the "unstable assoc item name colission" lint 2021-02-24 15:35:16 -08:00
inference_unstable_featured.rs Remove licenses 2018-12-25 21:08:33 -07:00
inference_unstable_featured.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
inference_unstable_forced.rs Remove licenses 2018-12-25 21:08:33 -07:00
inference_unstable_forced.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
issue-71732.rs Add regression test for issue-71732 2020-10-23 16:41:34 +09:00
issue-71732.stderr Add regression test for issue-71732 2020-10-23 16:41:34 +09:00
issue-72616.rs Add a regression test for issue-72616 2020-10-23 16:10:19 +09:00
issue-72616.stderr path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
issue-81522.rs Add regression test to ensure #[allow(unstable_name_collisions)] works 2021-03-24 23:16:55 +09:00
issue-83606.rs Do not emit a suggestion that causes the E0632 error 2021-03-30 03:00:25 +09:00
issue-83606.stderr Do not emit a suggestion that causes the E0632 error 2021-03-30 03:00:25 +09:00