Mazdak Farrokhzad
cd21715c34
Rollup merge of #63613 - petrochenkov:stdhyg, r=alexcrichton
...
Hygienize use of built-in macros in the standard library
Same as https://github.com/rust-lang/rust/pull/61629 , but for built-in macros.
Closes https://github.com/rust-lang/rust/issues/48781
r? @alexcrichton
2019-08-16 18:22:30 +02:00
Vadim Petrochenkov
263e3c5950
Remove __rust_unstable_column
2019-08-15 22:58:57 +03:00
Vadim Petrochenkov
6cb28b6617
Ident::with_empty_ctxt -> Ident::with_dummy_span
...
`Ident` has had a full span rather than just a `SyntaxContext` for a long time now.
2019-08-15 20:39:26 +03:00
Vadim Petrochenkov
73dae4eaf9
Remove derives Encodable/Decodable and unstabilize attribute #[bench]
2019-07-31 21:27:59 +03:00
Vadim Petrochenkov
676d282dd3
Deny unused_lifetimes through rustbuild
2019-07-28 18:47:02 +03:00
Vadim Petrochenkov
434152157f
Remove lint annotations in specific crates that are already enforced by rustbuild
...
Remove some random unnecessary lint `allow`s
2019-07-28 18:46:24 +03:00
Vadim Petrochenkov
b5a0e6ea80
syntax_ext: proc_macro_decls -> proc_macro_harness
...
Few other minor renamings for consistency.
Remove one unused dependency from `rustc_passes`.
Fix libsyntax tests.
Fix rebase.
2019-07-27 14:16:16 +03:00
Vadim Petrochenkov
4d535bdf59
Move standard library injection into libsyntax_ext
2019-07-27 13:56:54 +03:00
Vadim Petrochenkov
f6eda99379
Move test harness generation into libsyntax_ext
2019-07-27 13:56:54 +03:00
Vadim Petrochenkov
4ad0daa220
Move proc macro server into libsyntax
2019-07-27 13:55:25 +03:00
Vadim Petrochenkov
3eeec1c5d2
Break dependencies between syntax_ext and some other crates
...
Move `source_uitil` macros into `syntax_ext`
Cleanup dependencies of `rustc_driver`
2019-07-27 13:52:37 +03:00
Vadim Petrochenkov
8eaf17bca2
Introduce built-in macros through libcore
2019-07-26 13:09:54 +03:00
Vadim Petrochenkov
433024147a
syntax_ext: Turn #[global_allocator] into a regular attribute macro
2019-07-24 12:29:44 +03:00
Vadim Petrochenkov
a93fdfedf3
Merge rustc_allocator into libsyntax_ext
2019-07-24 12:27:58 +03:00
Aleksey Kladov
27b703dd40
add rustc_private as a proper language feature gate
...
At the moment, `rustc_private` as a (library) feature exists by
accident: `char::is_xid_start`, `char::is_xid_continue` methods in
libcore define it.
2019-07-22 16:32:13 +03:00
Vadim Petrochenkov
f1d4ebf015
Remove unnecessary expansions created by #[test_case/test/bench]
...
The expansions were created to allow unstable things inside `#[test_case/test/bench]`, but that's not a proper way to do that.
Put the required `allow_internal_unstable`s into the macros' properties instead.
2019-07-11 00:12:07 +03:00
Vadim Petrochenkov
b6d522a101
syntax: Pre-intern names of all built-in macros
...
They always end up interned anyway
2019-07-07 13:04:07 +03:00
Vadim Petrochenkov
1ee0ce82cb
syntax: Migrate built-in macros to the regular stability checking
2019-07-07 13:04:07 +03:00
flip1995
084c829fb8
Enable internal lints in bootstrap
2019-06-24 10:45:20 +02:00
Vadim Petrochenkov
679000cc0e
allow_internal_unstable: Avoid some more allocations
2019-06-18 10:48:56 +03:00
Vadim Petrochenkov
961ba8f9ef
syntax: Factor out common fields from SyntaxExtension variants
2019-06-18 10:48:56 +03:00
bors
961a9d6e97
Auto merge of #61741 - Centril:rollup-fgro5kz, r=Centril
...
Rollup of 11 pull requests
Successful merges:
- #61518 (Add loops to doc list of things not stable in const fn)
- #61526 (move some tests into subfolders)
- #61550 (Windows 10 SDK is also required now.)
- #61606 (Remove some legacy proc macro flavors)
- #61652 (Mention slice patterns in array)
- #61686 (librustc_errors: Add some more documentation)
- #61698 (typeck: Fix const generic in repeat param ICE.)
- #61707 (Azure: retry failed awscli installs)
- #61715 (make sure make_ascii_lowercase actually leaves upper-case non-ASCII characters alone)
- #61724 (core: use memcmp optimization for 128 bit integer slices)
- #61726 (Use `for_each` in `Iterator::partition`)
Failed merges:
r? @ghost
2019-06-11 23:29:20 +00:00
Eduard-Mihai Burtescu
ce0ba38921
syntax_ext: deny(unused_lifetimes).
2019-06-11 14:11:58 +03:00
Vadim Petrochenkov
93eb63c9a5
syntax: Rename variants of SyntaxExtension for consistency
2019-06-10 21:34:26 +03:00
Vadim Petrochenkov
8edbbacbca
syntax: Remove SyntaxExtension::DeclMacro
...
It's a less powerful duplicate of `SyntaxExtension::NormalTT`
2019-06-10 21:33:31 +03:00
Nicholas Nethercote
26451ef7b5
Avoid unnecessary internings.
...
Most involving `Symbol::intern` on string literals.
2019-05-27 13:58:38 +10:00
John Kåre Alsaker
a1f2dceaeb
Move edition outside the hygiene lock and avoid accessing it
2019-05-21 18:17:05 +02:00
bors
d6f513ec7d
Auto merge of #60025 - JohnTitor:rename-files, r=petrochenkov
...
Rename files about error codes
fixes #60017
This PR will be failed in tidy.
<details>
<summary>The log is here:</summary>
```
tidy check
tidy error: duplicate error code: 411
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:83: __diagnostic_used!(E0411);
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:84: err.code(DiagnosticId::Error("E0411".to_owned()));
tidy error: duplicate error code: 424
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:90: debug!("smart_resolve_path_fragment: E0424, source={:?}", source);
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:92: __diagnostic_used!(E0424);
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:93: err.code(DiagnosticId::Error("E0424".to_owned()));
some tidy checks failed
```
</details>
I'd like to fix this but I don't know what to do.
I will work on later. Please let me know if you have any solutions.
r? @petrochenkov
2019-04-18 14:52:45 +00:00
Yuki OKUSHI
9ad56e3b94
Rename modules
2019-04-17 18:21:34 +09:00
Mateusz Mikuła
87e4b43d51
Deny internal in stage0
2019-04-17 05:15:00 +02:00
flip1995
d3f0cb9b62
Deny internal lints on non conflicting crates
...
- libarena
- librustc_allocator
- librustc_borrowck
- librustc_codegen_ssa
- librustc_codegen_utils
- librustc_driver
- librustc_errors
- librustc_incremental
- librustc_metadata
- librustc_passes
- librustc_privacy
- librustc_resolve
- librustc_save_analysis
- librustc_target
- librustc_traits
- libsyntax
- libsyntax_ext
- libsyntax_pos
2019-04-03 18:24:21 +02:00
Mazdak Farrokhzad
0bc8f6f3f4
Rollup merge of #58273 - taiki-e:rename-dependency, r=matthewjasper
...
Rename rustc_errors dependency in rust 2018 crates
I think this is a better solution than `use rustc_errors as errors` in `lib.rs` and `use crate::errors` in modules.
Related: rust-lang/cargo#5653
cc #58099
r? @Centril
2019-02-13 04:37:04 +01:00
bors
0f949c2fcc
Auto merge of #58051 - SimonSapin:str_escape, r=alexcrichton
...
Stabilize str::escape_* methods with new return types…
… that implement `Display` and `Iterator<Item=char>`, as proposed in FCP: https://github.com/rust-lang/rust/issues/27791#issuecomment-376864727
2019-02-12 23:30:16 +00:00
Taiki Endo
3216c7656a
Rename rustc_errors dependency in rust 2018 crates
2019-02-13 00:28:52 +09:00
bors
c84e797642
Auto merge of #58098 - oli-obk:maybe_allow_internal_unstable, r=petrochenkov
...
Require a list of features in `#[allow_internal_unstable]`
The blanket-permission slip is not great and will likely give us trouble some point down the road.
2019-02-12 12:10:10 +00:00
Simon Sapin
55216f82a6
Stabilize str::escape_* methods
...
FCP: https://github.com/rust-lang/rust/issues/27791#issuecomment-376864727
2019-02-12 09:55:29 +01:00
Oliver Scherer
b681433b9d
Use Rc<[Symbol]> instead of Vec<Symbol> to reduce # of allocs
2019-02-11 15:08:17 +01:00
Oliver Scherer
d3c212c552
Require a list of features to allow in allow_internal_unstable
2019-02-11 15:08:16 +01:00
Taiki Endo
2be0993c4e
Revert removed #![feature(nll)]
2019-02-10 16:13:30 +09:00
Guillaume Gomez
8b886e07f5
Remove images' url to make it work even without internet connection
2019-02-07 11:06:19 +01:00
Taiki Endo
94f121ff3f
libsyntax_ext => 2018
2019-02-04 21:49:54 +09:00
Mark Simulacrum
db97c48ad6
Remove quote_*! macros and associated APIs
2019-01-24 07:37:34 -07:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
John Kåre Alsaker
0c4d551146
Fix recursion limits
2018-12-23 10:46:03 +01:00
Vadim Petrochenkov
8ab115c21d
Unsupport #[derive(Trait)] sugar for #[derive_Trait] legacy plugin attributes
2018-12-07 03:30:01 +03:00
Eduard-Mihai Burtescu
8cf463bcff
proc_macro: move the rustc server to syntax_ext.
2018-11-30 06:15:19 +02:00
Eduard-Mihai Burtescu
e305994beb
proc_macro: introduce a "bridge" between clients (proc macros) and servers (compiler front-ends).
2018-11-30 06:15:19 +02:00
Josh Stone
ce034951fb
Bump to 1.31.0 and bootstrap from 1.30 beta
2018-09-27 20:52:53 -07:00
toidiu
731f4efae5
stabalize infer outlives requirements (RFC 2093).
...
Co-authored-by: nikomatsakis
2018-09-11 11:40:04 -04:00
Vadim Petrochenkov
62c7d78a9a
resolve: Remove unshadowable_attrs
2018-09-10 04:04:51 +03:00