about summary refs log tree commit diff
path: root/src/libsyntax_pos
AgeCommit message (Collapse)AuthorLines
2018-08-19Parse try blocks with the try keyword instead of do catch placeholderScott McMurray-1/+1
2018-08-19Add `try` to syntax_pos as an edition-2018-only keywordScott McMurray-10/+19
2018-08-19Rename `Catch` variants to `TryBlock`Scott McMurray-2/+2
(Not `Try` since `QuestionMark` is using that.)
2018-08-19mv codemap source_mapDonato Sciarra-2/+2
2018-08-19mv filemap source_fileDonato Sciarra-38/+38
2018-08-19mv FileMap SourceFileDonato Sciarra-27/+27
2018-08-19mv CodeMap SourceMapDonato Sciarra-7/+7
2018-08-19Fix typos found by codespell.Matthias Krüger-1/+1
2018-08-09[nll] libsyntax_pos: enable feature(nll) for bootstrapmemoryruins-0/+1
2018-08-01Switch to bootstrapping from 1.29 betaMark Rousskov-2/+0
2018-07-28Auto merge of #52355 - pietroalbini:zfeature, r=eddybbors-0/+5
Add the -Zcrate-attr=foo unstable rustc option This PR adds a new unstable option to `rustc`: `-Zcrate-attr=foo`. The option can be used to inject crate-level attributes from the CLI, and it's meant to be used by tools like Crater that needs to add their own attributes to a crate without changing the source code. The exact reason I need this is to implement "edition runs" in Crater: we need to add the preview feature flag to every crate, and editing the crates' source code on the fly might produce unexpected results, while a compiler flag is more reliable. cc https://github.com/rust-lang-nursery/crater/issues/282 @Mark-Simulacrum
2018-07-28Rollup merge of #52703 - ljedrz:vec_improvements, r=nikomatsakiskennytm-5/+4
Improve a few vectors - calculate capacity or build from iterators Collecting from iterators improves readability and tailoring vector capacities should be beneficial in terms of performance.
2018-07-27Add the -Zcrate-attr=foo nightly rustc flag to inject crate attributesPietro Albini-0/+5
2018-07-26Improve a few vectors - calculate capacity or build from iteratorsljedrz-5/+4
2018-07-25Deny bare_trait_objects globallyTatsuyuki Ishi-2/+0
2018-07-19Auto merge of #52024 - oli-obk:existential_parse, r=nikomatsakisbors-0/+1
Implement existential types (not for associated types yet) r? @nikomatsakis cc @Centril @varkor @alexreg
2018-07-18Do not use desugared ident when suggesting adding a typeEsteban Küber-0/+2
2018-07-18Implement existential typesOliver Schneider-0/+1
2018-07-14Remove most of `PartialEq` impls from AST and HIR structuresVadim Petrochenkov-1/+1
2018-07-12Deny bare trait objects in the rest of rustljedrz-0/+2
2018-07-08Remove fallback to parent modules from lexical resolutionVadim Petrochenkov-24/+22
2018-07-08hygiene: Decouple transparencies from expansion IDsVadim Petrochenkov-32/+44
2018-07-08libsyntax_pos: Tweak some visibilitiesVadim Petrochenkov-11/+19
2018-06-30Address commentsVadim Petrochenkov-6/+5
2018-06-30Fortify dummy span checkingVadim Petrochenkov-1/+8
2018-06-30hygiene: Implement transparent marksVadim Petrochenkov-22/+90
2018-06-28Auto merge of #50997 - michaelwoerister:pre-analyze-filemaps, r=Mark-Simulacrumbors-81/+489
Make FileMap::{lines, multibyte_chars, non_narrow_chars} non-mutable. This PR removes most of the interior mutability from `FileMap`, which should be beneficial, especially in a multithreaded setting. This is achieved by initializing the state in question when the filemap is constructed instead of during lexing. Hopefully this doesn't degrade performance. cc @wesleywiser
2018-06-28Fix FileMap::line_begin_pos().Michael Woerister-5/+3
The method relied on the FileMap still being under construction in order for it to do what the name promises. It's now independent of the current state.
2018-06-28Fix rebaseVadim Petrochenkov-0/+5
2018-06-28Use `Ident`s for associated item definitions in HIRVadim Petrochenkov-22/+1
Remove emulation of hygiene with gensyms
2018-06-28Use `Ident`s for lifetimes in HIRVadim Petrochenkov-0/+4
2018-06-27syntax_pos: Store multibyte char size as u8 instead of u32.Michael Woerister-2/+2
2018-06-27Add comments to analzye_filemap().Michael Woerister-0/+2
2018-06-27Add SSE2 accelerated version of FileMap analysis.Michael Woerister-68/+444
2018-06-27Use u32 instead of usize of encoding byte count of multi-byte chars.Michael Woerister-3/+17
2018-06-27Make FileMap::{lines, multibyte_chars, non_narrow_chars} non-mutable.Michael Woerister-70/+88
2018-06-27Implement `#[macro_export(local_inner_macros)]`Vadim Petrochenkov-0/+3
2018-06-26migrate codebase to `..=` inclusive range patternsZack M. Davis-2/+2
These were stabilized in March 2018's #47813, and are the Preferred Way to Do It going forward (q.v. #51043).
2018-06-25Fix typoBerkus Karchebnyy-1/+1
2018-06-23hygiene: Merge `NameAndSpan` into `ExpnInfo`Vadim Petrochenkov-52/+41
2018-06-23hygiene: Make sure transparency of `Mark::root()` is an implementation ↵Vadim Petrochenkov-0/+2
detail and cannot be inspected outside of `hygiene.rs`
2018-06-23hygiene: Rename `MarkKind` to `Transparency`Vadim Petrochenkov-19/+51
Move `is_builtin` for `Mark` to a separate flag
2018-06-23hygiene: Make sure expansion info is set at most once for a given `Mark`Vadim Petrochenkov-1/+8
2018-06-23hygiene: Give `Debug` impls to hygiene structuresVadim Petrochenkov-2/+4
2018-06-21async await desugaring and testsTaylor Cramer-0/+2
2018-06-18Auto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelixbors-0/+5
Add existential type definitions Note: this does not allow creating named existential types, it just desugars `impl Trait` to a less (but still very) hacky version of actual `existential type` items. r? @nikomatsakis
2018-06-14Fix comment on editionsManish Goregaokar-1/+1
2018-06-09Implement RFC 2421, 'Keyword unreservations (pure, sizeof, alignof, offsetof)'Havvy-22/+18
2018-06-07Add existential type definitonsOliver Schneider-0/+5
2018-06-04Add doc keyword supportGuillaume Gomez-0/+11