Added competition for unstable features
Added xtask for download unstable book from rust repository and codegene for it. Also small changes from lint
This commit is contained in:
@@ -9,6 +9,7 @@ mod gen_syntax;
|
||||
mod gen_parser_tests;
|
||||
mod gen_assists_docs;
|
||||
mod gen_feature_docs;
|
||||
mod gen_unstable_future_descriptor;
|
||||
|
||||
use std::{
|
||||
fmt, mem,
|
||||
@@ -22,8 +23,12 @@ pub use self::{
|
||||
gen_feature_docs::generate_feature_docs,
|
||||
gen_parser_tests::generate_parser_tests,
|
||||
gen_syntax::generate_syntax,
|
||||
gen_unstable_future_descriptor::generate_unstable_future_descriptor,
|
||||
};
|
||||
|
||||
// Directory used by xtask
|
||||
const STORAGE: &str = ".xtask";
|
||||
|
||||
const GRAMMAR_DIR: &str = "crates/ra_parser/src/grammar";
|
||||
const OK_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/ok";
|
||||
const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/err";
|
||||
@@ -35,6 +40,9 @@ const AST_TOKENS: &str = "crates/ra_syntax/src/ast/generated/tokens.rs";
|
||||
const ASSISTS_DIR: &str = "crates/ra_assists/src/handlers";
|
||||
const ASSISTS_TESTS: &str = "crates/ra_assists/src/tests/generated.rs";
|
||||
|
||||
const REPOSITORY_URL: &str = "https://github.com/rust-lang/rust";
|
||||
const UNSTABLE_FEATURE: &str = "crates/ra_ide/src/completion/unstable_feature_descriptor.rs";
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
pub enum Mode {
|
||||
Overwrite,
|
||||
|
||||
Reference in New Issue
Block a user