Skip to content

Commit 1398d54

Browse files
heiseishfmease
andauthored
Apply suggestions from code review
Co-authored-by: León Orell Valerian Liehr <[email protected]>
1 parent 9ce28ef commit 1398d54

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compiler/rustc_type_ir/src/predicate.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ impl fmt::Display for ImplPolarity {
197197
}
198198

199199
impl ImplPolarity {
200-
/// Typically used to decorate the impl trait message by adding the corresponding
201-
/// polarity marker before the trait name.
200+
/// The polarity marker in front of the impl trait ref if applicable.
202201
pub fn as_str(self) -> &'static str {
203202
match self {
204203
Self::Positive => "",

tests/ui/coherence/coherence-conflicting-repeated-negative-trait-impl-70849.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![feature(negative_impls)]
22
//@ edition: 2021
3-
// Test to ensure we are printing the polarity of the trait when printing out
4-
// conflicting trait impls
3+
// Test to ensure we are printing the polarity of the impl trait ref
4+
// when printing out conflicting trait impls
55

66
struct MyType;
77

0 commit comments

Comments
 (0)