ivanceras / svgbob

Convert your ascii diagram scribbles into happy little SVG
http://ivanceras.github.io/svgbob-editor/
Apache License 2.0
3.91k stars 112 forks source link

Fails to compile on rustc 1.23.0-nightly (d0f8e2913 2017-11-16) #18

Closed raphaelcohn closed 7 years ago

raphaelcohn commented 7 years ago

This is because the ... no longer compiles:-

   Compiling svgbob v0.2.2
     Running `rustc --crate-name svgbob /Users/raph/.cargo/registry/src/github.com-1ecc6299db9ec823/svgbob-0.2.2/src/lib.rs --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=6aeea909a17cac5e -C extra-filename=-6aeea909a17cac5e --out-dir /Volumes/Source/GitHub/lemonrock/cordial/.cargo/target/debug/deps -L dependency=/Volumes/Source/GitHub/lemonrock/cordial/.cargo/target/debug/deps --extern unicode_width=/Volumes/Source/GitHub/lemonrock/cordial/.cargo/target/debug/deps/libunicode_width-6a33041d7c0c2e86.rmeta --extern pom=/Volumes/Source/GitHub/lemonrock/cordial/.cargo/target/debug/deps/libpom-90421312374529fb.rmeta --extern svg=/Volumes/Source/GitHub/lemonrock/cordial/.cargo/target/debug/deps/libsvg-b4b89173624de942.rmeta --cap-lints allow`
error: `...` syntax cannot be used in expressions
    --> /Users/raph/.cargo/registry/src/github.com-1ecc6299db9ec823/svgbob-0.2.2/src/lib.rs:1071:38
     |
1071 |             matches.push(input3[start...end].to_string());
     |                                      ^^^
     |
     = help: Use `..` if you need an exclusive range (a < b)
     = help: or `..=` if you need an inclusive range (a <= b)

error: `...` syntax cannot be used in expressions
    --> /Users/raph/.cargo/registry/src/github.com-1ecc6299db9ec823/svgbob-0.2.2/src/lib.rs:1102:38
     |
1102 |             matches.push(input3[start...end].to_string());
     |                                      ^^^
     |
     = help: Use `..` if you need an exclusive range (a < b)
     = help: or `..=` if you need an inclusive range (a <= b)
ivanceras commented 7 years ago

Oh, they've changed the range inclusive syntax from ... to ..=. Fixing it now, thanks for reporting.

ivanceras commented 7 years ago

It should compile now.

raphaelcohn commented 7 years ago

Ta. Any chance you could publish a new version to crates.io?

raphaelcohn commented 7 years ago

Ta