3 #![allow(unused_imports)]
4 #![allow(stable_features)]
6 // A reduced version of the rustbook ice. The problem this encountered
7 // had to do with codegen ignoring binders.
9 // pretty-expanded FIXME #23616
16 use std::io::prelude::*;
20 pub fn parse_summary<R: Read>(_: R, _: &Path) {
21 let path_from_root = Path::new("");
22 Path::new(&"../".repeat(path_from_root.components().count() - 1));
26 let cwd = env::current_dir().unwrap();
27 let src = cwd.clone();
28 let summary = File::open(&src.join("SUMMARY.md")).unwrap();
29 let _ = parse_summary(summary, &src);