Switch impl_tag!
from explicit tags to ${index()}
This commit is contained in:
parent
ad8c7b6705
commit
2b8d27b402
5 changed files with 57 additions and 51 deletions
|
@ -60,6 +60,7 @@
|
|||
#![feature(const_option)]
|
||||
#![feature(trait_alias)]
|
||||
#![feature(ptr_alignment_type)]
|
||||
#![feature(macro_metavar_expr)]
|
||||
#![recursion_limit = "512"]
|
||||
#![allow(rustc::potential_query_instability)]
|
||||
|
||||
|
|
|
@ -1628,10 +1628,10 @@ struct ParamTag {
|
|||
|
||||
impl_tag! {
|
||||
impl Tag for ParamTag;
|
||||
ParamTag { reveal: traits::Reveal::UserFacing, constness: hir::Constness::NotConst } <=> 0,
|
||||
ParamTag { reveal: traits::Reveal::All, constness: hir::Constness::NotConst } <=> 1,
|
||||
ParamTag { reveal: traits::Reveal::UserFacing, constness: hir::Constness::Const } <=> 2,
|
||||
ParamTag { reveal: traits::Reveal::All, constness: hir::Constness::Const } <=> 3,
|
||||
ParamTag { reveal: traits::Reveal::UserFacing, constness: hir::Constness::NotConst },
|
||||
ParamTag { reveal: traits::Reveal::All, constness: hir::Constness::NotConst },
|
||||
ParamTag { reveal: traits::Reveal::UserFacing, constness: hir::Constness::Const },
|
||||
ParamTag { reveal: traits::Reveal::All, constness: hir::Constness::Const },
|
||||
}
|
||||
|
||||
impl<'tcx> fmt::Debug for ParamEnv<'tcx> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue