Make the rustc_data_structures
dependency optional
This commit is contained in:
parent
16bd6ac3ed
commit
e646c9f723
5 changed files with 28 additions and 13 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue