nightly feature tracking: get rid of the per-feature bool fields
This commit is contained in:
parent
e1f3068995
commit
ad3991d303
108 changed files with 299 additions and 331 deletions
|
@ -181,7 +181,7 @@ fn associated_item_from_impl_item_ref(impl_item_ref: &hir::ImplItemRef) -> ty::A
|
|||
fn associated_type_for_effects(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<DefId> {
|
||||
// don't synthesize the associated type even if the user has written `const_trait`
|
||||
// if the effects feature is disabled.
|
||||
if !tcx.features().effects {
|
||||
if !tcx.features().effects() {
|
||||
return None;
|
||||
}
|
||||
let (feed, parent_did) = match tcx.def_kind(def_id) {
|
||||
|
|
|
@ -406,7 +406,7 @@ fn thir_abstract_const<'tcx>(
|
|||
tcx: TyCtxt<'tcx>,
|
||||
def: LocalDefId,
|
||||
) -> Result<Option<ty::EarlyBinder<'tcx, ty::Const<'tcx>>>, ErrorGuaranteed> {
|
||||
if !tcx.features().generic_const_exprs {
|
||||
if !tcx.features().generic_const_exprs() {
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue