summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2015-09-09rustdoc: Tweak the main template and CSS for semantic mark-up.Kang Seonghoon-16/+28
- section.sidebar -> nav.sidebar, also added an unordered list. - div#help -> aside#help, also added a hidden heading. - the current crate is now emphasized in the sidebar. Fixes #16310.
2015-09-03std: Account for CRLF in {str, BufRead}::linesAlex Crichton-1/+1
This commit is an implementation of [RFC 1212][rfc] which tweaks the behavior of the `str::lines` and `BufRead::lines` iterators. Both iterators now account for `\r\n` sequences in addition to `\n`, allowing for less surprising behavior across platforms (especially in the `BufRead` case). Splitting *only* on the `\n` character can still be achieved with `split('\n')` in both cases. The `str::lines_any` function is also now deprecated as `str::lines` is a drop-in replacement for it. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1212-line-endings.md Closes #28032
2015-09-03Use consistent terminology for byte string literalsVadim Petrochenkov-2/+2
Avoid confusion with binary integer literals and binary operator expressions in libsyntax
2015-09-03Add an intital HIR and lowering stepNick Cameron-315/+318
2015-08-25Respect `--color` when printing early errorsBarosl Lee-2/+3
Currently, `early_error` and `early_warn` in `librustc::session` always use `ColorConfig::Auto`. Modify them to follow the color configuration set by the `--color` option. As colored output is also printed during the early stage, parsing the `--color` option should be done as early as possible. However, there are still some cases when the output needs to be colored before knowing the exact color settings. In these cases, it will be defaulted to `ColorConfig::Auto`, which is the same as before. Fixes #27879.
2015-08-25Auto merge of #27945 - Eljay:upgrade-hoedown, r=alexcrichtonbors-36/+46
Some hoedown FFI changes: - `HOEDOWN_EXT_NO_INTRA_EMPHASIS` constant changed. - Updated/tidied up all callback function signatures. - All opaque data access has an additional layer of indirection for some reason (`hoedown_renderer_data`). This also fixes #27862.
2015-08-24Update hoedown to latest version (3.0.4).Eljay-36/+46
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-109/+110
2015-08-23Auto merge of #27919 - Eljay:doc-varargs, r=alexcrichtonbors-1/+10
Fixes #27876.
2015-08-22Auto merge of #27860 - m4rw3r:rustdoc_unstable_feature_issue, r=alexcrichtonbors-60/+92
Implemented #27759 Example: ![screen shot 2015-08-16 at 21 45 17](https://cloud.githubusercontent.com/assets/108100/9295040/1fb24d50-4460-11e5-8ab8-81ac5330974a.png)
2015-08-20Show variadic args in rustdoc output.Lee Jeffery-1/+10
2015-08-17Add some SIMD target_feature cfg's when appropriate.Huon Wilson-2/+3
NB. this may not be 100% perfect.
2015-08-17rustdoc: Removed issue_tracker_base_url from crates not in public API docsMartin Wernstål-2/+1
2015-08-17rustdoc: Removed command line option issue-tracker-base-urlMartin Wernstål-7/+3
2015-08-17rustdoc: Adjusted style for unstable feature-nameMartin Wernstål-1/+5
2015-08-16librustdoc: Fix tidyMartin Wernstål-2/+2
2015-08-16rustdoc: Added issue_tracker_base_url annotations to cratesMartin Wernstål-1/+2
2015-08-16rustdoc: Print feature flag and issue link if present in short_stabilityMartin Wernstål-4/+19
2015-08-16rustdoc: Pass the Context down to short_stability()Martin Wernstål-56/+58
2015-08-16rustdoc: Added issue tracker option and issue data to clean::StabilityMartin Wernstål-3/+18
2015-08-16Auto merge of #27858 - rkruppe:rustdoc-codespans, r=alexcrichtonbors-2/+8
Fixes #24746
2015-08-16Correct signature of hoedown callback for codespansRobin Kruppe-2/+8
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-15Add issue for the rustc_private feature everywhereAlex Crichton-1/+1
2015-08-14Auto merge of #27641 - nikomatsakis:soundness-rfc-1214, r=nrcbors-1/+3
This PR implements the majority of RFC 1214. In particular, it implements: - the new outlives relation - comprehensive WF checking For the most part, new code receives warnings, not errors, though 3 regressions were found via a crater run. There are some deviations from RFC 1214. Most notably: - we still consider implied bounds from fn ret; this intersects other soundness issues that I intend to address in detail in a follow-up RFC. Fixing this without breaking a lot of code probably requires rewriting compare-method somewhat (which is probably a good thing). - object types do not check trait bounds for fear of encountering `Self`; this was left as an unresolved question in RFC 1214, but ultimately feels inconsistent. Both of those two issues are highlighted in the tracking issue, https://github.com/rust-lang/rust/issues/27579. #27579 also includes a testing matrix with new tests that I wrote -- these probably duplicate some existing tests, I tried to check but wasn't quite sure what to look for. I tried to be thorough in testing the WF relation, at least, but would welcome suggestions for missing tests. r? @nrc (or perhaps someone else?)
2015-08-12Add two new kinds of predicates, WellFormed and ObjectSafe.Niko Matsakis-1/+3
2015-08-12Remove all unstable deprecated functionalityAlex Crichton-3/+0
This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
2015-08-12Replace get_item_path[-1] with get_item_namemitaa-2/+1
2015-08-11rollup merge of #27622: eefriedman/https-urlAlex Crichton-4/+4
Also fixes a few outdated links.
2015-08-10Auto merge of #27451 - seanmonstar:use-groups-as, r=alexcrichtonbors-5/+13
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-09Use https URLs to refer to rust-lang.org where appropriate.Eli Friedman-4/+4
Also fixes a few outdated links.
2015-08-08rustc: rename multiple imports in a listSean McArthur-5/+13
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-04Improve rustdoc search type filtering.Eljay-9/+29
2015-08-04rustc: replace def::MethodProvenance with ty::ImplOrTraitItemContainer.Eduard Burtescu-1/+1
2015-07-30fix rustdoc metadata parsingAlexis Beingessner-3/+4
2015-07-28remove `get_ident` and `get_name`, make `as_str` soundOliver Schneider-13/+13
2015-07-27std: Deprecate a number of unstable featuresAlex Crichton-6/+4
Many of these have long since reached their stage of being obsolete, so this commit starts the removal process for all of them. The unstable features that were deprecated are: * cmp_partial * fs_time * hash_default * int_slice * iter_min_max * iter_reset_fuse * iter_to_vec * map_in_place * move_from * owned_ascii_ext * page_size * read_and_zero * scan_state * slice_chars * slice_position_elem * subslice_offset
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-21Auto merge of #27103 - wthrowe:doc_format, r=alexcrichtonbors-24/+18
This fixes a couple of bugs visible on https://doc.rust-lang.org/nightly/std/marker/trait.Sync.html . For example: * `impl<T> Sync for *const T` should read `impl<T> !Sync for *const T` * `impl<T> !Sync for Weak<T>` should read `impl<T> !Sync for Weak<T> where T: ?Sized` This does change a struct in librustdoc and it seems that almost everything there is marked public, so if librustdoc has stability guarantees that could be a problem. If it is, I'll find a way to rework the change to avoid modifying public structures.
2015-07-20librustdoc: blur page when help dialogue is presentAndreas Tolfsen-41/+62
Blurs the document's background when the help dialogue is present, making the contents of the dialogue stand out more.
2015-07-18Fix rustdoc formatting of implsWilliam Throwe-24/+18
Some cases displayed negative impls as positive, and some were missing where clauses. This factors all the impl formatting into one function so the different cases can't get out of sync again.
2015-07-18Auto merge of #27074 - steveklabnik:gh27014, r=alexcrichtonbors-4/+3
Fixes #27014 r? @alexcrichton I'm not 100% sure there's not a better way to do this, but it works. Also, I wasn't sure how, where, or if to write a test for this.
2015-07-17DRYTamir Duberstein-2/+2