rust/compiler/rustc_lint/src
Matthias Krüger 3694e40ffa
Rollup merge of #97389 - m-ou-se:memory-ordering-diagnostics, r=estebank
Improve memory ordering diagnostics

Before:

![image](https://user-images.githubusercontent.com/783247/170234545-891cac30-eaa2-4186-847b-35cd51e00f2b.png)

After:

![image](https://user-images.githubusercontent.com/783247/170239684-645f186f-5a02-4eb9-8651-2e5fe9591352.png)

---

Before this change, the compiler suggests the failure ordering is too strong and suggests choosing a weaker ordering. After this change, it instead suggests the success ordering is not strong enough, and suggests chosing a stronger one. This is more likely to be correct.

Also, before this change, the compiler suggested downgrading an invalid AcqRel failure ordering to Relaxed, without mentioning Acquire as an option.
2022-06-27 08:06:45 +02:00
..
nonstandard_style
array_into_iter.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
builtin.rs Use ensure for UnusedBrokenConst. 2022-06-19 09:44:32 +02:00
context.rs Rollup merge of #97757 - xFrednet:rfc-2383-expect-with-force-warn, r=wesleywiser,flip1995 2022-06-16 09:10:20 +02:00
early.rs Inline and remove {enter,exit}_attrs functions. 2022-06-16 09:52:04 +10:00
enum_intrinsics_non_enums.rs initial revert 2022-01-15 01:16:55 +00:00
expect.rs Support lint expectations for --force-warn lints (RFC 2383) 2022-06-16 08:16:43 +02:00
hidden_unicode_codepoints.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
internal.rs Rollup merge of #97948 - davidtwco:diagnostic-translation-lints, r=oli-obk 2022-06-14 10:35:31 +02:00
late.rs Inline and remove {enter,exit}_attrs functions. 2022-06-16 09:52:04 +10:00
levels.rs Rollup merge of #97757 - xFrednet:rfc-2383-expect-with-force-warn, r=wesleywiser,flip1995 2022-06-16 09:10:20 +02:00
lib.rs Make some lints incremental. 2022-06-19 00:00:36 +02:00
methods.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
non_ascii_idents.rs rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
non_fmt_panic.rs Make rustc_parse_format compile on stable 2022-05-03 11:26:58 +02:00
nonstandard_style.rs Stop visiting visibility. 2022-04-23 09:53:45 +02:00
noop_method_call.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
pass_by_value.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
passes.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
redundant_semicolon.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
tests.rs Update to last upstream version 2021-07-08 17:14:28 +02:00
traits.rs Rename ~const Drop to ~const Destruct 2022-03-21 17:04:03 +11:00
types.rs Rollup merge of #97389 - m-ou-se:memory-ordering-diagnostics, r=estebank 2022-06-27 08:06:45 +02:00
unused.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00