add #[cfg(test)]

This commit is contained in:
gfreezy 2018-12-21 22:45:38 +08:00
parent 77eaa208ed
commit 66d15bb2da

View file

@ -132,7 +132,8 @@ impl CrateGraph {
} }
mod test { #[cfg(test)]
mod tests {
use super::{CrateGraph, FxHashMap, FileId, SmolStr}; use super::{CrateGraph, FxHashMap, FileId, SmolStr};
#[test] #[test]
#[should_panic] #[should_panic]