File tree 1 file changed +2
-2
lines changed
compiler/rustc_hir_analysis/src/hir_ty_lowering
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
use rustc_ast:: TraitObjectSyntax ;
2
2
use rustc_errors:: codes:: * ;
3
- use rustc_errors:: { Diag , EmissionGuarantee , ErrorGuaranteed } ;
3
+ use rustc_errors:: { Diag , EmissionGuarantee , ErrorGuaranteed , StashKey } ;
4
4
use rustc_hir as hir;
5
5
use rustc_hir:: def:: { DefKind , Res } ;
6
6
use rustc_lint_defs:: Applicability ;
@@ -86,7 +86,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
86
86
// Check if the impl trait that we are considering is an impl of a local trait.
87
87
self . maybe_suggest_blanket_trait_impl ( self_ty, & mut diag) ;
88
88
self . maybe_suggest_assoc_ty_bound ( self_ty, & mut diag) ;
89
- Some ( diag. emit ( ) )
89
+ diag. stash ( self_ty . span , StashKey :: TraitMissingMethod )
90
90
} else {
91
91
tcx. node_span_lint ( BARE_TRAIT_OBJECTS , self_ty. hir_id , self_ty. span , |lint| {
92
92
lint. primary_message ( "trait objects without an explicit `dyn` are deprecated" ) ;
You can’t perform that action at this time.
0 commit comments