summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2014-06-27Update to 0.11.0 0.11.0Alex Crichton-1/+1
2014-06-26Remove unnecessary to_string callsPiotr Jawniak-33/+10
This commit removes superfluous to_string calls from various places
2014-06-25auto merge of #15160 : alexcrichton/rust/remove-f128, r=brsonbors-5/+1
The f128 type has very little support in the compiler and the feature is basically unusable today. Supporting half-baked features in the compiler can be detrimental to the long-term development of the compiler, and hence this feature is being removed.
2014-06-24Stabilize version output for rustc and rustdocRobert Buonpastore-3/+8
2014-06-24Remove the quad_precision_float feature gateAlex Crichton-5/+1
The f128 type has very little support in the compiler and the feature is basically unusable today. Supporting half-baked features in the compiler can be detrimental to the long-term development of the compiler, and hence this feature is being removed.
2014-06-24Convert builtin lints to uppercase names for style consistencyKeegan McAllister-1/+1
2014-06-24Store the registered lints in the SessionKeegan McAllister-3/+6
2014-06-24Replace enum LintId with an extensible alternativeKeegan McAllister-1/+3
2014-06-24Move lint.rs out of middleKeegan McAllister-1/+1
We're going to have more modules under lint, and the paths get unwieldy. We also plan to have lints run at multiple points in the compilation pipeline.
2014-06-21rustdoc: show default type parameters in genericsTom Jakubowski-1/+9
fix #12291
2014-06-20auto merge of #15039 : huonw/rust/rustdoc-testharnesss, r=alexcrichtonbors-49/+87
```test_harness #[test] fn foo() {} ``` will now compile and run the tests, rather than just ignoring & stripping them (i.e. it is as if `--test` was passed). Also, the specific example in https://github.com/rust-lang/rust/issues/12242 was fixed (but that issue is broader than that example).
2014-06-19(doc) Properly doc hotkeys in generated docs.Zach Pomerantz-10/+10
Updated search bar to match help text. Used correct, normalized hotkeys in search. Updated shortcut menu with working shortcuts (tabs). Changed height of search help.
2014-06-19rustdoc: add the ability to run tests with --test.Huon Wilson-19/+31
This adds the `test_harness` directive that runs a code block using the test runner, to allow for `#[test]` items to be demonstrated and still tested (currently they are just stripped and not even compiled, let alone run).
2014-06-19rustdoc: refactor code block language info into a struct.Huon Wilson-42/+68
Fields have names, unlike an anonymous tuple.
2014-06-19auto merge of #15014 : brson/rust/all-crates-experimental, r=cmrbors-0/+1
This creates a stability baseline for all crates that we distribute that are not `std`. In general, all library code must start as experimental and progress in stages to become stable.
2014-06-18Deprecate the bytes!() macro.Simon Sapin-2/+2
Replace its usage with byte string literals, except in `bytes!()` tests. Also add a new snapshot, to be able to use the new b"foo" syntax. The src/etc/2014-06-rewrite-bytes-macros.py script automatically rewrites `bytes!()` invocations into byte string literals. Pass it filenames as arguments to generate a diff that you can inspect, or `--apply` followed by filenames to apply the changes in place. Diffs can be piped into `tip` or `pygmentize -l diff` for coloring.
2014-06-18(doc) Change search placeholder text.Zach Pomerantz-1/+1
Update placeholder text to make keyboard shortcuts more apparent.
2014-06-18rustdoc: Don't inject `extern crate std`.Alex Crichton-1/+3
No need to duplicate the compiler's work! Closes #14999
2014-06-18rustdoc: Fix testing indented code blocksAlex Crichton-1/+1
The collapse/unindent passes were run in the wrong order, generating different markdown for indented tests.
2014-06-17Mark all crates except std as experimentalBrian Anderson-0/+1
2014-06-17Add br##"xx"## raw byte string literals.Simon Sapin-1/+1
2014-06-17Add a b"xx" byte string literal of type &'static [u8].Simon Sapin-1/+2
2014-06-17Add a b'x' byte literal of type u8.Simon Sapin-1/+9
2014-06-17rustdoc: Remove outdated syntaxAlex Crichton-7/+4
Fixing some of rustdoc's rendering to use newer syntaxes rather than older syntaxes.
2014-06-16auto merge of #14906 : P1start/rust/rustdoc-lifetimes, r=huonwbors-1/+1
rustdoc was previously formatting lifetimes with two apostrophes, presumably as a result of #14797.
2014-06-16Fix rustdoc's formatting of lifetimesP1start-2/+1
rustdoc was previously formatting lifetimes with two apostrophes, presumably as a result of #14797.
2014-06-16auto merge of #14900 : alexcrichton/rust/snapshots, r=huonwbors-7/+6
Closes #14898 Closes #14918
2014-06-16auto merge of #14715 : vhbit/rust/ios-pr2, r=alexcrichtonbors-0/+1
2014-06-15Register new snapshotsAlex Crichton-7/+6
2014-06-14rustc: Obsolete the `@` syntax entirelyAlex Crichton-4/+6
This removes all remnants of `@` pointers from rustc. Additionally, this removes the `GC` structure from the prelude as it seems odd exporting an experimental type in the prelude by default. Closes #14193 [breaking-change]
2014-06-14Register new snapshotsAlex Crichton-8/+1
2014-06-14auto merge of #14884 : huonw/rust/getoptsfail, r=alexcrichtonbors-1/+1
2014-06-14auto merge of #14878 : vtsatskin/rust/rustdoc-sidebar-click-targets, ↵bors-6/+9
r=alexcrichton There was feedback gathered by @bjz which request for larger click targets in the rustdoc sidebar. Here's my attempt at that. My only concern with this patch is the removal of `<br>` between sidebar links. This may break formatting for text-only viewers of this documentation. If there is a large enough demographic of people that will be affected, perhaps we can try switching the structure of each sidebar block sidebar to an `<ol>` with each item as a `<li>`. * Change links to display:block for click larger targets * Remove linebreaks due to extra space * Adjust margins so that element spacing stays the same * Sidebar item hover background colour chosen from `<pre>` styling
2014-06-14getopts: format failure messages with `Show`.Huon Wilson-1/+1
This obsoletes the old `to_err_msg` method. Replace println!("Error: {}", failure.to_err_msg()) let string = failure.to_err_msg(); with println!("Error: {}", failure) let string = failure.to_str(); [breaking-change]
2014-06-13rustdoc: Larger click areas for sidebar itemsValentin Tsatskin-6/+9
* Change links to display:block for click larger targets * Remove linebreaks due to extra space * Adjust margins so that element spacing stays the same * Sidebar item hover background colour chosen from <pre> styling
2014-06-13librustc: Forbid `transmute` from being called on types whose size isPatrick Walton-2/+5
only known post-monomorphization, and report `transmute` errors before the code is generated for that `transmute`. This can break code that looked like: unsafe fn f<T>(x: T) { let y: int = transmute(x); } Change such code to take a type parameter that has the same size as the type being transmuted to. Closes #12898. [breaking-change]
2014-06-13libsyntax: Allow `+` to separate trait bounds from objects.Patrick Walton-1/+2
RFC #27. After a snapshot, the old syntax will be removed. This can break some code that looked like `foo as &Trait:Send`. Now you will need to write `foo as (&Trait+Send)`. Closes #12778. [breaking-change]
2014-06-13Introduce VecPerParamSpace and use it to represent sets of types andNiko Matsakis-21/+53
parameters This involves numerous substeps: 1. Treat Self same as any other parameter. 2. No longer compute offsets for method parameters. 3. Store all generic types (both trait/impl and method) with a method, eliminating odd discrepancies. 4. Stop doing unspeakable things to static methods and instead just use the natural types, now that we can easily add the type parameters from trait into the method's polytype. 5. No doubt some more. It was hard to separate these into distinct commits. Fixes #13564
2014-06-12Basic iOS supportValerii Hiora-0/+1
2014-06-11std: Remove i18n/l10n from format!Alex Crichton-69/+66
* The select/plural methods from format strings are removed * The # character no longer needs to be escaped * The \-based escapes have been removed * '{{' is now an escape for '{' * '}}' is now an escape for '}' Closes #14810 [breaking-change]
2014-06-11auto merge of #14746 : alexcrichton/rust/libsync, r=brsonbors-2/+1
This commit is the final step in the libstd facade, #13851. The purpose of this commit is to move libsync underneath the standard library, behind the facade. This will allow core primitives like channels, queues, and atomics to all live in the same location. There were a few notable changes and a few breaking changes as part of this movement: * The `Vec` and `String` types are reexported at the top level of libcollections * The `unreachable!()` macro was copied to libcore * The `std::rt::thread` module was moved to librustrt, but it is still reexported at the same location. * The `std::comm` module was moved to libsync * The `sync::comm` module was moved under `sync::comm`, and renamed to `duplex`. It is now a private module with types/functions being reexported under `sync::comm`. This is a breaking change for any existing users of duplex streams. * All concurrent queues/deques were moved directly under libsync. They are also all marked with #![experimental] for now if they are public. * The `task_pool` and `future` modules no longer live in libsync, but rather live under `std::sync`. They will forever live at this location, but they may move to libsync if the `std::task` module moves as well. [breaking-change]
2014-06-11sync: Move underneath libstdAlex Crichton-2/+1
This commit is the final step in the libstd facade, #13851. The purpose of this commit is to move libsync underneath the standard library, behind the facade. This will allow core primitives like channels, queues, and atomics to all live in the same location. There were a few notable changes and a few breaking changes as part of this movement: * The `Vec` and `String` types are reexported at the top level of libcollections * The `unreachable!()` macro was copied to libcore * The `std::rt::thread` module was moved to librustrt, but it is still reexported at the same location. * The `std::comm` module was moved to libsync * The `sync::comm` module was moved under `sync::comm`, and renamed to `duplex`. It is now a private module with types/functions being reexported under `sync::comm`. This is a breaking change for any existing users of duplex streams. * All concurrent queues/deques were moved directly under libsync. They are also all marked with #![experimental] for now if they are public. * The `task_pool` and `future` modules no longer live in libsync, but rather live under `std::sync`. They will forever live at this location, but they may move to libsync if the `std::task` module moves as well. [breaking-change]
2014-06-11rustc: Move the AST from @T to Gc<T>Alex Crichton-26/+32
2014-06-10auto merge of #14764 : jbcrail/rust/fix-more-comments, r=alexcrichtonbors-6/+6
2014-06-10auto merge of #14696 : jakub-/rust/dead-struct-fields, r=alexcrichtonbors-0/+1
This uncovered some dead code, most notably in middle/liveness.rs, which I think suggests there must be something fishy with that part of the code. The #[allow(dead_code)] annotations on some of the fields I am not super happy about but as I understand, marker type may disappear at some point.
2014-06-10Fix more misspelled comments and strings.Joseph Crail-6/+6
2014-06-09auto merge of #14606 : pcwalton/rust/fn-trait-sugar, r=alexcrichtonbors-0/+4
r? @alexcrichton
2014-06-09librustc: Implement sugar for the `FnMut` traitPatrick Walton-0/+4
2014-06-09rustdoc: Correctly classify enums/typedefsAlex Crichton-1/+1
Both of these items are surfaced as a DefTy, so some extra logic was needed in the decoder module to figure out whether one is actually an enum or whether it's a typedef. Closes #14757
2014-06-09std: Move dynamic_lib from std::unstable to stdBrian Anderson-2/+2
This leaves a deprecated reexport in place temporarily. Closes #1457.