Remove #[rustc_host]
, use internal desugaring
This commit is contained in:
parent
da1da3f1a0
commit
65212a07e7
16 changed files with 56 additions and 88 deletions
|
@ -1383,7 +1383,7 @@ fn impl_trait_ref(
|
|||
let last_segment = path_segments.len() - 1;
|
||||
let mut args = *path_segments[last_segment].args();
|
||||
let last_arg = args.args.len() - 1;
|
||||
assert!(matches!(args.args[last_arg], hir::GenericArg::Const(anon_const) if tcx.has_attr(anon_const.value.def_id, sym::rustc_host)));
|
||||
assert!(matches!(args.args[last_arg], hir::GenericArg::Const(anon_const) if anon_const.is_desugared_from_effects));
|
||||
args.args = &args.args[..args.args.len() - 1];
|
||||
path_segments[last_segment].args = Some(&args);
|
||||
let path = hir::Path {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue