about summary refs log tree commit diff
path: root/src/libsyntax_pos
AgeCommit message (Collapse)AuthorLines
2019-04-22Promote rust comments to rustdocAlexey Shmalko-3/+3
2019-04-17Deny `internal` in stage0Mateusz Mikuła-1/+1
2019-04-15Preallocate BUILTIN_ATTRIBUTES symbols and use a hash map instead of loopingJohn Kåre Alsaker-10/+121
2019-04-15Use colon for keyword defsJohn Kåre Alsaker-61/+61
2019-04-15Move modules outside the proc macroJohn Kåre Alsaker-0/+28
2019-04-15Make check_name genericJohn Kåre Alsaker-1/+2
2019-04-15Use a proc macro to declare preallocated symbolsJohn Kåre Alsaker-125/+91
2019-04-14Add missing backtick to Symbol documentation.krk-1/+1
2019-04-14Auto merge of #59693 - nnethercote:64-bit-Spans, r=petrochenkovbors-101/+88
Increase `Span` from 4 bytes to 8 bytes. This increases the size of some important types, such as `ast::Expr` and `mir::Statement`. However, it drastically reduces how much the interner is used, and the fields are more natural sizes that don't require bit operations to extract. As a result, instruction counts drop across a range of workloads, by as much as 10% for `script-servo` incremental builds. Peak memory usage goes up a little for some cases, but down by more for some other cases -- as much as 18% for non-incremental builds of `packed-simd`. The commit also: - removes the `repr(packed)`, because it has negligible effect, but can cause undefined behaviour; - replaces explicit impls of common traits (`Copy`, `PartialEq`, etc.) with derived ones. r? @petrochenkov
2019-04-14Rollup merge of #59735 - matklad:deadcode, r=sanxiynMazdak Farrokhzad-12/+1
remove lookup_char_pos_adj It is now exactly equivalent to lookup_char_pos.
2019-04-11Auto merge of #59227 - Zoxc:fix-get, r=eddybbors-1/+5
Fix lifetime on LocalInternedString::get function cc @eddyb @nnethercote
2019-04-05remove lookup_char_pos_adjAleksey Kladov-12/+1
It is now exactly equivalent to lookup_char_pos.
2019-04-05Increase `Span` from 4 bytes to 8 bytes.Nicholas Nethercote-101/+88
This increases the size of some important types, such as `ast::Expr` and `mir::Statement`. However, it drastically reduces how much the interner is used, and the fields are more natural sizes that don't require bit operations to extract. As a result, instruction counts drop across a range of workloads, by as much as 12% for incremental "check" builds of `script-servo`. Peak memory usage goes up a little for some cases, but down by more for some other cases -- as much as 18% for non-incremental builds of `packed-simd`. The commit also: - removes the `repr(packed)`, because it has negligible effect, but can cause undefined behaviour; - replaces explicit impls of common traits (`Copy`, `PartialEq`, etc.) with derived ones.
2019-04-03Deny internal lints on non conflicting cratesflip1995-0/+1
- 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-03Tweak `Span` encoding.Nicholas Nethercote-3/+3
Failing to fit `base` is more common than failing to fit `len`.
2019-03-31Fix lifetime on LocalInternedString::get functionJohn Kåre Alsaker-1/+5
2019-03-26bump bootstrap; adjust stage0 uses in libsyntax_posMazdak Farrokhzad-1/+0
2019-03-19Do not encode gensymed imports in metadataVadim Petrochenkov-0/+4
2019-03-16syntax: Introduce `Ident::can_be_raw`Vadim Petrochenkov-4/+9
2019-02-26update scoped_tls to 1.0Marcel Hellwig-1/+1
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-31/+31
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-12Auto merge of #58098 - oli-obk:maybe_allow_internal_unstable, r=petrochenkovbors-5/+10
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-11Parallel rustc needs synchronizing smart pointer cloningOliver Scherer-2/+2
2019-02-11Use `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocsOliver Scherer-3/+5
2019-02-11Ease the transition to requiring features by just warning if there's no ↵Oliver Scherer-1/+4
feature list while we could make this change (it's all unstable after all), there are crates.io crates that use the feature and that the compiler depends upon. We can instead roll out this feature while still supporting the old way.
2019-02-11Require a list of features to allow in `allow_internal_unstable`Oliver Scherer-5/+5
2019-02-10rustc: doc commentsAlexander Regueiro-31/+31
2019-02-10Revert removed #![feature(nll)]Taiki Endo-0/+1
2019-02-07Remove images' url to make it work even without internet connectionGuillaume Gomez-3/+1
2019-02-04libsyntax_pos => 2018Taiki Endo-60/+51
2019-01-28Use multiple threads by default. Limits tests to one thread. Do some renaming.John Kåre Alsaker-4/+4
2019-01-21Fix typovarkor-1/+1
Co-Authored-By: estebank <estebank@users.noreply.github.com>
2019-01-21Fix typovarkor-1/+1
Co-Authored-By: estebank <estebank@users.noreply.github.com>
2019-01-20Use is_dummy instead of comparing against DUMMY_SPEsteban Küber-2/+2
2019-01-20Remove unnecessary dummy span checksEsteban Küber-0/+10
The emitter already verifies wether a given span note or span label can be emitted to the output. If it can't, because it is a dummy span, it will be either elided for labels or emitted as an unspanned note/help when applicable.
2019-01-13remove extern_in_paths.Mazdak Farrokhzad-1/+0
2018-12-25Remove licensesMark Rousskov-60/+0
2018-12-23Rollup merge of #57020 - estebank:return-span, r=zackmdavisMazdak Farrokhzad-0/+7
Point to cause of `fn` expected return type Fix #48136.
2018-12-20Point at coercion source on type errors for fn returning `impl Trait`Esteban Küber-0/+7
2018-12-19Reintroduce special pretty-printing for `$crate` when it's necessary for ↵Vadim Petrochenkov-2/+24
proc macros
2018-12-19Remove `eliminate_crate_var` and special pretty-printing for `$crate`Vadim Petrochenkov-16/+0
2018-12-14Rollup merge of #56699 - nnethercote:SymbolIndex, r=oli-obkkennytm-22/+42
Use a `newtype_index!` within `Symbol`. This shrinks `Option<Symbol>` from 8 bytes to 4 bytes, which shrinks `Token` from 24 bytes to 16 bytes. This reduces instruction counts by up to 1% across a range of benchmarks. r? @oli-obk
2018-12-12Bump to 1.33.0Alex Crichton-1/+1
* Update bootstrap compiler * Update version to 1.33.0 * Remove some `#[cfg(stage0)]` annotations Actually updating the version number is blocked on updating Cargo
2018-12-12Use a `newtype_index!` within `Symbol`.Nicholas Nethercote-22/+42
This shrinks `Option<Symbol>` from 8 bytes to 4 bytes, which shrinks `Token` from 24 bytes to 16 bytes. This reduces instruction counts by up to 1% across a range of benchmarks.
2018-12-10Update Cargo submodule and its dependenciesAlex Crichton-2/+1
Hopefully just another routine update! So far this starts to enable the `std::arch` in stage0 builds of rustc. This means that we may need stage0/not(stage0) in stdsimd itself, but more and more code is starting to use `std::arch` so I think it's time to start shifting the balance of work here.
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-109/+112
2018-12-06Fix printing of spans with no TyCtxtJohn Kåre Alsaker-1/+1
2018-12-06Auto merge of #56392 - petrochenkov:regensym, r=oli-obkbors-1/+5
Delay gensym creation for "underscore items" (`use foo as _`/`const _`) until name resolution So they cannot be cloned by macros. See https://github.com/rust-lang/rust/pull/56303 for the discussion. Mostly fix cross-crate use of underscore items by inverting the "gensyms are lost in metadata" bug as described in https://github.com/rust-lang/rust/pull/56303#issuecomment-442464695. Fix unused import warnings for single-segment imports (first commit) and `use crate_name as _` imports (as specified in https://github.com/rust-lang/rust/pull/56303#issuecomment-442274118). Prohibit accidentally implemented `static _: TYPE = EXPR;` (cc https://github.com/rust-lang/rust/pull/55983). Add more tests for `use foo as _` imports.
2018-12-06Rollup merge of #56500 - ljedrz:cleanup_rest_of_const_lifetimes, r=zackmdavisPietro Albini-1/+1
cleanup: remove static lifetimes from consts A follow-up to https://github.com/rust-lang/rust/pull/56497.
2018-12-06Rollup merge of #56426 - petrochenkov:syntweak, r=nikomatsakisPietro Albini-17/+24
libsyntax_pos: A few tweaks