Add support for running tests in no_std mode.

This commit is contained in:
Dan Gohman
2018-01-18 22:05:51 -08:00
parent 023f8d7980
commit 61db54c447
43 changed files with 101 additions and 13 deletions

View File

@@ -314,7 +314,8 @@ where
}
/// Get a text version of the path to the current position.
fn tpath(&self) -> String {
fn tpath(&self) -> ::std::string::String {
use std::string::ToString;
self.path.to_string()
}
}
@@ -351,6 +352,7 @@ where
#[cfg(test)]
mod test {
use std::mem;
use std::vec::Vec;
use super::*;
use super::super::NodeData;