bors
0dce112af7
auto merge of #9636 : alexcrichton/rust/rustdoc, r=huonw
...
Commits have all the juicy details.
Import thing to note in this pull request is that `rustdoc html crate.rs` becomes `rustdoc crate.rs`
2013-10-01 04:31:31 -07:00
bors
ec2b9cc228
auto merge of #9657 : huonw/rust/oldfmt, r=huonw
...
This meant the "smooth" migration path @alexcrichton had planned was broken, since any use of the old `fmt!` met with an undefined macro error (and the logging was using the new syntax, accidentally).
2013-10-01 03:16:32 -07:00
Huon Wilson
6f166894ba
Fix typo with format migration: s/oldformat/oldfmt/.
2013-10-01 19:45:17 +10:00
bors
d6c3b67348
auto merge of #9576 : FlaPer87/rust/issue/9125, r=alexcrichton
...
Fixes #9125
2013-10-01 02:06:32 -07:00
bors
8bb48cc1e6
auto merge of #9599 : alexcrichton/rust/less-fmt, r=huonw
...
This also prevents future fmt! usage from leaking into the compiler, but it's still turned on by default for everyone else.
2013-10-01 00:56:33 -07:00
Alex Crichton
dec37051dd
Merge fall out of removing fmt!
2013-10-01 00:06:51 -07:00
Flavio Percoco
d379ff474f
Update std::task::mod docstring
2013-10-01 09:03:04 +02:00
Daniel Micay
5e4ae4f45f
make small (<= size_of::<int>()) tuples immediate
...
fn foo() -> (u32, u8, u8, u8, u8) {
(4, 5, 6, 7, 8)
}
Before:
; Function Attrs: nounwind uwtable
define void @_ZN3foo18hbb616262f874f8daf4v0.0E({ i32, i8, i8, i8, i8 }* noalias nocapture sret, { i64, %tydesc*, i8*, i8*, i8 }* nocapture readnone) #0 {
"function top level":
%2 = getelementptr inbounds { i32, i8, i8, i8, i8 }* %0, i64 0, i32 0
store i32 4, i32* %2, align 4
%3 = getelementptr inbounds { i32, i8, i8, i8, i8 }* %0, i64 0, i32 1
store i8 5, i8* %3, align 4
%4 = getelementptr inbounds { i32, i8, i8, i8, i8 }* %0, i64 0, i32 2
store i8 6, i8* %4, align 1
%5 = getelementptr inbounds { i32, i8, i8, i8, i8 }* %0, i64 0, i32 3
store i8 7, i8* %5, align 2
%6 = getelementptr inbounds { i32, i8, i8, i8, i8 }* %0, i64 0, i32 4
store i8 8, i8* %6, align 1
ret void
}
After:
; Function Attrs: nounwind readnone uwtable
define { i32, i8, i8, i8, i8 } @_ZN3foo18hbb616262f874f8daf4v0.0E({ i64, %tydesc*, i8*, i8*, i8 }* nocapture readnone) #0 {
"function top level":
ret { i32, i8, i8, i8, i8 } { i32 4, i8 5, i8 6, i8 7, i8 8 }
}
2013-10-01 02:57:59 -04:00
bors
f6df7ab839
auto merge of #9617 : crabtw/rust/softfp, r=alexcrichton
...
This change adds --soft-float option for generating
software floating point library calls.
It also implies using soft float ABI, that is the same as llc.
It is useful for targets that have no FPU.
2013-09-30 23:51:31 -07:00
Alex Crichton
1f52cf439b
pretty: Remove usage of fmt!
2013-09-30 23:21:20 -07:00
Alex Crichton
9ce31f6dd9
tutorial: Remove usage of fmt!
2013-09-30 23:21:20 -07:00
Alex Crichton
73c6c9109f
bench: Remove usage of fmt!
2013-09-30 23:21:20 -07:00
Alex Crichton
02054ac8a1
rfail: Remove usage of fmt!
2013-09-30 23:21:20 -07:00
Alex Crichton
ebf5f406ef
cfail: Remove usage of fmt!
2013-09-30 23:21:20 -07:00
Alex Crichton
630082ca89
rpass: Remove usage of fmt!
2013-09-30 23:21:19 -07:00
Alex Crichton
86e613c632
compiletest: Remove usage of fmt!
2013-09-30 23:21:19 -07:00
Alex Crichton
da24c0d32f
rustpkg: Remove uses of fmt!
2013-09-30 23:21:19 -07:00
Alex Crichton
a7f19f36be
rustdoc: Remove usage of fmt!
2013-09-30 23:21:19 -07:00
Alex Crichton
4d47601a7e
rusti: Remove usage of fmt!
2013-09-30 23:21:19 -07:00
Alex Crichton
1b80558be3
rustc: Remove usage of fmt!
2013-09-30 23:21:19 -07:00
Alex Crichton
af3b132285
syntax: Remove usage of fmt!
2013-09-30 23:21:19 -07:00
Alex Crichton
7e709bfd0d
extra: Remove usage of fmt!
2013-09-30 23:21:18 -07:00
Alex Crichton
a8ba31dbf3
std: Remove usage of fmt!
2013-09-30 23:21:18 -07:00
Alex Crichton
aaf6cc3a84
Prevent leakage of fmt! into the compiler
...
We're not outright removing fmt! just yet, but this prevents it from leaking
into the compiler further (it's still turned on by default for all other code).
2013-09-30 23:21:18 -07:00
bors
1dbc467fd9
auto merge of #9643 : thestinger/rust/immediate, r=alexcrichton
2013-09-30 21:51:27 -07:00
Daniel Micay
ab0a884a73
fix dropping non-primitive immediates
...
Closes #9446
2013-10-01 00:38:37 -04:00
Dan Connolly
398e2c479a
clarify that rust_pkg is a place-holder
...
the switch from package `hello` to `rust_pkg` is a little jarring; I'd use <var> but I don't see how. ALL_CAPS seems like a reasonable poor-man's <var>.
2013-09-30 22:57:09 -05:00
Alex Crichton
56da32c556
rustdoc: Don't ignore dox on impl blocks
...
Closes #9611
2013-09-30 20:31:20 -07:00
Alex Crichton
d505f70f6f
rustdoc: Stop ignoring dox on fields/variants
...
This is progress towards #9611
2013-09-30 20:31:20 -07:00
Alex Crichton
fb259855dc
rustdoc: Use a BufferedWriter when emitting source
...
This takes the rendering time of source files for libstd from 12.5s to 0.1s,
turns out write! calls the write function *a lot*
2013-09-30 20:31:20 -07:00
Alex Crichton
cc1791584f
rustdoc: Detect repeated keys and fix width
...
When a key is pressed and held, this now does the OS-style repeating after a bit
of a pause. Also fixes the width of search results to be correct (was changed
beforehand and didn't catch this).
2013-09-30 20:31:19 -07:00
Alex Crichton
863555f4fd
rustdoc: Update the man page
...
Closes #9622
2013-09-30 20:31:19 -07:00
Alex Crichton
e523f99fb9
rustdoc: Add the ability to input json
...
This modifies the command-line usage of rustdoc to intake its own JSON output as
well as a rust source file. This also alters the command line from
`rustdoc input file` to `rustdoc file` with the input/output formats specified
as -r and -w, respectively.
When using a JSON input, no passes or plugins are re-run over the json, instead
the output is generated directly from the JSON that was provided. Passes and
plugins are still run on rust source input, however.
2013-09-30 20:31:19 -07:00
Jyun-Yan You
350b5438cd
add -Z soft-float option
...
This change adds -Z soft-float option for generating
software floating point library calls.
It also implies using soft float ABI, that is the same as llc.
It is useful for targets that have no FPU.
2013-10-01 11:19:18 +08:00
Alex Crichton
23cb72b459
Clarify format! implicit positional references
...
It was a little ambiguous before how explicitl positional parameters and
implicit positional parameters intermingled, and this clarifies how the two
intermingle. This also updates a little bit of documentation/code examples
elsewhere as well.
2013-09-30 20:16:23 -07:00
David Creswick
4dd3ccb7ef
Add test for issue #9446 .
2013-09-30 22:39:53 -04:00
Felix S. Klock II
155857f548
Revise error message to use phrase "all caps" instead of "uppercase".
...
This is to clarify that the lint is checking for THIS_THING and not This.
2013-10-01 03:10:19 +02:00
Felix S. Klock II
8d6f4c207a
Workaround conflict between all-uppercase static and NaN definition.
2013-10-01 02:55:51 +02:00
bors
bc6dd906a9
auto merge of #9640 : catamorphism/rust/rustpkg-test-fix, r=alexcrichton
...
r? @alexcrichton test output may contain color codes, so check for several small strings
instead of one big one.
2013-09-30 17:46:25 -07:00
Tim Chevalier
2ec2d7dd23
rustpkg: Make test_rustpkg_test_output more permissive
...
test output may contain color codes, so check for several small strings
instead of one big one.
2013-09-30 17:35:47 -07:00
Felix S. Klock II
e2be7aca08
Expanded test to clarify that the constants *are* matching when they should.
2013-10-01 02:03:43 +02:00
Felix S. Klock II
c0599b1bbb
Fix typo in comment.
2013-10-01 01:55:37 +02:00
Felix S. Klock II
924674202e
Throwing in another interesting test case: There is no need to warn
...
about constants that are (non-trivial) paths rather than just
identifiers, regardless of what case their characters are.
2013-10-01 01:51:21 +02:00
Felix S. Klock II
a076fef2b6
Add new lint: non_uppercase_pattern_statics, for #7526 .
...
This tries to warn about code like:
```rust
match (0,0) {
(0, aha) => { ... },
...
}
```
where `aha` is actually a static constant, not a binding.
2013-10-01 01:44:25 +02:00
Daniel Micay
11b7109b7b
rm only use of type_is_immediate outside of trans
2013-09-30 18:16:35 -04:00
bors
7ddcd2a745
auto merge of #9628 : alexcrichton/rust/tidy-binaries, r=thestinger
...
Closes #9621
2013-09-30 15:06:23 -07:00
bors
5c016857b7
auto merge of #9635 : catamorphism/rust/issue-7999, r=catamorphism
...
Closes #7999
2013-09-30 13:36:32 -07:00
Tim Chevalier
60eb04aea9
testsuite: Un-xfail unit-like-struct-drop-run on Windows
...
Closes #7999
2013-09-30 13:30:19 -07:00
Alex Crichton
a3ccbdc904
rustdoc: Generate valid code for struct-variants
...
Closes #9587
2013-09-30 12:32:04 -07:00
bors
5011bbfbb6
auto merge of #9630 : blake2-ppc/rust/de-at-smaller, r=huonw
...
This is mostly an incremental change, picking off some uses of
@- or @mut-pointers that can be replaced by references.
Almost all of the builder functions in trans::build are updated,
mostly using `&Block` arguments instead of `@mut Block`.
2013-09-30 10:41:20 -07:00