Skip to content

Commit

Permalink
Remove unnecessary features in rustc_ty
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed Feb 2, 2020
1 parent 91cf0e7 commit 570c161
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/librustc_ty/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![feature(bool_to_option)]
#![feature(in_band_lifetimes)]
#![feature(nll)]
#![cfg_attr(bootstrap, feature(slice_patterns))]
#![recursion_limit = "256"]

#[macro_use]
Expand Down
6 changes: 5 additions & 1 deletion src/librustc_ty/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ use rustc_hir::def_id::{CrateNum, DefId, LOCAL_CRATE};
use rustc_span::symbol::Symbol;
use rustc_span::Span;

fn sized_constraint_for_ty(tcx: TyCtxt<'tcx>, adtdef: &ty::AdtDef, ty: Ty<'tcx>) -> Vec<Ty<'tcx>> {
fn sized_constraint_for_ty<'tcx>(
tcx: TyCtxt<'tcx>,
adtdef: &ty::AdtDef,
ty: Ty<'tcx>,
) -> Vec<Ty<'tcx>> {
use ty::TyKind::*;

let result = match ty.kind {
Expand Down

0 comments on commit 570c161

Please sign in to comment.