Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: León Orell Valerian Liehr <[email protected]>
  • Loading branch information
heiseish and fmease authored Sep 13, 2024
1 parent 9ce28ef commit 1398d54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_type_ir/src/predicate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ impl fmt::Display for ImplPolarity {
}

impl ImplPolarity {
/// Typically used to decorate the impl trait message by adding the corresponding
/// polarity marker before the trait name.
/// The polarity marker in front of the impl trait ref if applicable.
pub fn as_str(self) -> &'static str {
match self {
Self::Positive => "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![feature(negative_impls)]
//@ edition: 2021
// Test to ensure we are printing the polarity of the trait when printing out
// conflicting trait impls
// Test to ensure we are printing the polarity of the impl trait ref
// when printing out conflicting trait impls

struct MyType;

Expand Down

0 comments on commit 1398d54

Please sign in to comment.