Make things build again

This commit is contained in:
Vadim Petrochenkov 2019-12-29 16:53:32 +03:00
parent b683de4ad7
commit b9a9c5b4fd
32 changed files with 125 additions and 125 deletions

View File

@ -1099,7 +1099,7 @@ name = "fmt_macros"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"rustc_lexer", "rustc_lexer",
"syntax_pos", "rustc_span",
] ]
[[package]] [[package]]
@ -3094,12 +3094,12 @@ dependencies = [
"rustc_index", "rustc_index",
"rustc_macros", "rustc_macros",
"rustc_session", "rustc_session",
"rustc_span",
"rustc_target", "rustc_target",
"scoped-tls", "scoped-tls",
"serialize", "serialize",
"smallvec 1.0.0", "smallvec 1.0.0",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3358,6 +3358,24 @@ dependencies = [
"core", "core",
] ]
[[package]]
name = "rustc_builtin_macros"
version = "0.0.0"
dependencies = [
"fmt_macros",
"log",
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_expand",
"rustc_feature",
"rustc_parse",
"rustc_span",
"rustc_target",
"smallvec 1.0.0",
"syntax",
]
[[package]] [[package]]
name = "rustc_codegen_llvm" name = "rustc_codegen_llvm"
version = "0.0.0" version = "0.0.0"
@ -3372,17 +3390,17 @@ dependencies = [
"rustc_codegen_utils", "rustc_codegen_utils",
"rustc_data_structures", "rustc_data_structures",
"rustc_errors", "rustc_errors",
"rustc_expand",
"rustc_feature", "rustc_feature",
"rustc_fs_util", "rustc_fs_util",
"rustc_incremental", "rustc_incremental",
"rustc_index", "rustc_index",
"rustc_llvm", "rustc_llvm",
"rustc_session", "rustc_session",
"rustc_span",
"rustc_target", "rustc_target",
"smallvec 0.6.10", "smallvec 0.6.10",
"syntax", "syntax",
"syntax_expand",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3406,10 +3424,10 @@ dependencies = [
"rustc_incremental", "rustc_incremental",
"rustc_index", "rustc_index",
"rustc_session", "rustc_session",
"rustc_span",
"rustc_target", "rustc_target",
"serialize", "serialize",
"syntax", "syntax",
"syntax_pos",
"tempfile", "tempfile",
] ]
@ -3423,9 +3441,9 @@ dependencies = [
"rustc-demangle", "rustc-demangle",
"rustc_data_structures", "rustc_data_structures",
"rustc_metadata", "rustc_metadata",
"rustc_span",
"rustc_target", "rustc_target",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3474,10 +3492,10 @@ dependencies = [
"rustc_plugin_impl", "rustc_plugin_impl",
"rustc_resolve", "rustc_resolve",
"rustc_save_analysis", "rustc_save_analysis",
"rustc_span",
"rustc_target", "rustc_target",
"serialize", "serialize",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3492,20 +3510,36 @@ dependencies = [
"atty", "atty",
"log", "log",
"rustc_data_structures", "rustc_data_structures",
"rustc_span",
"serialize", "serialize",
"syntax_pos",
"term_size", "term_size",
"termcolor", "termcolor",
"unicode-width", "unicode-width",
] ]
[[package]]
name = "rustc_expand"
version = "0.0.0"
dependencies = [
"log",
"rustc_data_structures",
"rustc_errors",
"rustc_feature",
"rustc_lexer",
"rustc_parse",
"rustc_span",
"serialize",
"smallvec 1.0.0",
"syntax",
]
[[package]] [[package]]
name = "rustc_feature" name = "rustc_feature"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"lazy_static 1.3.0", "lazy_static 1.3.0",
"rustc_data_structures", "rustc_data_structures",
"syntax_pos", "rustc_span",
] ]
[[package]] [[package]]
@ -3523,9 +3557,9 @@ dependencies = [
"rustc_data_structures", "rustc_data_structures",
"rustc_fs_util", "rustc_fs_util",
"rustc_session", "rustc_session",
"rustc_span",
"serialize", "serialize",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3544,11 +3578,13 @@ dependencies = [
"once_cell", "once_cell",
"rustc", "rustc",
"rustc-rayon", "rustc-rayon",
"rustc_builtin_macros",
"rustc_codegen_llvm", "rustc_codegen_llvm",
"rustc_codegen_ssa", "rustc_codegen_ssa",
"rustc_codegen_utils", "rustc_codegen_utils",
"rustc_data_structures", "rustc_data_structures",
"rustc_errors", "rustc_errors",
"rustc_expand",
"rustc_incremental", "rustc_incremental",
"rustc_lint", "rustc_lint",
"rustc_metadata", "rustc_metadata",
@ -3558,15 +3594,13 @@ dependencies = [
"rustc_plugin_impl", "rustc_plugin_impl",
"rustc_privacy", "rustc_privacy",
"rustc_resolve", "rustc_resolve",
"rustc_span",
"rustc_target", "rustc_target",
"rustc_traits", "rustc_traits",
"rustc_typeck", "rustc_typeck",
"serialize", "serialize",
"smallvec 1.0.0", "smallvec 1.0.0",
"syntax", "syntax",
"syntax_expand",
"syntax_ext",
"syntax_pos",
"tempfile", "tempfile",
] ]
@ -3588,9 +3622,9 @@ dependencies = [
"rustc_feature", "rustc_feature",
"rustc_index", "rustc_index",
"rustc_session", "rustc_session",
"rustc_span",
"rustc_target", "rustc_target",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3635,15 +3669,15 @@ dependencies = [
"rustc_data_structures", "rustc_data_structures",
"rustc_error_codes", "rustc_error_codes",
"rustc_errors", "rustc_errors",
"rustc_expand",
"rustc_index", "rustc_index",
"rustc_parse", "rustc_parse",
"rustc_span",
"rustc_target", "rustc_target",
"serialize", "serialize",
"smallvec 1.0.0", "smallvec 1.0.0",
"stable_deref_trait", "stable_deref_trait",
"syntax", "syntax",
"syntax_expand",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3665,11 +3699,11 @@ dependencies = [
"rustc_index", "rustc_index",
"rustc_lexer", "rustc_lexer",
"rustc_macros", "rustc_macros",
"rustc_span",
"rustc_target", "rustc_target",
"serialize", "serialize",
"smallvec 1.0.0", "smallvec 1.0.0",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3694,9 +3728,9 @@ dependencies = [
"rustc_errors", "rustc_errors",
"rustc_feature", "rustc_feature",
"rustc_lexer", "rustc_lexer",
"rustc_span",
"smallvec 1.0.0", "smallvec 1.0.0",
"syntax", "syntax",
"syntax_pos",
"unicode-normalization", "unicode-normalization",
] ]
@ -3712,9 +3746,9 @@ dependencies = [
"rustc_feature", "rustc_feature",
"rustc_index", "rustc_index",
"rustc_parse", "rustc_parse",
"rustc_span",
"rustc_target", "rustc_target",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3724,8 +3758,8 @@ dependencies = [
"rustc", "rustc",
"rustc_error_codes", "rustc_error_codes",
"rustc_metadata", "rustc_metadata",
"rustc_span",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3736,9 +3770,9 @@ dependencies = [
"rustc", "rustc",
"rustc_data_structures", "rustc_data_structures",
"rustc_error_codes", "rustc_error_codes",
"rustc_span",
"rustc_typeck", "rustc_typeck",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3752,12 +3786,12 @@ dependencies = [
"rustc_data_structures", "rustc_data_structures",
"rustc_error_codes", "rustc_error_codes",
"rustc_errors", "rustc_errors",
"rustc_expand",
"rustc_feature", "rustc_feature",
"rustc_metadata", "rustc_metadata",
"rustc_span",
"smallvec 1.0.0", "smallvec 1.0.0",
"syntax", "syntax",
"syntax_expand",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3771,9 +3805,9 @@ dependencies = [
"rustc_codegen_utils", "rustc_codegen_utils",
"rustc_data_structures", "rustc_data_structures",
"rustc_parse", "rustc_parse",
"rustc_span",
"serde_json", "serde_json",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3787,9 +3821,24 @@ dependencies = [
"rustc_feature", "rustc_feature",
"rustc_fs_util", "rustc_fs_util",
"rustc_index", "rustc_index",
"rustc_span",
"rustc_target", "rustc_target",
"serialize", "serialize",
"syntax_pos", ]
[[package]]
name = "rustc_span"
version = "0.0.0"
dependencies = [
"arena",
"cfg-if",
"log",
"rustc_data_structures",
"rustc_index",
"rustc_macros",
"scoped-tls",
"serialize",
"unicode-width",
] ]
[[package]] [[package]]
@ -3801,8 +3850,8 @@ dependencies = [
"rustc_data_structures", "rustc_data_structures",
"rustc_index", "rustc_index",
"rustc_macros", "rustc_macros",
"rustc_span",
"serialize", "serialize",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3824,10 +3873,10 @@ dependencies = [
"rustc", "rustc",
"rustc_data_structures", "rustc_data_structures",
"rustc_macros", "rustc_macros",
"rustc_span",
"rustc_target", "rustc_target",
"smallvec 1.0.0", "smallvec 1.0.0",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -3852,10 +3901,10 @@ dependencies = [
"rustc_error_codes", "rustc_error_codes",
"rustc_errors", "rustc_errors",
"rustc_index", "rustc_index",
"rustc_span",
"rustc_target", "rustc_target",
"smallvec 1.0.0", "smallvec 1.0.0",
"syntax", "syntax",
"syntax_pos",
] ]
[[package]] [[package]]
@ -4369,59 +4418,10 @@ dependencies = [
"rustc_lexer", "rustc_lexer",
"rustc_macros", "rustc_macros",
"rustc_session", "rustc_session",
"rustc_span",
"scoped-tls", "scoped-tls",
"serialize", "serialize",
"smallvec 1.0.0", "smallvec 1.0.0",
"syntax_pos",
]
[[package]]
name = "syntax_expand"
version = "0.0.0"
dependencies = [
"log",
"rustc_data_structures",
"rustc_errors",
"rustc_feature",
"rustc_lexer",
"rustc_parse",
"serialize",
"smallvec 1.0.0",
"syntax",
"syntax_pos",
]
[[package]]
name = "syntax_ext"
version = "0.0.0"
dependencies = [
"fmt_macros",
"log",
"rustc_data_structures",
"rustc_error_codes",
"rustc_errors",
"rustc_feature",
"rustc_parse",
"rustc_target",
"smallvec 1.0.0",
"syntax",
"syntax_expand",
"syntax_pos",
]
[[package]]
name = "syntax_pos"
version = "0.0.0"
dependencies = [
"arena",
"cfg-if",
"log",
"rustc_data_structures",
"rustc_index",
"rustc_macros",
"scoped-tls",
"serialize",
"unicode-width",
] ]
[[package]] [[package]]

View File

@ -9,5 +9,5 @@ name = "fmt_macros"
path = "lib.rs" path = "lib.rs"
[dependencies] [dependencies]
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_lexer = { path = "../librustc_lexer" } rustc_lexer = { path = "../librustc_lexer" }

View File

@ -30,7 +30,7 @@ rustc_index = { path = "../librustc_index" }
errors = { path = "../librustc_errors", package = "rustc_errors" } errors = { path = "../librustc_errors", package = "rustc_errors" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
backtrace = "0.3.40" backtrace = "0.3.40"
parking_lot = "0.9" parking_lot = "0.9"
byteorder = { version = "1.3" } byteorder = { version = "1.3" }

View File

@ -1,11 +1,11 @@
[package] [package]
authors = ["The Rust Project Developers"] authors = ["The Rust Project Developers"]
name = "syntax_ext" name = "rustc_builtin_macros"
version = "0.0.0" version = "0.0.0"
edition = "2018" edition = "2018"
[lib] [lib]
name = "syntax_ext" name = "rustc_builtin_macros"
path = "lib.rs" path = "lib.rs"
doctest = false doctest = false
@ -19,6 +19,6 @@ rustc_parse = { path = "../librustc_parse" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
smallvec = { version = "1.0", features = ["union", "may_dangle"] } smallvec = { version = "1.0", features = ["union", "may_dangle"] }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_expand = { path = "../libsyntax_expand" } syntax_expand = { path = "../librustc_expand", package = "rustc_expand" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_error_codes = { path = "../librustc_error_codes" } rustc_error_codes = { path = "../librustc_error_codes" }

View File

@ -412,8 +412,8 @@ impl<'a> TraitDef<'a> {
_ => { _ => {
// Non-ADT derive is an error, but it should have been // Non-ADT derive is an error, but it should have been
// set earlier; see // set earlier; see
// libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment() // librustc_expand/expand.rs:MacroExpander::fully_expand_fragment()
// libsyntax_expand/base.rs:Annotatable::derive_allowed() // librustc_expand/base.rs:Annotatable::derive_allowed()
return; return;
} }
}; };
@ -487,8 +487,8 @@ impl<'a> TraitDef<'a> {
_ => { _ => {
// Non-Item derive is an error, but it should have been // Non-Item derive is an error, but it should have been
// set earlier; see // set earlier; see
// libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment() // librustc_expand/expand.rs:MacroExpander::fully_expand_fragment()
// libsyntax_expand/base.rs:Annotatable::derive_allowed() // librustc_expand/base.rs:Annotatable::derive_allowed()
return; return;
} }
} }

View File

@ -92,8 +92,8 @@ fn inject_impl_of_structural_trait(
_ => { _ => {
// Non-Item derive is an error, but it should have been // Non-Item derive is an error, but it should have been
// set earlier; see // set earlier; see
// libsyntax_expand/expand.rs:MacroExpander::fully_expand_fragment() // librustc_expand/expand.rs:MacroExpander::fully_expand_fragment()
// libsyntax_expand/base.rs:Annotatable::derive_allowed() // librustc_expand/base.rs:Annotatable::derive_allowed()
return; return;
} }
}; };

View File

@ -30,5 +30,5 @@ rustc_session = { path = "../librustc_session" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] } smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_expand = { path = "../libsyntax_expand" } syntax_expand = { path = "../librustc_expand", package = "rustc_expand" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }

View File

@ -21,7 +21,7 @@ tempfile = "3.1"
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_apfloat = { path = "../librustc_apfloat" } rustc_apfloat = { path = "../librustc_apfloat" }
rustc_codegen_utils = { path = "../librustc_codegen_utils" } rustc_codegen_utils = { path = "../librustc_codegen_utils" }

View File

@ -15,7 +15,7 @@ punycode = "0.4.0"
rustc-demangle = "0.1.16" rustc-demangle = "0.1.16"
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }

View File

@ -31,7 +31,7 @@ rustc_interface = { path = "../librustc_interface" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
rustc_resolve = { path = "../librustc_resolve" } rustc_resolve = { path = "../librustc_resolve" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
[features] [features]
llvm = ['rustc_interface/llvm'] llvm = ['rustc_interface/llvm']

View File

@ -12,7 +12,7 @@ doctest = false
[dependencies] [dependencies]
log = "0.4" log = "0.4"
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
unicode-width = "0.1.4" unicode-width = "0.1.4"
atty = "0.2" atty = "0.2"

View File

@ -1,19 +1,19 @@
[package] [package]
authors = ["The Rust Project Developers"] authors = ["The Rust Project Developers"]
name = "syntax_expand" name = "rustc_expand"
version = "0.0.0" version = "0.0.0"
edition = "2018" edition = "2018"
build = false build = false
[lib] [lib]
name = "syntax_expand" name = "rustc_expand"
path = "lib.rs" path = "lib.rs"
doctest = false doctest = false
[dependencies] [dependencies]
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
log = "0.4" log = "0.4"
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
errors = { path = "../librustc_errors", package = "rustc_errors" } errors = { path = "../librustc_errors", package = "rustc_errors" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_feature = { path = "../librustc_feature" } rustc_feature = { path = "../librustc_feature" }

View File

@ -12,4 +12,4 @@ doctest = false
[dependencies] [dependencies]
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
lazy_static = "1.0.0" lazy_static = "1.0.0"
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }

View File

@ -17,6 +17,6 @@ rustc = { path = "../librustc" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_fs_util = { path = "../librustc_fs_util" } rustc_fs_util = { path = "../librustc_fs_util" }
rustc_session = { path = "../librustc_session" } rustc_session = { path = "../librustc_session" }

View File

@ -14,10 +14,10 @@ log = "0.4"
rayon = { version = "0.3.0", package = "rustc-rayon" } rayon = { version = "0.3.0", package = "rustc-rayon" }
smallvec = { version = "1.0", features = ["union", "may_dangle"] } smallvec = { version = "1.0", features = ["union", "may_dangle"] }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_ext = { path = "../libsyntax_ext" } syntax_ext = { path = "../librustc_builtin_macros", package = "rustc_builtin_macros" }
syntax_expand = { path = "../libsyntax_expand" } syntax_expand = { path = "../librustc_expand", package = "rustc_expand" }
rustc_parse = { path = "../librustc_parse" } rustc_parse = { path = "../librustc_parse" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_incremental = { path = "../librustc_incremental" } rustc_incremental = { path = "../librustc_incremental" }

View File

@ -13,7 +13,7 @@ log = "0.4"
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_feature = { path = "../librustc_feature" } rustc_feature = { path = "../librustc_feature" }
rustc_index = { path = "../librustc_index" } rustc_index = { path = "../librustc_index" }

View File

@ -22,7 +22,7 @@ rustc_index = { path = "../librustc_index" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
stable_deref_trait = "1.0.0" stable_deref_trait = "1.0.0"
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_expand = { path = "../libsyntax_expand" } syntax_expand = { path = "../librustc_expand", package = "rustc_expand" }
rustc_parse = { path = "../librustc_parse" } rustc_parse = { path = "../librustc_parse" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_error_codes = { path = "../librustc_error_codes" } rustc_error_codes = { path = "../librustc_error_codes" }

View File

@ -637,7 +637,7 @@ impl<'a, 'tcx> CrateMetadata {
// DefIndex's in root.proc_macro_data have a one-to-one correspondence // DefIndex's in root.proc_macro_data have a one-to-one correspondence
// with items in 'raw_proc_macros'. // with items in 'raw_proc_macros'.
// NOTE: If you update the order of macros in 'proc_macro_data' for any reason, // NOTE: If you update the order of macros in 'proc_macro_data' for any reason,
// you must also update src/libsyntax_ext/proc_macro_harness.rs // you must also update src/librustc_builtin_macros/proc_macro_harness.rs
// Failing to do so will result in incorrect data being associated // Failing to do so will result in incorrect data being associated
// with proc macros when deserialized. // with proc macros when deserialized.
let pos = self.root.proc_macro_data.unwrap().decode(self).position(|i| i == id).unwrap(); let pos = self.root.proc_macro_data.unwrap().decode(self).position(|i| i == id).unwrap();

View File

@ -26,7 +26,7 @@ rustc_lexer = { path = "../librustc_lexer" }
rustc_macros = { path = "../librustc_macros" } rustc_macros = { path = "../librustc_macros" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_apfloat = { path = "../librustc_apfloat" } rustc_apfloat = { path = "../librustc_apfloat" }
smallvec = { version = "1.0", features = ["union", "may_dangle"] } smallvec = { version = "1.0", features = ["union", "may_dangle"] }
rustc_error_codes = { path = "../librustc_error_codes" } rustc_error_codes = { path = "../librustc_error_codes" }

View File

@ -18,6 +18,6 @@ rustc_lexer = { path = "../librustc_lexer" }
rustc_errors = { path = "../librustc_errors" } rustc_errors = { path = "../librustc_errors" }
rustc_error_codes = { path = "../librustc_error_codes" } rustc_error_codes = { path = "../librustc_error_codes" }
smallvec = { version = "1.0", features = ["union", "may_dangle"] } smallvec = { version = "1.0", features = ["union", "may_dangle"] }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
unicode-normalization = "0.1.11" unicode-normalization = "0.1.11"

View File

@ -17,6 +17,6 @@ rustc_index = { path = "../librustc_index" }
rustc_parse = { path = "../librustc_parse" } rustc_parse = { path = "../librustc_parse" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
errors = { path = "../librustc_errors", package = "rustc_errors" } errors = { path = "../librustc_errors", package = "rustc_errors" }
rustc_error_codes = { path = "../librustc_error_codes" } rustc_error_codes = { path = "../librustc_error_codes" }

View File

@ -14,5 +14,5 @@ doctest = false
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_metadata = { path = "../librustc_metadata" } rustc_metadata = { path = "../librustc_metadata" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_error_codes = { path = "../librustc_error_codes" } rustc_error_codes = { path = "../librustc_error_codes" }

View File

@ -12,7 +12,7 @@ path = "lib.rs"
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_typeck = { path = "../librustc_typeck" } rustc_typeck = { path = "../librustc_typeck" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_error_codes = { path = "../librustc_error_codes" } rustc_error_codes = { path = "../librustc_error_codes" }
log = "0.4" log = "0.4"

View File

@ -14,11 +14,11 @@ doctest = false
bitflags = "1.2.1" bitflags = "1.2.1"
log = "0.4" log = "0.4"
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_expand = { path = "../libsyntax_expand" } syntax_expand = { path = "../librustc_expand", package = "rustc_expand" }
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
arena = { path = "../libarena" } arena = { path = "../libarena" }
errors = { path = "../librustc_errors", package = "rustc_errors" } errors = { path = "../librustc_errors", package = "rustc_errors" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_feature = { path = "../librustc_feature" } rustc_feature = { path = "../librustc_feature" }
rustc_metadata = { path = "../librustc_metadata" } rustc_metadata = { path = "../librustc_metadata" }

View File

@ -16,6 +16,6 @@ rustc_codegen_utils = { path = "../librustc_codegen_utils" }
rustc_parse = { path = "../librustc_parse" } rustc_parse = { path = "../librustc_parse" }
serde_json = "1" serde_json = "1"
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rls-data = "0.19" rls-data = "0.19"
rls-span = "0.5" rls-span = "0.5"

View File

@ -15,7 +15,7 @@ rustc_feature = { path = "../librustc_feature" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_index = { path = "../librustc_index" } rustc_index = { path = "../librustc_index" }
rustc_fs_util = { path = "../librustc_fs_util" } rustc_fs_util = { path = "../librustc_fs_util" }
num_cpus = "1.0" num_cpus = "1.0"

View File

@ -1,11 +1,11 @@
[package] [package]
authors = ["The Rust Project Developers"] authors = ["The Rust Project Developers"]
name = "syntax_pos" name = "rustc_span"
version = "0.0.0" version = "0.0.0"
edition = "2018" edition = "2018"
[lib] [lib]
name = "syntax_pos" name = "rustc_span"
path = "lib.rs" path = "lib.rs"
doctest = false doctest = false

View File

@ -14,5 +14,5 @@ log = "0.4"
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_macros = { path = "../librustc_macros" } rustc_macros = { path = "../librustc_macros" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_index = { path = "../librustc_index" } rustc_index = { path = "../librustc_index" }

View File

@ -15,6 +15,6 @@ rustc_data_structures = { path = "../librustc_data_structures" }
rustc_macros = { path = "../librustc_macros" } rustc_macros = { path = "../librustc_macros" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
chalk-engine = { version = "0.9.0", default-features=false } chalk-engine = { version = "0.9.0", default-features=false }
smallvec = { version = "1.0", features = ["union", "may_dangle"] } smallvec = { version = "1.0", features = ["union", "may_dangle"] }

View File

@ -19,6 +19,6 @@ errors = { path = "../librustc_errors", package = "rustc_errors" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
smallvec = { version = "1.0", features = ["union", "may_dangle"] } smallvec = { version = "1.0", features = ["union", "may_dangle"] }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
rustc_index = { path = "../librustc_index" } rustc_index = { path = "../librustc_index" }
rustc_error_codes = { path = "../librustc_error_codes" } rustc_error_codes = { path = "../librustc_error_codes" }

View File

@ -25,6 +25,7 @@ extern crate rustc;
extern crate rustc_data_structures; extern crate rustc_data_structures;
extern crate rustc_driver; extern crate rustc_driver;
extern crate rustc_error_codes; extern crate rustc_error_codes;
extern crate rustc_expand as syntax_expand;
extern crate rustc_feature; extern crate rustc_feature;
extern crate rustc_index; extern crate rustc_index;
extern crate rustc_interface; extern crate rustc_interface;
@ -33,11 +34,10 @@ extern crate rustc_lint;
extern crate rustc_metadata; extern crate rustc_metadata;
extern crate rustc_parse; extern crate rustc_parse;
extern crate rustc_resolve; extern crate rustc_resolve;
extern crate rustc_span as syntax_pos;
extern crate rustc_target; extern crate rustc_target;
extern crate rustc_typeck; extern crate rustc_typeck;
extern crate syntax; extern crate syntax;
extern crate syntax_expand;
extern crate syntax_pos;
extern crate test as testing; extern crate test as testing;
#[macro_use] #[macro_use]
extern crate log; extern crate log;

View File

@ -15,7 +15,7 @@ rustc_serialize = { path = "../libserialize", package = "serialize" }
log = "0.4" log = "0.4"
scoped-tls = "1.0" scoped-tls = "1.0"
lazy_static = "1.0.0" lazy_static = "1.0.0"
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../librustc_span", package = "rustc_span" }
errors = { path = "../librustc_errors", package = "rustc_errors" } errors = { path = "../librustc_errors", package = "rustc_errors" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_feature = { path = "../librustc_feature" } rustc_feature = { path = "../librustc_feature" }