File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ impl<'tcx> LateLintPass<'tcx> for DisallowedPassByRef {
2626 if cx. tcx . trait_impl_of_assoc ( ty. hir_id . owner . to_def_id ( ) ) . is_some ( ) {
2727 return ;
2828 }
29- if let Some ( t) = path_for_pass_by_value ( cx, inner_ty) {
29+ if let Some ( t) = path_for_rustc_pass_by_value ( cx, inner_ty) {
3030 cx. emit_span_lint (
3131 DISALLOWED_PASS_BY_REF ,
3232 ty. span ,
Original file line number Diff line number Diff line change @@ -3951,7 +3951,7 @@ pub(crate) struct MalformedOnConstAttrLint {
39513951 pub span : Span ,
39523952}
39533953
3954- #[ derive( LintDiagnostic ) ]
3954+ #[ derive( Diagnostic ) ]
39553955#[ diag( "`Eq::assert_receiver_is_total_eq` should never be implemented by hand" ) ]
39563956#[ note( "this method was used to add checks to the `Eq` derive macro" ) ]
39573957pub ( crate ) struct EqInternalMethodImplemented ;
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ error: `Eq::assert_receiver_is_total_eq` should never be implemented by hand
2828LL | fn assert_receiver_is_total_eq(&self) {}
2929 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030 |
31+ = note: this method was used to add checks to the `Eq` derive macro
3132 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3233 = note: for more information, see issue #152336 <https://github.com/rust-lang/rust/issues/152336>
33- = note: this method was used to add checks to the `Eq` derive macro
3434note: the lint level is defined here
3535 --> $DIR/internal_eq_trait_method_impls.rs:1:21
3636 |
You can’t perform that action at this time.
0 commit comments