1
Fork 0

Make the rustc_data_structures dependency optional

This commit is contained in:
Nadrieril 2023-12-11 20:59:32 +01:00
parent 16bd6ac3ed
commit e646c9f723
5 changed files with 28 additions and 13 deletions

View file

@ -5,13 +5,11 @@ use std::fmt;
use smallvec::{smallvec, SmallVec};
use rustc_data_structures::captures::Captures;
use self::Constructor::*;
use crate::constructor::{Constructor, Slice, SliceKind};
use crate::usefulness::PatCtxt;
use crate::MatchCx;
use crate::{Captures, MatchCx};
use self::Constructor::*;
/// Values and patterns can be represented as a constructor applied to some fields. This represents
/// a pattern in this form.