Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

Commit 09ed86c

Browse files
authored
Merge pull request #18 from emilio/foreign
Add DefKind variants for foreign functions and statics.
2 parents 06210b6 + 3b824d1 commit 09ed86c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rls-data"
3-
version = "0.17.0"
3+
version = "0.18.0"
44
authors = ["Nick Cameron <[email protected]>"]
55
description = "Data structures used by the RLS and Rust compiler"
66
license = "Apache-2.0/MIT"

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ pub enum DefKind {
198198
Trait,
199199
// value = type + generics
200200
Function,
201+
ForeignFunction,
201202
// value = type + generics
202203
Method,
203204
// No id, no value.
@@ -209,6 +210,7 @@ pub enum DefKind {
209210
// value = type and init expression (for all variable kinds).
210211
Local,
211212
Static,
213+
ForeignStatic,
212214
Const,
213215
Field,
214216
// no value

0 commit comments

Comments
 (0)