remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata
This commit is contained in:
@@ -2174,7 +2174,7 @@ impl CheckAttrVisitor<'_> {
|
||||
let tcx = self.tcx;
|
||||
if target == Target::Fn {
|
||||
let Some(tokenstream) = tcx.get_diagnostic_item(sym::TokenStream) else {return};
|
||||
let tokenstream = tcx.bound_type_of(tokenstream).subst_identity();
|
||||
let tokenstream = tcx.type_of(tokenstream).subst_identity();
|
||||
|
||||
let id = hir_id.expect_owner();
|
||||
let hir_sig = tcx.hir().fn_sig_by_hir_id(hir_id).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user