Oak master fails to build using latest nightly rust: rustc 1.32.0-nightly (653da4fd0 2018-11-08)
After some investigation I was able to solve some of the errors.
syntax::codemap is now renamed as syntax::source_map;
instantiation of rust::Mod @ src/liboak/back/compiler/grammar.rs:74:37 now requires the new field inline which can be initalized as false unless otherwise desired.
syntax::util::small_vector::SmallVector has been moved out of libsyntax. Supposedly it has been moved to librustc_data_structures as per this issue. But I was unable get oak to compile properly.
➜ oak git:(master) ✗ cargo build
Compiling oak v0.5.8 (/Users/alexanderzywicki/code/oak)
error[E0432]: unresolved import syntax::util::small_vector
--> src/liboak/rust.rs:21:23
|
21 | pub use syntax::util::small_vector::SmallVector;
| ^^^^^^^^^^^^ Could not find small_vector in util
error[E0432]: unresolved import syntax::codemap
--> src/liboak/rust.rs:22:17
|
22 | pub use syntax::codemap::{DUMMY_SP, NO_EXPANSION, Span, MultiSpan, Spanned, respan, BytePos};
| ^^^^^^^ Could not find codemap in syntax
error[E0433]: failed to resolve. Use of undeclared type or module Span
--> src/liboak/front/ast.rs:72:13
|
72 | span: Span::new(lo,hi,NO_EXPANSION)
| ^^^^ Use of undeclared type or module Span
error[E0433]: failed to resolve. Use of undeclared type or module Span
--> src/liboak/front/parser.rs:225:9
|
225 | Span::new(lo, hi, NO_EXPANSION),
| ^^^^ Use of undeclared type or module Span
error[E0412]: cannot find type Span in this scope
--> src/liboak/ast.rs:82:50
Oak master fails to build using latest nightly rust: rustc 1.32.0-nightly (653da4fd0 2018-11-08)
After some investigation I was able to solve some of the errors.
inline
which can be initalized asfalse
unless otherwise desired.➜ oak git:(master) ✗ cargo build Compiling oak v0.5.8 (/Users/alexanderzywicki/code/oak) error[E0432]: unresolved import
syntax::util::small_vector
--> src/liboak/rust.rs:21:23 | 21 | pub use syntax::util::small_vector::SmallVector; | ^^^^^^^^^^^^ Could not findsmall_vector
inutil
error[E0432]: unresolved import
syntax::codemap
--> src/liboak/rust.rs:22:17 | 22 | pub use syntax::codemap::{DUMMY_SP, NO_EXPANSION, Span, MultiSpan, Spanned, respan, BytePos}; | ^^^^^^^ Could not findcodemap
insyntax
error[E0433]: failed to resolve. Use of undeclared type or module
Span
--> src/liboak/front/ast.rs:72:13 | 72 | span: Span::new(lo,hi,NO_EXPANSION) | ^^^^ Use of undeclared type or moduleSpan
error[E0433]: failed to resolve. Use of undeclared type or module
Span
--> src/liboak/front/parser.rs:225:9 | 225 | Span::new(lo, hi, NO_EXPANSION), | ^^^^ Use of undeclared type or moduleSpan
Span
in this scope --> src/liboak/ast.rs:82:50Span
in this scope --> src/liboak/ast.rs:94:53Span
in this scope --> src/liboak/ast.rs:100:32Span
in this scope --> src/liboak/ast.rs:104:33Span
in this scope --> src/liboak/ast.rs:234:21BytePos
in this scope --> src/liboak/front/ast.rs:41:36BytePos
in this scope --> src/liboak/front/ast.rs:41:49Span
in this scope --> src/liboak/front/ast.rs:65:13BytePos
in this scope --> src/liboak/front/ast.rs:70:18BytePos
in this scope --> src/liboak/front/ast.rs:70:31NO_EXPANSION
in this scope --> src/liboak/front/ast.rs:72:29Span
in this scope --> src/liboak/front/ast.rs:78:21BytePos
in this scope --> src/liboak/front/parser.rs:42:32BytePos
in this scope --> src/liboak/front/parser.rs:42:45BytePos
in this scope --> src/liboak/front/parser.rs:171:32NO_EXPANSION
in this scope --> src/liboak/front/parser.rs:225:27Span
in this scope --> src/liboak/middle/typing/ast.rs:107:13Span
in this scope --> src/liboak/middle/typing/ast.rs:112:21Span
in this scope --> src/liboak/middle/typing/ast.rs:120:18Span
in this scope --> src/liboak/middle/typing/ast.rs:140:20Span
in this scope --> src/liboak/back/context.rs:250:47Span
in this scope --> src/liboak/back/code_printer.rs:38:83Span
in this scope --> src/liboak/back/compiler/value.rs:20:40Span
in this scope --> src/liboak/back/compiler/value.rs:36:42Span
in this scope --> src/liboak/identifier.rs:39:21Span
in this scope --> src/liboak/identifier.rs:51:21Span
in this scope --> src/liboak/identifier.rs:65:21error[E0063]: missing field
inline
in initializer ofsyntax::ast::Mod
--> src/liboak/back/compiler/grammar.rs:74:37 | 74 | node: rust::ItemKind::Mod(rust::Mod{ | ^^^^^^^^^ missinginline
error: aborting due to 32 previous errors
Some errors occurred: E0063, E0412, E0425, E0432, E0433. For more information about an error, try
rustc --explain E0063
. error: Could not compileoak
.To learn more, run the command again with --verbose.