Mazdak Farrokhzad
2c3e5d3de0
- remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!}
...
- remove syntax::{help!, span_help!, span_note!}
- remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!}
- lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints
- inline syntax::{struct_span_warn!, diagnostic_used!}
- stringify_error_code! -> error_code! & use it more.
- find_plugin_registrar: de-fatalize an error
- de-fatalize metadata errors
- move type_error_struct! to rustc_typeck
- struct_span_err! -> rustc_errors
2020-01-08 04:25:33 +01:00
Mazdak Farrokhzad
ef08662613
hir::{hir,def,itemlikevisit,pat_util,print} -> rustc_hir
...
Also fix fallout wrt. HashStable.
2020-01-04 19:03:27 +01:00
Mazdak Farrokhzad
b1aad76586
Normalize syntax::edition imports.
2020-01-02 19:31:38 +01:00
Mazdak Farrokhzad
4ff12ce4c1
Normalize syntax::symbol imports.
2020-01-02 13:57:04 +01:00
Mazdak Farrokhzad
75e4783f63
Normalize syntax::source_map imports.
2020-01-02 13:57:04 +01:00
Vadim Petrochenkov
70f1d57048
Rename syntax_pos to rustc_span in source code
2020-01-01 09:15:18 +03:00
Simon Sapin
1c572a2d6e
Stabilize the matches! macro
...
Fixes https://github.com/rust-lang/rust/issues/65721
FCP: https://github.com/rust-lang/rust/issues/65721#issuecomment-569118119
2019-12-27 14:07:16 +01:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Mazdak Farrokhzad
a0d20935cc
introduce 'type AttrVec'
2019-12-20 22:53:40 +01:00
varkor
e3a8ea4e18
Use to_option in various places
2019-12-06 12:23:23 +00:00
Mark Rousskov
52d4d478a1
Move ParseSess to librustc_session
2019-12-03 12:19:16 -05:00
Vadim Petrochenkov
a81804b4d5
syntax: Introduce a struct MacArgs for macro arguments
2019-12-02 21:56:34 +03:00
Mazdak Farrokhzad
79077f13ff
move GateIssue to rustc_feature & simplify emit_feature_err
2019-11-30 07:40:28 +01:00
Mazdak Farrokhzad
b45f21d38e
move UnstableFeatures -> rustc_feature
2019-11-30 02:50:47 +01:00
Mazdak Farrokhzad
db89679ebc
inline two explanation constants
2019-11-30 02:40:45 +01:00
Mazdak Farrokhzad
70234f16df
builtin_attrs.rs -> rustc_feature
2019-11-30 02:34:18 +01:00
Mazdak Farrokhzad
d04b838a44
move is_builtin_attr to syntax::attr
2019-11-30 02:20:07 +01:00
Mazdak Farrokhzad
6cab02cf14
simplify gated cfgs logic
2019-11-30 01:57:53 +01:00
Mazdak Farrokhzad
8ad4d15f38
move AttributeTemplate to builtin_attrs
2019-11-30 00:56:46 +01:00
Mazdak Farrokhzad
048201fa7a
move Stability to rustc_feature
2019-11-30 00:39:51 +01:00
Mazdak Farrokhzad
3d080a4a77
introduce crate rustc_feature and move active, accepted, and removed to it
2019-11-30 00:25:40 +01:00
Camille GILLOT
782cc9f65c
Derive HashStable for TokenKind.
2019-11-23 18:52:23 +01:00
Camille GILLOT
ce301075c0
Rename StableHashingContextLike to HashStableContext.
2019-11-23 17:57:00 +01:00
Camille GILLOT
31298b41d6
Invert implementations for TokenKind.
...
Also export a bunch of Token-related impls.
2019-11-22 20:01:45 +01:00
Camille GILLOT
0073d3be97
Export HashStable for DelimSpan, Lit and Path.
2019-11-22 20:01:43 +01:00
Camille GILLOT
1de5fdb5ba
Add StableHashingContextLike to HashStable_Generic derive.
2019-11-22 19:56:20 +01:00
Mark Rousskov
c31a8754e3
Move JSON emitter to rustc_errors
2019-11-15 08:45:49 -05:00
Mark Rousskov
942f0a6f7a
Move SourceMap to syntax_pos
...
This does not update the use sites or delete the now unnecessary
SourceMapper trait, to allow git to interpret the file move as a rename
rather than a new file.
2019-11-15 08:38:31 -05:00
Guillaume Gomez
798e389e57
Update to use new librustc_error_codes library
2019-11-14 13:05:42 +01:00
Mazdak Farrokhzad
4ae2728fa8
move syntax::parse -> librustc_parse
...
also move MACRO_ARGUMENTS -> librustc_parse
2019-11-10 03:57:18 +01:00
Mazdak Farrokhzad
be023ebe85
move config.rs to libsyntax_expand
2019-11-10 02:46:17 +01:00
Mazdak Farrokhzad
cc9c139694
move syntax::{parse::literal -> util::literal}
2019-11-07 13:59:13 +01:00
Mazdak Farrokhzad
27f97aa468
move syntax::parse::lexer::comments -> syntax::util::comments
2019-11-07 13:59:13 +01:00
Mazdak Farrokhzad
255b12a8d3
move parse::classify -> util::classify
2019-11-07 13:59:13 +01:00
Mazdak Farrokhzad
9d6768a478
syntax::parser::token -> syntax::token
2019-11-07 13:50:12 +01:00
Mazdak Farrokhzad
fb12c70852
rustc, rustc_passes: don't depend on syntax_expand.
...
This is done by moving some data definitions to syntax::expand.
2019-10-27 17:05:57 +01:00
Mazdak Farrokhzad
16329402bf
syntax/attr: reduce reliance on parser
2019-10-27 16:54:12 +01:00
Mazdak Farrokhzad
d7f6ba83fc
move panictry! to where it is used.
2019-10-25 04:29:37 +02:00
guanqun
379733e8a0
typo fix
2019-10-20 23:03:33 +08:00
Mazdak Farrokhzad
d420d719c4
move syntax::ext to new crate syntax_expand
2019-10-16 10:59:53 +02:00
Mazdak Farrokhzad
ae156a56d4
syntax::parse::sess -> syntax::sess
2019-10-15 09:41:58 +02:00
Mazdak Farrokhzad
7effe633b0
simplify integer_lit
2019-10-13 06:20:03 +02:00
Jon Gjengset
45aca119a6
Stabilize mem::take (mem_take)
...
Tracking issue: https://github.com/rust-lang/rust/issues/61129
2019-10-08 18:04:18 -04:00
csmoe
d20183dbbf
remove bit_set re-export from rustc_data_structures
2019-09-29 16:11:30 +00:00
Mark Rousskov
f359a94849
Snap cfgs to new beta
2019-09-25 08:42:46 -04:00
Mazdak Farrokhzad
6a4be43212
Rollup merge of #64689 - matklad:refactor-mbe, r=petrochenkov
...
Refactor macro by example
This doesn't do anything useful yet, and just moves code around and restricts visibility
2019-09-24 23:45:24 +02:00
Aleksey Kladov
e30c5166db
move mbe module to a separate file
2019-09-22 20:30:03 +03:00
Aleksey Kladov
49f849cdb7
rename tt -> mbe, part 2
2019-09-22 20:30:00 +03:00
Aleksey Kladov
645cdca9ba
reduce visibility of a bunch of stuff in ext::tt
2019-09-22 20:29:31 +03:00
Mark Rousskov
2a3930d43c
Privatize DiagnosticBuilder constructors
2019-09-17 09:30:44 -04:00