about summary refs log tree commit diff
path: root/doc
AgeCommit message (Collapse)AuthorLines
2013-11-20update manual to reflect &'lifetime syntaxIsaac Dupree-1/+1
2013-11-18librustc: Convert `~fn()` to `proc()` everywhere.Patrick Walton-11/+11
2013-11-17auto merge of #10443 : alexcrichton/rust/meaninless-pub-priv, r=cmrbors-5/+11
Closes #10111
2013-11-17Forbid privacy in inner functionsAlex Crichton-5/+11
Closes #10111
2013-11-16Fix the `num_lit` grammar in the reference manual.Chris Morgan-1/+3
- Cause `0` to be considered a valid integer literal (it is). - Add octal literals (missed from #10243). I have *not* modified doc/po/rust.md.pot or doc/po/ja/rust.md.po at all; they already seem to be out of date so it's easier to ignore them for myself. I can update them if desired, of course.
2013-11-14auto merge of #10018 : fhahn/rust/check-inferred-ints, r=alexcrichtonbors-3/+3
I've started working on this issue and pushed a small commit, which adds a range check for integer literals in `middle::const_eval` (no `uint` at the moment) At the moment, this patch is just a proof of concept, I'm not sure if there is a better function for the checks in `middle::const_eval`. This patch does not check for overflows after constant folding, eg: let x: i8 = 99 + 99;
2013-11-14Fixes formattingNoufal Ibrahim-0/+3
Without this, a.rs appears as a struck out line.
2013-11-14auto merge of #10476 : catamorphism/rust/rustpkg-doc-fix, r=catamorphismbors-1/+1
spotted by Yurume
2013-11-13docs: Change "workspace" to "package directory"Tim Chevalier-1/+1
spotted by Yurume
2013-11-14doc: Fix example on Windowsklutzy-1/+1
2013-11-13doc: add favicon to tutorial/manualAdrien Tétar-0/+1
Since tutorial/manual files are stored on static.rust-lang.org, browsers try to fetch the favicon from there while it should be retrieved from the main domain.
2013-11-13doc: disable parser error highlighting + a few fixesAdrien Tétar-23/+28
CodeMirror parser errors are related to #9873.
2013-11-12doc: CSS: fix code fontsAdrien Tétar-1/+1
Closes #10330.
2013-11-12Check inferred integer literals for overflows, closes #4220Florian Hahn-3/+3
2013-11-11Move std::rt::io to std::ioAlex Crichton-2/+2
2013-11-11auto merge of #10419 : brson/rust/conditiondocs, r=alexcrichtonbors-1/+1
Fixes #8553 by just not mentioning TLS, and instead just referring to the 'task-local condition handler'.
2013-11-11Remove #[fixed_stack_segment] and #[rust_stack]Alex Crichton-143/+25
These two attributes are no longer useful now that Rust has decided to leave segmented stacks behind. It is assumed that the rust task's stack is always large enough to make an FFI call (due to the stack being very large). There's always the case of stack overflow, however, to consider. This does not change the behavior of stack overflow in Rust. This is still normally triggered by the __morestack function and aborts the whole process. C stack overflow will continue to corrupt the stack, however (as it did before this commit as well). The future improvement of a guard page at the end of every rust stack is still unimplemented and is intended to be the mechanism through which we attempt to detect C stack overflow. Closes #8822 Closes #10155
2013-11-11doc: Don't mention TLS in condition tutorialBrian Anderson-1/+1
2013-11-09Add a "system" ABIAlex Crichton-3/+20
This adds an other ABI option which allows a custom selection over the target architecture and OS. The only current candidate for this change is that kernel32 on win32 uses stdcall, but on win64 it uses the cdecl calling convention. Otherwise everywhere else this is defined as using the Cdecl calling convention. cc #10049 Closes #8774
2013-11-08auto merge of #10354 : thestinger/rust/vector, r=huonwbors-133/+64
This section desperately needs to be expanded, but removing the misleading/incorrect information is a priority. Managed vectors/strings are not covered, as they are feature-gated and are only a micro-optimization to avoid double-indirection. Closes #6882
2013-11-08tutorial: rewrite the section vectors/stringsDaniel Micay-133/+64
This section desperately needs to be expanded, but removing the misleading/incorrect information is a priority. Managed vectors/strings are not covered, as they are feature-gated and are only a micro-optimization to avoid double-indirection. Closes #6882
2013-11-07auto merge of #10243 : mattcarberry/rust/master, r=brsonbors-5/+24
Associated with Issue #6563. Useful for Apollo Guidance Computer simulation, Unix file system permissions, and maybe one or two other things.
2013-11-03auto merge of #10252 : huonw/rust/docs, r=alexcrichtonbors-6/+5
2013-11-04docs: Replace std::iterator with std::iter.Huon Wilson-6/+5
2013-11-03Fixed formatting.Noufal Ibrahim-0/+1
The code block shows up inline without proper formatting without this newline. Signed-off-by: Noufal Ibrahim <noufal@nibrahim.net.in>
2013-11-02Grammar error and vim syntax highlighting mistake fixed.Matt Carberry-1/+1
2013-11-02Added octal literal support.Matt Carberry-4/+23
2013-10-31auto merge of #9740 : alexcrichton/rust/concat, r=cmrbors-0/+1
This extension can be used to concatenate string literals at compile time. C has this useful ability when placing string literals lexically next to one another, but this needs to be handled at the syntax extension level to recursively expand macros. The major use case for this is something like: macro_rules! mylog( ($fmt:expr $($arg:tt)*) => { error2!(concat!(file!(), ":", line!(), " - ", $fmt) $($arg)*); }) Where the mylog macro will automatically prepend the filename/line number to the beginning of every log message.
2013-10-31Implement a concat!() format extensionAlex Crichton-0/+1
This extension can be used to concatenate string literals at compile time. C has this useful ability when placing string literals lexically next to one another, but this needs to be handled at the syntax extension level to recursively expand macros. The major use case for this is something like: macro_rules! mylog( ($fmt:expr $($arg:tt)*) => { error2!(concat!(file!(), ":", line!(), " - ", $fmt) $($arg)*); }) Where the mylog macro will automatically prepend the filename/line number to the beginning of every log message.
2013-10-31auto merge of #10167 : briantdawn/rust/master, r=cmrbors-1/+1
To keep consistency with the word "borrowing" I suppose an alternate way to write this could be "Having an object borrow an immutable pointer freezes it and prevents mutation".
2013-10-30Fixed incorrect usage of 'Borrowing'.Brian-1/+1
2013-10-28Capitalize statics in f32 and f64 modsZiad Hatahet-13/+13
Fixes #10077
2013-10-24Test fixes and merge conflictsAlex Crichton-8/+7
2013-10-22Update the manual.Luqman Aden-4/+11
2013-10-22Minor grammatical fixes and removed section on 'rust' toolMichael Letterle-17/+1
2013-10-22Remove old logging from the tutorialAlex Crichton-21/+21
2013-10-21doc: fix links to comply with the new rustdocAdrien Tétar-35/+37
Closes #9911.
2013-10-21doc: expand tutorial/manual CSSAdrien Tétar-92/+238
Cleanup, edit, add some Bootstrap v3.0.0 elements.
2013-10-21doc: tidy and cleanup CSS deps, add tutorial PDF generationAdrien Tétar-217/+163
2013-10-19doc/rust.HTML: proper version boxAdrien Tétar-20/+21
2013-10-19doc: switch pandoc to html5Adrien Tétar-1/+1
2013-10-20doc (en & ja): remove mentions of type float, rust and rusti toolsSébastien Chauvel-216/+209
2013-10-18auto merge of #9851 : alexcrichton/rust/include_bin, r=huonwbors-2/+5
Previously an ExprLit was created *per byte* causing a huge increase in memory bloat. This adds a new `lit_binary` to contain a literal of binary data, which is currently only used by the include_bin! syntax extension. This massively speeds up compilation times of the shootout-k-nucleotide-pipes test before: time: 469s memory: 6GB assertion failure in LLVM (section too large) after: time: 2.50s memory: 124MB Closes #2598
2013-10-18Optimize include_bin! for large inputsAlex Crichton-2/+5
Previously an ExprLit was created *per byte* causing a huge increase in memory bloat. This adds a new `lit_binary` to contain a literal of binary data, which is currently only used by the include_bin! syntax extension. This massively speeds up compilation times of the shootout-k-nucleotide-pipes test before: time: 469s memory: 6GB assertion failure in LLVM (section too large) after: time: 2.50s memory: 124MB Closes #2598
2013-10-17std: Move size/align functions to std::mem. #2240Brian Anderson-6/+6
2013-10-17auto merge of #9897 : thestinger/rust/rusti, r=alexcrichtonbors-3/+1
Closes #9818 Closes #9567 Closes #8924 Closes #8910 Closes #8392 Closes #7692 Closes #7499 Closes #7220 Closes #5038
2013-10-17Removed the -Z once_fns compiler flag and added the new feature directive of ↵Chris Sainty-0/+4
the same name to replace it. Changed the frame_address intrinsic to no longer be a once fn. This removes the dependency on once_fns from std.
2013-10-16remove the rusti commandDaniel Micay-3/+1
Closes #9818 Closes #9567 Closes #8924 Closes #8910 Closes #8392 Closes #7692 Closes #7499 Closes #7220
2013-10-14Remove unused abi attributes.Steve Klabnik-7/+4
They've been replaced by putting the name on the extern block. #[abi = "foo"] goes to extern "foo" { } Closes #9483.
2013-10-13fix typos in doc/tutorial.mdErik Lyon-2/+2