| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-08-30 | mv compiler to compiler/ | mark | -712/+0 | |
| 2020-08-22 | Add backwards-compat hack for certain '$name' tokens | Aaron Hill | -7/+13 | |
| See issue #74616 | ||||
| 2020-08-17 | rust_ast::ast => rustc_ast | Ujjwal Sharma | -1/+1 | |
| 2020-08-11 | Introduce `rustc_lexer::is_ident` and use it in couple of places | Vadim Petrochenkov | -9/+1 | |
| 2020-08-08 | Eliminate the `SessionGlobals` from `librustc_ast`. | Nicholas Nethercote | -1/+1 | |
| By moving `{known,used}_attrs` from `SessionGlobals` to `Session`. This means they are accessed via the `Session`, rather than via TLS. A few `Attr` methods and `librustc_ast` functions are now methods of `Session`. All of this required passing a `Session` to lots of functions that didn't already have one. Some of these functions also had arguments removed, because those arguments could be accessed directly via the `Session` argument. `contains_feature_attr()` was dead, and is removed. Some functions were moved from `librustc_ast` elsewhere because they now need to access `Session`, which isn't available in that crate. - `entry_point_type()` --> `librustc_builtin_macros` - `global_allocator_spans()` --> `librustc_metadata` - `is_proc_macro_attr()` --> `Session` | ||||
| 2020-08-06 | rustc_expand: Don not beautify doc comments before passing them to macros | Vadim Petrochenkov | -4/+2 | |
| Beautify all doc strings in rustdoc instead, including those in `#[doc]` attributes | ||||
| 2020-08-06 | rustc_ast: Stop using "string typing" for doc comment tokens | Vadim Petrochenkov | -4/+3 | |
| Explicitly store their kind and style retrieved during lexing in the token | ||||
| 2020-07-26 | proc_macro: Add API for tracked access to environment variables | Vadim Petrochenkov | -0/+9 | |
| 2020-07-15 | Remove lots of `Symbol::as_str()` calls. | Nicholas Nethercote | -2/+2 | |
| In various ways, such as changing functions to take a `Symbol` instead of a `&str`. | ||||
| 2020-07-02 | Auto merge of #73954 - Manishearth:rollup-8qvh170, r=Manishearth | bors | -1/+1 | |
| Rollup of 10 pull requests Successful merges: - #73414 (Implement `slice_strip` feature) - #73564 (linker: Create GNU_EH_FRAME header by default when producing ELFs) - #73622 (Deny unsafe ops in unsafe fns in libcore) - #73684 (add spans to injected coverage counters, extract with CoverageData query) - #73812 (ast_pretty: Pass some token streams and trees by reference) - #73853 (Add newline to rustc MultiSpan docs) - #73883 (Compile rustdoc less often.) - #73885 (Fix wasm32 being broken due to a NodeJS version bump) - #73903 (Changes required for rustc/cargo to build for iOS targets) - #73938 (Optimise fast path of checked_ops with `unlikely`) Failed merges: r? @ghost | ||||
| 2020-07-01 | Remove `token::FlattenGroup` | Vadim Petrochenkov | -17/+8 | |
| 2020-07-01 | expand: Stop using nonterminals for passing tokens to attribute and derive ↵ | Vadim Petrochenkov | -2/+6 | |
| macros | ||||
| 2020-06-27 | ast_pretty: Pass some token streams and trees by reference | Vadim Petrochenkov | -1/+1 | |
| 2020-06-26 | proc_macro: Stop flattening groups with dummy spans | Vadim Petrochenkov | -12/+26 | |
| 2020-06-10 | Migrate to numeric associated consts | Lzu Tao | -4/+4 | |
| 2020-06-04 | Add `-Z span-debug` to allow for easier debugging of proc macros | Aaron Hill | -1/+7 | |
| Currently, the `Debug` impl for `proc_macro::Span` just prints out the byte range. This can make debugging proc macros (either as a crate author or as a compiler developer) very frustrating, since neither the actual filename nor the `SyntaxContext` is displayed. This commit adds a perma-unstable flag `-Z span-debug`. When enabled, the `Debug` impl for `proc_macro::Span` simply forwards directly to `rustc_span::Span`. Once #72618 is merged, this will start displaying actual line numbers. While `Debug` impls are not subject to Rust's normal stability guarnatees, we probably shouldn't expose any additional information on stable until `#![feature(proc_macro_span)]` is stabilized. Otherwise, we would be providing a 'backdoor' way to access information that's supposed be behind unstable APIs. | ||||
| 2020-05-29 | Split payload of FileName::Real to track both real and virutalized paths. | Felix S. Klock II | -1/+2 | |
| Such splits arise from metadata refs into libstd. This way, we can (in a follow on commit) continue to emit the virtual name into things like the like the StableSourceFileId that ends up in incremetnal build artifacts, while still using the devirtualized file path when we want to access the file. Note that this commit is intended to be a refactoring; the actual fix to the bug in question is in a follow-on commit. | ||||
| 2020-05-15 | Fix {:#?} representation of proc_macro::Literal | David Tolnay | -3/+8 | |
| Before: TokenStream [ Ident { ident: "name", span: #0 bytes(37..41), }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42..43), }, Literal { lit: Lit { kind: Str, symbol: "SNPP", suffix: None }, span: Span { lo: BytePos(44), hi: BytePos(50), ctxt: #0 } }, Punct { ch: ',', spacing: Alone, span: #0 bytes(50..51), }, Ident { ident: "owner", span: #0 bytes(56..61), }, Punct { ch: '=', spacing: Alone, span: #0 bytes(62..63), }, Literal { lit: Lit { kind: Str, symbol: "Canary M Burns", suffix: None }, span: Span { lo: BytePos(64), hi: BytePos(80), ctxt: #0 } }, ] After: TokenStream [ Ident { ident: "name", span: #0 bytes(37..41), }, Punct { ch: '=', spacing: Alone, span: #0 bytes(42..43), }, Literal { kind: Str, symbol: "SNPP", suffix: None, span: #0 bytes(44..50), }, Punct { ch: ',', spacing: Alone, span: #0 bytes(50..51), }, Ident { ident: "owner", span: #0 bytes(56..61), }, Punct { ch: '=', spacing: Alone, span: #0 bytes(62..63), }, Literal { kind: Str, symbol: "Canary M Burns", suffix: None, span: #0 bytes(64..80), }, ] | ||||
| 2020-05-08 | Remove ast::{Ident, Name} reexports. | Camille GILLOT | -2/+2 | |
| 2020-05-03 | Implement `confusable_idents` lint. | Charles Lew | -4/+5 | |
| 2020-02-29 | Rename `syntax` to `rustc_ast` in source code | Vadim Petrochenkov | -6/+6 | |
| 2020-02-28 | Rollup merge of #69481 - matthiaskrgr:single_char, r=ecstatic-morse | Mazdak Farrokhzad | -2/+2 | |
| use char instead of &str for single char patterns | ||||
| 2020-02-27 | don't use .into() to convert types into identical types. | Matthias Krüger | -7/+3 | |
| example: let s: String = format!("hello").into(); | ||||
| 2020-02-27 | use char instead of &str for single char patterns | Matthias Krüger | -2/+2 | |
| 2020-02-01 | syntax::print -> new crate rustc_ast_pretty | Mazdak Farrokhzad | -1/+1 | |
| 2020-02-01 | 1. move node_id to syntax | Mazdak Farrokhzad | -1/+1 | |
| 2. invert rustc_session & syntax deps 3. drop rustc_session dep in rustc_hir | ||||
| 2020-01-10 | nix syntax::errors & prefer rustc_errors over errors | Mazdak Farrokhzad | -9/+8 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -2/+2 | |
| 2019-12-31 | Add symbol normalization for proc_macro_server. | Charles Lew | -0/+2 | |
| 2019-12-30 | Rename directories for some crates from `syntax_x` to `rustc_x` | Vadim Petrochenkov | -0/+689 | |
| `syntax_expand` -> `rustc_expand` `syntax_pos` -> `rustc_span` `syntax_ext` -> `rustc_builtin_macros` | ||||
