summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2015-09-03Use consistent terminology for byte string literalsVadim Petrochenkov-1/+1
Avoid confusion with binary integer literals and binary operator expressions in libsyntax
2015-09-03Add an intital HIR and lowering stepNick Cameron-172/+163
2015-08-24split ReInfer into ReVar and ReSkolemizedAriel Ben-Yehuda-1/+2
this should reduce the size of ty::Region to 24 bytes (from 32), and they are treated differently in most cases anyway.
2015-08-24fallout from moving def-idNiko Matsakis-60/+60
2015-08-23Auto merge of #27919 - Eljay:doc-varargs, r=alexcrichtonbors-0/+5
Fixes #27876.
2015-08-20Show variadic args in rustdoc output.Lee Jeffery-0/+5
2015-08-16rustdoc: Added issue tracker option and issue data to clean::StabilityMartin Wernstål-1/+4
2015-08-16Auto merge of #27643 - mitaa:get_item_, r=arielb1bors-2/+1
(this incidentally fixes an error message where the paths separator is " " instead of "::")
2015-08-12Add two new kinds of predicates, WellFormed and ObjectSafe.Niko Matsakis-1/+3
2015-08-12Replace get_item_path[-1] with get_item_namemitaa-2/+1
2015-08-10Auto merge of #27451 - seanmonstar:use-groups-as, r=alexcrichtonbors-3/+6
An implementation of [RFC 1219](https://github.com/rust-lang/rfcs/pull/1219). The RFC is not merged yet, but once merged, this could be.
2015-08-08rustc: rename multiple imports in a listSean McArthur-3/+6
2015-08-07Auto merge of #27551 - arielb1:adt-def, r=nikomatsakisbors-29/+30
This ended up being a bigger refactoring than I thought, as I also cleaned a few ugly points in rustc. There are still a few areas that need improvements. Performance numbers: ``` Before: 572.70user 5.52system 7:33.21elapsed 127%CPU (0avgtext+0avgdata 1173368maxresident)k llvm-time: 385.858 After: 545.27user 5.49system 7:10.22elapsed 128%CPU (0avgtext+0avgdata 1145348maxresident)k llvm-time: 387.119 ``` A good 5% perf improvement. Note that after this patch >70% of the time is spent in LLVM - Amdahl's law is in full effect. Passes make check locally. r? @nikomatsakis
2015-08-07rename ADTDef to AdtDef etc.Ariel Ben-Yehuda-2/+2
2015-08-06use VariantDef instead of struct_fieldsAriel Ben-Yehuda-26/+26
2015-08-06introduce an ADTDef struct for struct/enum definitionsAriel Ben-Yehuda-4/+5
2015-08-04Add feature gateJared Roesch-1/+1
2015-08-04Add a macro invocation to the type ASTJared Roesch-0/+3
Reapplied the changes from https://github.com/freebroccolo/rust/commit/dc64b731d7f66c2b43d5e5e8c721be7bd3b59540 to a clean branch of master
2015-08-04rustc: replace def::MethodProvenance with ty::ImplOrTraitItemContainer.Eduard Burtescu-1/+1
2015-07-28remove `get_ident` and `get_name`, make `as_str` soundOliver Schneider-11/+11
2015-07-21Use a span from the correct file for the inner span of a moduleNick Cameron-0/+4
This basically only affects modules which are empty (or only contain comments). Closes #26755
2015-07-12Auto merge of #26957 - wesleywiser:rename_connect_to_join, r=alexcrichtonbors-3/+3
Fixes #26900
2015-07-10Change some instances of .connect() to .join()Wesley Wiser-3/+3
2015-07-08Remove snake_case names from ty.rsJared Roesch-1/+1
2015-06-26rustc: switch most remaining middle::ty functions to methods.Eduard Burtescu-25/+24
2015-06-23Remove the mostly unecessary ParamBounds structJared Roesch-13/+0
2015-06-19rustc: replace Repr/UserString impls with Debug/Display ones.Eduard Burtescu-1/+1
2015-06-12Split TyArray into TyArray and TySlice.Eli Friedman-3/+3
Arrays and slices are closely related, but not that closely; making the separation more explicit is generally more clear.
2015-06-12Cleanup: rename middle::ty::sty and its variants.Eli Friedman-41/+39
Use camel-case naming, and use names which actually make sense in modern Rust.
2015-06-11Conver reborrows to .iter() calls where appropriateJoshua Landau-1/+1
2015-06-10Removed many pointless calls to *iter() and iter_mut()Joshua Landau-13/+13
2015-06-08Auto merge of #26077 - SimonSapin:patch-6, r=alexcrichtonbors-1/+1
With the latter is provided by the `From` conversion trait, the former is now completely redundant. Their code is identical. Let’s deprecate now and plan to remove in the next cycle. (It’s `#[unstable]`.) r? @alexcrichton CC @nagisa
2015-06-08Replace usage of String::from_str with String:fromSimon Sapin-1/+1
2015-06-07change some statics to constantsOliver 'ker' Schneider-1/+1
2015-05-27Auto merge of #25796 - arielb1:default-assoc, r=eddybbors-39/+38
r? @eddyb Fixes #19476.
2015-05-26Auto merge of #25675 - bluss:rustdoc-assoc-types-index, r=alexcrichtonbors-18/+32
rustdoc: Associated type fixes The first commit fixes a bug with "dud" items in the search index from misrepresented `type` items in trait impl blocks. For a trait *implementation* there are typedefs which are the types for that particular trait and implementor. Skip these in the search index. There were lots of dud items in the search index due to this (search for Item, Iterator's associated type). Add a boolean to clean::TypedefItem so that it tracks whether the it is a type alias on its own, or if it's a `type` item in a trait impl. The second commit fixes a bug that made signatures and where bounds using associated types (if they were not on `Self`) incorrect. The third commit fixes so that where clauses in type alias definititons are shown. Fixes #22442 Fixes #24417 Fixes #25769
2015-05-26Implement defaults for associated typesAriel Ben-Yehuda-39/+38
2015-05-26Make caching in stability work. This improves stability check performanceAriel Ben-Yehuda-0/+15
by 90%.
2015-05-25rustdoc: Fix associated types in signaturesUlrik Sverdrup-12/+26
Functions such as `fn foo<I: Iterator>(x: I::Item)` would not render correctly and displayed `I` instead of `I::Item`. Same thing with `I::Item` appearing in where bounds. This fixes the bug by using paths for generics. Fixes #24417
2015-05-21Make various fixes:Niko Matsakis-2/+5
- add feature gate - add basic tests - adjust parser to eliminate conflict between `const fn` and associated constants - allow `const fn` in traits/trait-impls, but forbid later in type check - correct some merge conflicts
2015-05-21syntax: parse `const fn` for free functions and inherent methods.Eduard Burtescu-2/+9
2015-05-21rustdoc: Skip types in impls in search indexUlrik Sverdrup-6/+6
For a trait *implementation* there are typedefs which are the types for that particular trait and implementor. Skip these in the search index. There were lots of dud items in the search index due to this (search for Item, Iterator's associated type). Add a boolean to clean::TypedefItem so that it tracks whether the it is a type alias on its own, or if it's a `type` item in a trait impl. Fixes #22442
2015-05-12Auto merge of #25323 - eddyb:coherent-coherence, r=pnkfelixbors-1/+1
The loop to load all the known impls from external crates seems to have been used because `ty::populate_implementations_for_trait_if_necessary` wasn't doing its job, and solely relying on it resulted in loading only impls in the same crate as the trait. Coherence for `librustc` was reduced from 18.310s to 0.610s, from stage1 to stage2. Interestingly, type checking also went from 46.232s to 42.003s, though that could be noise or unrelated improvements. On a smaller scale, `fn main() {}` now spends 0.003s in coherence instead of 0.368s, which fixes #22068. It also peaks at only 1.2MB, instead of 16MB of heap usage.
2015-05-12rustc: rename ty::populate_implementations_for_type_if_necessary to make it ↵Eduard Burtescu-1/+1
clear that it only populates inherent impls.
2015-05-11Auto merge of #25085 - carols10cents:remove-old-tilde, r=steveklabnikbors-1/+1
There were still some mentions of `~[T]` and `~T`, mostly in comments and debugging statements. I tried to do my best to preserve meaning, but I might have gotten some wrong-- I'm happy to fix anything :)
2015-05-06fix typos caught by codespellTshepang Lekhonkhobe-1/+1
2015-05-03Update old uses of ~ in comments and debugging statementsCarol Nichols-1/+1
2015-04-23Get associated consts working in match patterns.Sean Patrick Santos-0/+2
2015-04-23Functional changes for associated constants. Cross-crate usage of associated ↵Sean Patrick Santos-4/+25
constants is not yet working.
2015-04-23Structural changes for associated constantsSean Patrick Santos-0/+28
Introduces new variants and types in syntax::ast, middle::ty, and middle::def.