mirror of
https://github.com/github/semantic.git
synced 2025-01-07 16:07:28 +03:00
Make Rust commensurate with its cabal version.
This commit is contained in:
parent
6759b617cb
commit
618cf71513
12
WORKSPACE
12
WORKSPACE
@ -182,12 +182,6 @@ tree_sitter_node_types_release(
|
||||
version = "0.16.0",
|
||||
)
|
||||
|
||||
tree_sitter_node_types_release(
|
||||
name = "tree-sitter-rust",
|
||||
sha256 = "8c34f19a9270ee60367ee235226ff1108341f944e0bd245cb47e1c2721f0c39b",
|
||||
version = "0.16.1",
|
||||
)
|
||||
|
||||
tree_sitter_node_types_release(
|
||||
name = "tree-sitter-go",
|
||||
sha256 = "7278f1fd4dc4de8a13b0f60407425d38c5cb3973e1938d3031a68e1e69bd0b75",
|
||||
@ -234,6 +228,12 @@ tree_sitter_node_types_git(
|
||||
shallow_since = "1591381188 -0400",
|
||||
)
|
||||
|
||||
tree_sitter_node_types_git(
|
||||
name = "tree-sitter-rust",
|
||||
commit = "ab40806a4583b84b9d5636f5a93c0ebfa45b2675",
|
||||
shallow_since = "1583184357 -0800",
|
||||
)
|
||||
|
||||
load("//:build/example_repos.bzl", "declare_example_repos")
|
||||
|
||||
declare_example_repos()
|
||||
|
@ -6,7 +6,7 @@ load(
|
||||
)
|
||||
|
||||
semantic_language_library(
|
||||
name = "lib",
|
||||
name = "semantic-rust",
|
||||
srcs = glob(["src/**/*.hs"]),
|
||||
language = "rust",
|
||||
)
|
||||
|
@ -12,7 +12,7 @@
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
{-# LANGUAGE TypeApplications #-}
|
||||
{-# LANGUAGE TypeOperators #-}
|
||||
|
||||
{-# OPTIONS_GHC -Wno-unused-imports #-}
|
||||
|
||||
module Language.Rust.AST
|
||||
( module Language.Rust.AST
|
||||
@ -27,5 +27,5 @@ import qualified TreeSitter.Rust as Rust (getNodeTypesPath, getTestCorpusDir, tr
|
||||
#ifdef NODE_TYPES_PATH
|
||||
astDeclarationsForLanguage Rust.tree_sitter_rust NODE_TYPES_PATH
|
||||
#else
|
||||
runIO TSX.getNodeTypesPath >>= astDeclarationsForLanguage Rust.tree_sitter_rust
|
||||
runIO Rust.getNodeTypesPath >>= astDeclarationsForLanguage Rust.tree_sitter_rust
|
||||
#endif
|
||||
|
@ -139,7 +139,6 @@ instance ToTags Rust.MutPattern
|
||||
instance ToTags Rust.MutableSpecifier
|
||||
instance ToTags Rust.NegativeLiteral
|
||||
instance ToTags Rust.OptionalTypeParameter
|
||||
instance ToTags Rust.OrPattern
|
||||
instance ToTags Rust.OrderedFieldDeclarationList
|
||||
instance ToTags Rust.Parameter
|
||||
instance ToTags Rust.Parameters
|
||||
|
Loading…
Reference in New Issue
Block a user