Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Commit 20d1669

Browse files
committed
Put slicing syntax behind a feature gate.
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
1 parent 1daf265 commit 20d1669

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
html_root_url = "http://doc.rust-lang.org/master/",
5050
html_playground_url = "http://play.rust-lang.org/")]
5151

52-
#![feature(macro_rules, phase)]
52+
#![allow(unknown_features)]
53+
#![feature(macro_rules, phase, slicing_syntax)]
5354

5455
#![deny(missing_doc)]
5556

0 commit comments

Comments
 (0)