Skip to content

Rolling up PRs in the queue #20145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 199 commits into from
Dec 23, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
1e77e29
Don't preserve line breaks in inline code
lambda-fairy Dec 11, 2014
c0e8dc6
Added example to TempDir
Dec 16, 2014
6875eb5
Improve Arc<T> documentation, and Rc<T> docs a bit
steveklabnik Dec 17, 2014
c910252
Replaced wrapper functions with no_run and as_str().unwrap() with dis…
Dec 17, 2014
3e0cdb6
Correct span in privacy error
sanxiyn Dec 17, 2014
bada7df
doc: remove extraneous line
tshepang Dec 17, 2014
1afa8ac
Use #[deriving(Copy)] for InvariantLifetime
shepmaster Dec 14, 2014
1a996f9
Remove wrong `&str + String` and `&[T] + Vec<T>` implementations
Dec 18, 2014
5806519
doc: Small changes to ownership guide.
Dec 18, 2014
11a94f2
remove l10n
steveklabnik Dec 18, 2014
eee209d
Only count nested returns when the outer return is reachable
Aatch Dec 15, 2014
fb3e871
Add some documentation
Aatch Dec 15, 2014
9115b31
Fix formatting issues
Aatch Dec 16, 2014
b4f54f9
Minor fixes
Aatch Dec 17, 2014
9bb5380
Stability: tweak rules for trait impls
aturon Dec 18, 2014
5722410
Fix logic error and add unreachable after returns
Aatch Dec 18, 2014
6746b94
iOS: fallout of `marker::NoCopy` removal
vhbit Dec 18, 2014
85196bf
Fixed deprecation warnings on Unicode literals
vhbit Dec 18, 2014
0e9b12b
Add regression test for Issue 19811.
pnkfelix Dec 18, 2014
11d9175
serialize: keep libserialize in sync with rustc-serialize to simplify…
erickt Dec 18, 2014
d729c96
serialize: silence some warnings
erickt Dec 18, 2014
3d6babe
Use `-perm /a+x` instead of `-perm +a+x` in calls to find
Munksgaard Dec 18, 2014
01aa4ca
Clean up `collections::binary_heap`
apasel422 Dec 18, 2014
15d5454
Put quotes around "as", because it's a keyword.
th0114nd Dec 18, 2014
edb39b8
Boolean literals are not Number literals
th0114nd Dec 18, 2014
1b42e89
std: Remove public bool,tuple,unit modules
alexcrichton Dec 19, 2014
d57f259
[collections] Adds `drain`: a way to sneak out the elements while cle…
Dec 16, 2014
ce10c01
clean up ptr docs
Gankra Dec 9, 2014
2800695
Add privacy tests
sanxiyn Dec 19, 2014
b048114
debuginfo: Create debuginfo for for-loop variables again.
michaelwoerister Dec 19, 2014
14a5992
Allow marker types to have unsized parameters
lilyball Dec 19, 2014
3bb91aa
Add a check for uninferred type parameter
Munksgaard Dec 18, 2014
34a6fcf
debuginfo: Clean the debuginfo module up a bit.
michaelwoerister Dec 19, 2014
87c5927
debuginfo: Add test case for destructured for-loop variable.
michaelwoerister Dec 19, 2014
611ef49
Took out all of the metrics stuff from tests.mk
Dec 19, 2014
e5d8c85
iOS: fallout of runtime removal
vhbit Dec 19, 2014
525f65e
Add RingBuf::as_slices as per collections reform v2.
Dec 16, 2014
84086c4
Register new snapshots
alexcrichton Dec 18, 2014
1919de8
Miscellaneous changes to Rust Guide
iKevinY Dec 13, 2014
117984b
rustc: Start "stabilizing" some flags
alexcrichton Dec 16, 2014
cf350ea
hashset: Clean up and rename the HashSet iterators
Dec 19, 2014
d61db0c
Implement resize for Vec
csouth3 Dec 19, 2014
a71686f
std: Second pass stabilization of Result<T, E>
alexcrichton Dec 17, 2014
39f2490
Implement Deref for Box
barosl Dec 19, 2014
7023bea
Print a friendly error for the if-let construct without an else block
barosl Dec 19, 2014
314ed2d
Drop the Match prefix from the MatchSource variants
barosl Dec 19, 2014
2e86929
Allow use of `[_ ; n]` syntax for fixed length and repeating arrays.
nrc Dec 20, 2014
d5267d5
Remove feature(import_shadowing) from all crates.
eddyb Dec 3, 2014
e0d4438
rustc: use Ty instead of passing ty::sty around.
eddyb Dec 16, 2014
5338222
rustc: don't allow(non_camel_case_types) in resolve.
eddyb Dec 18, 2014
fb1d6f2
middle: resolve: fix inconsistencies around ExportMap and remove the …
eddyb Dec 18, 2014
d8f57c3
rustc: middle: move DefMap from resolve to def.
eddyb Dec 18, 2014
f027607
rustc: middle: move TraitMap from resolve to ty.
eddyb Dec 18, 2014
10a862d
rustc: middle: use cheaper Name in resolve::Export instead of String.
eddyb Dec 18, 2014
d9504d4
rustc: middle: move Export and ExportMap from resolve to def.
eddyb Dec 18, 2014
5d1257a
rustc: middle: move TraitItemKind from resolve to def.
eddyb Dec 18, 2014
a74a050
rustc: middle: move some types from resolve to privacy.
eddyb Dec 18, 2014
c54fc98
Split resolve from rustc::middle into rustc_resolve.
eddyb Dec 18, 2014
1614d92
rustc_resolve: move unused import checking into its own module.
eddyb Dec 19, 2014
948cc66
rustc_resolve: move export recording into its own module.
eddyb Dec 19, 2014
5193d54
Fix the fallout of removing feature(import_shadowing).
eddyb Dec 15, 2014
f95e0c2
Fix more import_shadowing fallout in collections.
eddyb Dec 18, 2014
b45d30d
Fix fallout of removing import_shadowing in tests.
eddyb Dec 19, 2014
8443b09
auto merge of #19995 : eddyb/rust/split-resolve, r=nikomatsakis
bors Dec 20, 2014
89f75a6
Stabilize integer modules
aturon Dec 20, 2014
e473e70
Stabilize cell
aturon Dec 20, 2014
a7f1ce3
use binary literals to better reflect "bitflags"
jarod Dec 20, 2014
8f51ad2
auto merge of #19511 : eddyb/rust/no-shadow, r=alexcrichton
bors Dec 20, 2014
31f5ab3
Allow `Self` in impls.
nrc Dec 14, 2014
84b8f31
add {:?} fmt syntax
seanmonstar Dec 20, 2014
92ccc07
Stabilize clone
aturon Dec 20, 2014
e0cac48
Add parser support for generalized where clauses
jroesch Dec 20, 2014
d87b308
Add support for multiple region bounds in where clauses
jroesch Dec 20, 2014
acd31db
patch up pretty-printing test
nikomatsakis Dec 20, 2014
f8f2c7a
auto merge of #19900 : alexcrichton/rust/compiler-flags, r=cmr
bors Dec 20, 2014
9c51015
Conventions and cleanup for Bitv and BitvSet
Gankra Nov 22, 2014
8f194de
bitv: correct build failures
cuviper Dec 10, 2014
3deb97f
bitv: Fix all() for nbits that are multiples of u32::BITS
cuviper Dec 10, 2014
e84a383
Add a new invariant to `Bitv`
tbu- Dec 13, 2014
24329d7
Change `Extend` and `FromIterator` functionality of `BitvSet`
tbu- Dec 15, 2014
b4a065a
Correct typo in doc for StdinReaderGuard
shepmaster Dec 20, 2014
8a33de8
auto merge of #20073 : nikomatsakis/rust/generalized-where-clause-par…
bors Dec 20, 2014
44f6f52
metadata: Encode attrs for foreign items.
tomjakubowski Dec 20, 2014
cc33ce6
Add String::push_with_ascii_fast_path, bench it against String::push
SimonSapin Dec 20, 2014
e40a81b
Merge String::push_with_ascii_fast_path into String::push.
SimonSapin Dec 20, 2014
fb9b451
Visit + encode stability for foreign items
tomjakubowski Dec 20, 2014
cc19e33
auto merge of #19903 : cgaebel/rust/ringbuf-as-slice, r=Gankro
bors Dec 20, 2014
bffd802
Fix small typos in std::rand documentation
shepmaster Dec 20, 2014
c9010bf
Fix error message on invalid field names for a struct variant
barosl Dec 20, 2014
ce468e6
auto merge of #19946 : cgaebel/rust/hashmap-drain-iter, r=gankro
bors Dec 21, 2014
7d55249
doc: add missing "by default"
tshepang Dec 21, 2014
c141f22
auto merge of #19953 : sanxiyn/rust/privacy-span, r=alexcrichton
bors Dec 21, 2014
ee9de3b
Fully remove `notrust` markers from rustdoc
skade Dec 10, 2014
1bdcfd6
auto merge of #19961 : alexcrichton/rust/second-pass-result, r=aturon
bors Dec 21, 2014
ebf0e96
rollup merge of #19651: Gankro/ptr-docs
alexcrichton Dec 21, 2014
86cb99d
rollup merge of #19727: lfairy/patch-1
alexcrichton Dec 21, 2014
693cfab
rollup merge of #19823: iKevinY/doc-fixes
alexcrichton Dec 21, 2014
98af642
Remove a ton of public reexports
frewsxcv Dec 13, 2014
bc99ced
rollup merge of #19838: shepmaster/invariant-lifetime-copy
alexcrichton Dec 21, 2014
25f8051
rollup merge of #19842: frewsxcv/rm-reexports
alexcrichton Dec 21, 2014
2af8155
rollup merge of #19898: Aatch/issue-19684
alexcrichton Dec 21, 2014
e654491
rollup merge of #19926: eddyb/less-sty
alexcrichton Dec 21, 2014
264088c
rollup merge of #19932: elszben/master
alexcrichton Dec 21, 2014
c76590c
rollup merge of #19944: steveklabnik/doc_sync_arc
alexcrichton Dec 21, 2014
5acb622
rollup merge of #19957: tshepang/patch-1
alexcrichton Dec 21, 2014
e872269
rollup merge of #19961: alexcrichton/second-pass-result
alexcrichton Dec 21, 2014
9f4f6cf
rollup merge of #19965: japaric/remove-wrong-add
alexcrichton Dec 21, 2014
8c030a8
rollup merge of #19966: steveklabnik/remove_l10n
alexcrichton Dec 21, 2014
b4f393e
rollup merge of #19967: apasel422/binary_heap
alexcrichton Dec 21, 2014
ee1bb3f
rollup merge of #19969: aturon/inherit-trait-stab
alexcrichton Dec 21, 2014
31800b3
rollup merge of #19973: vhbit/ios-no-copy
alexcrichton Dec 21, 2014
319ed81
rollup merge of #19974: vhbit/json-unicode-literals
alexcrichton Dec 21, 2014
1d34d93
rollup merge of #19977: pnkfelix/add-test-for-issue-19811
alexcrichton Dec 21, 2014
ca521fb
rollup merge of #19979: Munksgaard/19978
alexcrichton Dec 21, 2014
5831122
rollup merge of #19980: erickt/cleanup-serialize
alexcrichton Dec 21, 2014
576467b
rollup merge of #19983: Munksgaard/fix-19981
alexcrichton Dec 21, 2014
67ea1dc
rollup merge of #19989: th0114nd/quotes-around-as
alexcrichton Dec 21, 2014
91b3232
rollup merge of #19993: bluss/setalgebraitems
alexcrichton Dec 21, 2014
7e2ed4a
rollup merge of #19994: bluss/doc-ownership
alexcrichton Dec 21, 2014
4ae3107
rollup merge of #19996: th0114nd/boolean-inden
alexcrichton Dec 21, 2014
fc40812
rollup merge of #20006: alexcrichton/no-more-empty-modules
alexcrichton Dec 21, 2014
de7abcf
rollup merge of #20014: kballard/unsized-marker-type-params
alexcrichton Dec 21, 2014
a3dfaa6
rollup merge of #20027: michaelwoerister/for-loop-var
alexcrichton Dec 21, 2014
cfc815b
rollup merge of #20029: vhbit/ios-no-rt
alexcrichton Dec 21, 2014
eb47e1e
rollup merge of #20039: barosl/if-let-friendly-error
alexcrichton Dec 21, 2014
fb6ff04
rollup merge of #20044: csouth3/vec-resize
alexcrichton Dec 21, 2014
40d59e9
rollup merge of #20052: barosl/deref-for-box
alexcrichton Dec 21, 2014
7e62684
rollup merge of #20054: bheesham/nomet
alexcrichton Dec 21, 2014
bc1d818
rollup merge of #20057: nick29581/array-syntax
alexcrichton Dec 21, 2014
e1d0976
rollup merge of #20059: nick29581/self-impl
alexcrichton Dec 21, 2014
f6a7388
rollup merge of #20062: aturon/stab-2-ints
alexcrichton Dec 21, 2014
b187ae5
rollup merge of #20066: aturon/stab-2-cell
alexcrichton Dec 21, 2014
6495c27
rollup merge of #20069: jarod/bitflags
alexcrichton Dec 21, 2014
1dc5e63
rollup merge of #20070: aturon/stab-2-clone
alexcrichton Dec 21, 2014
0191dce
rollup merge of #20077: shepmaster/stdin-typo
alexcrichton Dec 21, 2014
3e5257f
rollup merge of #20079: SimonSapin/string_push_ascii_fast_path
alexcrichton Dec 21, 2014
40e1f7c
rollup merge of #20080: seanmonstar/new-show-syntax
alexcrichton Dec 21, 2014
97f605e
rollup merge of #20081: tomjakubowski/issue-19646
alexcrichton Dec 21, 2014
1c80446
Create a snapshot for 8443b09
flaper87 Dec 20, 2014
2135712
rollup merge of #20086: shepmaster/random-typo
alexcrichton Dec 21, 2014
a666105
std: Don't parse argv as a String
alexcrichton Dec 21, 2014
08ac8d7
rollup merge of #20090: FlaPer87/snapshot
alexcrichton Dec 21, 2014
b084cda
rollup merge of #20100: alexcrichton/issue-20091
alexcrichton Dec 21, 2014
dbeef0e
rollup merge of #19972: alexcrichton/snapshots
alexcrichton Dec 21, 2014
fb7c088
Test fixes and rebase conflicts
alexcrichton Dec 21, 2014
34d6800
auto merge of #20104 : alexcrichton/rust/rollup, r=alexcrichton
bors Dec 22, 2014
4908017
std: Stabilize the std::str module
alexcrichton Dec 10, 2014
abf492d
Misc Stabilization for collections
csouth3 Dec 19, 2014
023572b
pprust: Fix asm options
klutzy Dec 17, 2014
db3989c
Implement BitOps for HashSet
csouth3 Dec 18, 2014
082bfde
Fallout of std::str stabilization
alexcrichton Dec 11, 2014
a76a802
serialize: Fully deprecate the library
alexcrichton Dec 19, 2014
fc30518
Escape control characters in JSON output.
rolftimmermans Dec 20, 2014
903f5c4
Avoid allocations.
rolftimmermans Dec 20, 2014
82f411d
Remove unnecessary deref().
rolftimmermans Dec 20, 2014
0a7ef3f
Add myself to authors.
rolftimmermans Dec 21, 2014
f8cfd24
Renaming of the Iter types as in RFC #344
fwilkens-srl Dec 19, 2014
e711e2d
Add `-Z unstable-options` debugging flag, which can then be used to
pnkfelix Dec 17, 2014
41def27
Add `--pretty everybody_loops` option.
pnkfelix Dec 17, 2014
bf2f84b
Add an unstable `--xpretty _` option to `rustc`. Moved `flowgraph`
pnkfelix Dec 17, 2014
8c8cb99
Introduce a tcx() helper method to cleanup this mess.
nikomatsakis Nov 26, 2014
22050e3
Added missing renames:
fwilkens-srl Dec 20, 2014
98ed882
Removed unused context-switching assembly code.
selaine Dec 22, 2014
f460995
Make ty_bare_fn carry an optional def-id indicating whether it is the
nikomatsakis Nov 26, 2014
2a43b35
Rote changes that don't care to distinguish between a fn pointer and …
nikomatsakis Nov 26, 2014
fad1423
Adjust metadata for new fields and enum variants. Yawn.
nikomatsakis Nov 26, 2014
39be95c
Insert FIXME links to issue #19925: fn item types should be zero-sized.
nikomatsakis Nov 26, 2014
211782f
Perform coercions on LHS assignments.
nikomatsakis Dec 3, 2014
7f6177e
Fix fallout from changes. In cases where stage0 compiler is needed, we
nikomatsakis Nov 26, 2014
8fe9e4d
Insert coercions to fn pointer types required for the new types
nikomatsakis Dec 15, 2014
41ef2d8
Various simple tests for fn item type vs fn pointer type and for coer…
nikomatsakis Nov 26, 2014
69a1d0e
Change print out to include the path to the fn, a bit ad-hoc for now .
nikomatsakis Dec 3, 2014
2e29065
Address nit.
nikomatsakis Dec 16, 2014
2c76ced
Correct merge failure around imports in `str.rs`.
nikomatsakis Dec 19, 2014
763152b
Tweak region-related error messages that changed slightly due to coer…
nikomatsakis Dec 21, 2014
faa0094
Update man page with the new options
nagisa Dec 22, 2014
e8fcbfb
Add a doctest for the btreemap's entry method.
jbranchaud Dec 22, 2014
34d4378
fix run-make/ tests now flowgraph printing has moved to the unstable …
pnkfelix Dec 22, 2014
20d7a5f
Make bitv's APIs match RFC + fixup
Gankra Dec 15, 2014
02feaf2
Remove cmp::Ordering::* public reexport
frewsxcv Dec 22, 2014
2f55a9d
rollup merge of #19216: Gankro/bitv
alexcrichton Dec 22, 2014
9b99436
rollup merge of #19741: alexcrichton/stabilize-str
alexcrichton Dec 22, 2014
b04bc5c
rollup merge of #20033: alexcrichton/deprecate-serialise
alexcrichton Dec 22, 2014
7311b63
rollup merge of #20053: csouth3/misc-stab
alexcrichton Dec 22, 2014
4baeace
rollup merge of #20075: skade/remove-notrust
alexcrichton Dec 22, 2014
d3f3ae3
rollup merge of #20084: barosl/struct-variant-field-err
alexcrichton Dec 22, 2014
941361b
rollup merge of #20102: tshepang/patch-4
alexcrichton Dec 22, 2014
55cf032
rollup merge of #20124: klutzy/pprust-asm
alexcrichton Dec 22, 2014
2cc9bac
rollup merge of #20125: csouth3/hashset-bitops
alexcrichton Dec 22, 2014
48d1bb3
rollup merge of #20129: nagisa/man-fixes
alexcrichton Dec 22, 2014
e5800dd
rollup merge of #20134: jbranchaud/add-doctest-for-btreemap-entry
alexcrichton Dec 22, 2014
ca441df
rollup merge of #20135: selaine/less-asm
alexcrichton Dec 22, 2014
fac17de
rollup merge of #20140: frewsxcv/rm-reexports
alexcrichton Dec 22, 2014
6938d51
rollup merge of #20141: frewsxcv/rfc438
alexcrichton Dec 22, 2014
459f3b2
rollup merge of #20056: MrFloya/iter_rename
alexcrichton Dec 22, 2014
de11710
rollup merge of #19891: nikomatsakis/unique-fn-types-3
alexcrichton Dec 22, 2014
0a07db4
rollup merge of #19964: pnkfelix/everybody-loops-pprint
alexcrichton Dec 22, 2014
8824c39
rollup merge of #20089: rolftimmermans/json-control-chars-escape
alexcrichton Dec 22, 2014
3583d61
Test fixes and rebase conflicts
alexcrichton Dec 22, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ Robert Irelan <[email protected]>
Robert Knight <[email protected]>
Robert Millar <[email protected]>
Roland Tanglao <[email protected]>
Rolf Timmermans <[email protected]>
Ron Dahlgren <[email protected]>
Roy Frostig <[email protected]>
Russell <[email protected]>
Expand Down
131 changes: 79 additions & 52 deletions man/rustc.1
Original file line number Diff line number Diff line change
Expand Up @@ -12,75 +12,54 @@ This program is a compiler for the Rust language, available at
.SH OPTIONS

.TP
\fB\-\-crate-name NAME\fR
Specify the name of the crate being built
.TP
\fB\-\-crate-type=[bin|lib|dylib|rlib|staticlib]\fR
Configure the flavor of rust crate that is generated (default `bin`)
\fB\-h\fR, \fB\-\-help\fR
Display the help message
.TP
\fB\-\-cfg\fR SPEC
Configure the compilation environment
.TP
\fB\-\-emit=[asm,ir,bc,obj,link]\fR
Configure the output that rustc will produce
.TP
\fB\-h\fR, \fB\-\-help\fR
Display this message
.TP
\fB\-L\fR PATH
Add a directory to the library search path
.TP
\fB\-\-no\-trans\fR
Run all passes except translation; no output
\fB\-l\fR NAME[:KIND]
Link the generated crate(s) to the specified native library NAME. The optional
KIND can be one of, static, dylib, or framework. If omitted, dylib is assumed.
.TP
\fB\-\-no\-analysis\fR
Parse and expand the source, but run no analysis and produce no output
\fB\-\-crate-type\fR [bin|lib|rlib|dylib|staticlib]
Comma separated list of types of crates for the compiler to emit
.TP
\fB\-g\fR
Emit DWARF debug information into object files generated.
\fB\-\-crate-name NAME\fR
Specify the name of the crate being built
.TP
\fB\-\-debuginfo\fR LEVEL
Emit DWARF debug info to the objects created: 0 = no debug info, 1 =
line-tables only (for stacktraces and breakpoints), 2 = full debug
info with variable and type information (same as -g).
\fB\-\-emit\fR [asm|llvm-bc|llvm-ir|obj|link|dep-info]
Configure the output that rustc will produce
.TP
\fB\-\-print\fR [crate-name|output-file-names|sysroot]
Comma separated list of compiler information to print on stdout
.TP
\fB\-g\fR
Equivalent to \fI\-C\fR debuginfo=2
.TP
\fB\-O\fR
Equivalent to \fI\-\-opt\-level=2\fR
Equivalent to \fI\-C\fR opt-level=2
.TP
\fB\-o\fR FILENAME
Write output to <filename>. Ignored if more than one --emit is specified.
.TP
\fB\-\-opt\-level\fR LEVEL
Optimize with possible levels 0-3
Write output to <filename>. Ignored if multiple \fI\-\-emit\fR outputs are
specified.
.TP
\fB\-\-out\-dir\fR DIR
Write output to compiler-chosen filename in <dir>. Ignored if -o is specified.
(default the current directory)
.TP
\fB\-\-parse\-only\fR
Parse only; do not compile, assemble, or link
Write output to compiler-chosen filename in <dir>. Ignored if \fI\-o\fR is
specified. Defaults to the current directory.
.TP
\fB\-\-pretty\fR [TYPE]
Pretty-print the input instead of compiling; valid types are: normal
(un-annotated source), expanded (crates expanded), typed (crates
expanded, with type annotations), identified (fully parenthesized,
AST nodes and blocks with IDs), or flowgraph=<nodeid> (graphviz
formatted flowgraph for node)
.TP
\fB\-\-dep-info\fR [FILENAME]
Output dependency info to <filename> after compiling, in a format suitable
for use by Makefiles.
.TP
\fB\-\-sysroot\fR PATH
Override the system root
\fB\-\-explain\fR OPT
Provide a detailed explanation of an error message
.TP
\fB\-\-test\fR
Build a test harness
.TP
\fB\-\-target\fR TRIPLE
Target triple cpu-manufacturer-kernel[-os] to compile for (see
http://sources.redhat.com/autobook/autobook/autobook_17.html
for details)
Target triple cpu-manufacturer-kernel[-os] to compile for (see chapter 3.4 of
http://www.sourceware.org/autobook/ for details)
.TP
\fB\-W\fR help
Print 'lint' options and default settings
Expand All @@ -97,15 +76,30 @@ Set lint denied
\fB\-F\fR OPT, \fB\-\-forbid\fR OPT
Set lint forbidden
.TP
\fB\-Z\fR FLAG
Set internal debugging options. Use "-Z help" to print available options.
.TP
\fB\-C\fR FLAG[=VAL], \fB\-\-codegen\fR FLAG[=VAL]
Set a codegen-related flag to the value specified. Use "-C help" to print
available flags. See CODEGEN OPTIONS below
.TP
\fB\-v\fR, \fB\-\-version\fR
\fB\-V\fR, \fB\-\-version\fR
Print version info and exit
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Use verbose output
.TP
\fB\-\-extern\fR NAME=PATH
Specify where an external rust library is located
.TP
\fB\-\-sysroot\fR PATH
Override the system root
.TP
\fB\-Z\fR FLAG
Set internal debugging options. Use "-Z help" to print available options.
.TP
\fB\-\-color\fR auto|always|never
Configure coloring of output:
auto = colorize, if output goes to a tty (default);
always = always colorize output;
never = never colorize output

.SH CODEGEN OPTIONS

Expand All @@ -121,6 +115,9 @@ objects.
A space-separated list of extra arguments to pass to the linker when the linker
is invoked.
.TP
\fBlto\fR
Perform LLVM link-time optimizations.
.TP
\fBtarget-cpu\fR=help
Selects a target processor. If the value is 'help', then a list of available
CPUs is printed.
Expand Down Expand Up @@ -167,8 +164,38 @@ Prefers dynamic linking to static linking.
\fBno-integrated-as\fR
Force usage of an external assembler rather than LLVM's integrated one.
.TP
\fBno-redzone\fR
Disable the use of the redzone.
.TP
\fBrelocation-model\fR=[pic,static,dynamic-no-pic]
The relocation model to use. (default: pic)
The relocation model to use. (Default: pic)
.TP
\fBcode-model\fR=[small,kernel,medium,large]
Choose the code model to use.
.TP
\fBmetadata\fR=val
Metadata to mangle symbol names with.
.TP
\fBextra-filename\fR=val
Extra data to put in each output filename.
.TP
\fBcodegen-units\fR=val
Divide crate into N units to optimize in parallel.
.TP
\fBremark\fR=val
Print remarks for these optimization passes (space separated, or "all").
.TP
\fBno-stack-check\fR
Disable checks for stack exhaustion (a memory-safety hazard!).
.TP
\fBdebuginfo\fR=val
Debug info emission level:
0 = no debug info;
1 = line-tables only (for stacktraces and breakpoints);
2 = full debug info with variable and type information.
.TP
\fBopt-level\fR=val
Optimize with possible levels 0-3

.SH "EXAMPLES"
To build an executable from a source file with a main function:
Expand Down
12 changes: 8 additions & 4 deletions mk/crates.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ TARGET_CRATES := libc std flate arena term \
serialize getopts collections test time rand \
log regex graphviz core rbml alloc \
unicode
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_driver rustc_trans rustc_back rustc_llvm
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
rustc_trans rustc_back rustc_llvm
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc regex_macros fmt_macros
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
TOOLS := compiletest rustdoc rustc
Expand All @@ -67,11 +68,12 @@ DEPS_std := core libc rand alloc collections unicode \
DEPS_graphviz := std
DEPS_syntax := std term serialize log fmt_macros arena libc
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
rustc_typeck log syntax serialize rustc_llvm rustc_trans
rustc_typeck rustc_resolve log syntax serialize rustc_llvm rustc_trans
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
log syntax serialize rustc_llvm
DEPS_rustc_typeck := rustc syntax
DEPS_rustc_borrowck := rustc log graphviz syntax
DEPS_rustc_resolve := rustc log syntax
DEPS_rustc := syntax flate arena serialize getopts rbml \
time log graphviz rustc_llvm rustc_back
DEPS_rustc_llvm := native:rustllvm libc std
Expand Down Expand Up @@ -118,9 +120,11 @@ DOC_CRATES := $(filter-out rustc, \
$(filter-out rustc_trans, \
$(filter-out rustc_typeck, \
$(filter-out rustc_borrowck, \
$(filter-out rustc_resolve, \
$(filter-out rustc_driver, \
$(filter-out syntax, $(CRATES)))))))
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_typeck rustc_driver syntax
$(filter-out syntax, $(CRATES))))))))
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
rustc_typeck rustc_driver syntax

# This macro creates some simple definitions for each crate being built, just
# some munging of all of the parameters above.
Expand Down
34 changes: 0 additions & 34 deletions mk/docs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -216,36 +216,6 @@ endef
$(foreach docname,$(DOCS),$(eval $(call DEF_DOC,$(docname))))


# Localized documentation

# FIXME: I (huonw) haven't actually been able to test properly, since
# e.g. (by default) I'm doing an out-of-tree build (#12763), but even
# adjusting for that, the files are too old(?) and are rejected by
# po4a.
#
# As such, I've attempted to get it working as much as possible (and
# switching from pandoc to rustdoc), but preserving the old behaviour
# (e.g. only running on the guide)
.PHONY: l10n-mds
l10n-mds: $(D)/po4a.conf \
$(foreach lang,$(L10N_LANG),$(D)/po/$(lang)/*.md.po)
$(warning WARNING: localized documentation is experimental)
po4a --copyright-holder="The Rust Project Developers" \
--package-name="Rust" \
--package-version="$(CFG_RELEASE)" \
-M UTF-8 -L UTF-8 \
$(D)/po4a.conf

define DEF_L10N_DOC
DOC_L10N_TARGETS += doc/l10n/$(1)/$(2).html
doc/l10n/$(1)/$(2).html: l10n-mds $$(HTML_DEPS) $$(RUSTDOC_DEPS_$(2))
@$$(call E, rustdoc: $$@)
$$(RUSTDOC) $$(RUSTDOC_HTML_OPTS) $$(RUSTDOC_FLAGS_$(1)) doc/l10n/$(1)/$(2).md
endef

$(foreach lang,$(L10N_LANGS),$(eval $(call DEF_L10N_DOC,$(lang),guide)))


######################################################################
# Rustdoc (libstd/extra)
######################################################################
Expand Down Expand Up @@ -294,7 +264,3 @@ endif

docs: $(DOC_TARGETS)
compiler-docs: $(COMPILER_DOC_TARGETS)

docs-l10n: $(DOC_L10N_TARGETS)

.PHONY: docs-l10n
5 changes: 2 additions & 3 deletions mk/rt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# that's per-target so you're allowed to conditionally add files based on the
# target.
################################################################################
NATIVE_LIBS := rust_builtin hoedown morestack miniz context_switch \
NATIVE_LIBS := rust_builtin hoedown morestack miniz \
rustrt_native rust_test_helpers

# $(1) is the target triple
Expand All @@ -58,8 +58,7 @@ NATIVE_DEPS_rustrt_native_$(1) := \
arch/$$(HOST_$(1))/record_sp.S
NATIVE_DEPS_rust_test_helpers_$(1) := rust_test_helpers.c
NATIVE_DEPS_morestack_$(1) := arch/$$(HOST_$(1))/morestack.S
NATIVE_DEPS_context_switch_$(1) := \
arch/$$(HOST_$(1))/_context.S


################################################################################
# You shouldn't find it that necessary to edit anything below this line.
Expand Down
20 changes: 2 additions & 18 deletions mk/tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ $(eval $(call RUST_CRATE,coretest))

TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) coretest
TEST_DOC_CRATES = $(DOC_CRATES)
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_trans,$(HOST_CRATES))
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve rustc_trans,\
$(HOST_CRATES))
TEST_CRATES = $(TEST_TARGET_CRATES) $(TEST_HOST_CRATES)

######################################################################
Expand Down Expand Up @@ -73,21 +74,6 @@ endif
TEST_LOG_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
TEST_OK_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).ok

TEST_RATCHET_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4)-metrics.json
TEST_RATCHET_NOISE_PERCENT=10.0

# Whether to ratchet or merely save benchmarks
ifdef CFG_RATCHET_BENCH
CRATE_TEST_EXTRA_ARGS= \
--test $(TEST_BENCH) \
--ratchet-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) \
--ratchet-noise-percent $(TEST_RATCHET_NOISE_PERCENT)
else
CRATE_TEST_EXTRA_ARGS= \
--test $(TEST_BENCH) \
--save-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4))
endif

# If we're sharding the testsuite between parallel testers,
# pass this argument along to the compiletest and crate test
# invocations.
Expand Down Expand Up @@ -454,7 +440,6 @@ $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
$$(Q)touch tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
$$(Q)$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log tmp/
$$(Q)$(CFG_ADB) shell rm $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
$$(Q)$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/$$(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) tmp/
@if grep -q "result: ok" tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp; \
then \
rm tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp; \
Expand Down Expand Up @@ -696,7 +681,6 @@ CTEST_ARGS$(1)-T-$(2)-H-$(3)-$(4) := \
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
--src-base $$(S)src/test/$$(CTEST_SRC_BASE_$(4))/ \
--build-base $(3)/test/$$(CTEST_BUILD_BASE_$(4))/ \
--ratchet-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) \
--mode $$(CTEST_MODE_$(4)) \
$$(CTEST_RUNTOOL_$(4))

Expand Down
6 changes: 2 additions & 4 deletions src/compiletest/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn parse_config(args: Vec<String> ) -> Config {
matches.opt_str("ratchet-metrics").map(|s| Path::new(s)),
ratchet_noise_percent:
matches.opt_str("ratchet-noise-percent")
.and_then(|s| from_str::<f64>(s.as_slice())),
.and_then(|s| s.as_slice().parse::<f64>()),
runtool: matches.opt_str("runtool"),
host_rustcflags: matches.opt_str("host-rustcflags"),
target_rustcflags: matches.opt_str("target-rustcflags"),
Expand Down Expand Up @@ -190,9 +190,7 @@ pub fn log_config(config: &Config) {
logv(c, format!("filter: {}",
opt_str(&config.filter
.as_ref()
.map(|re| {
re.to_string().into_string()
}))));
.map(|re| re.to_string()))));
logv(c, format!("runtool: {}", opt_str(&config.runtool)));
logv(c, format!("host-rustcflags: {}",
opt_str(&config.host_rustcflags)));
Expand Down
6 changes: 3 additions & 3 deletions src/compiletest/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ pub fn gdb_version_to_int(version_string: &str) -> int {
panic!("{}", error_string);
}

let major: int = from_str(components[0]).expect(error_string);
let minor: int = from_str(components[1]).expect(error_string);
let major: int = components[0].parse().expect(error_string);
let minor: int = components[1].parse().expect(error_string);

return major * 1000 + minor;
}
Expand All @@ -362,6 +362,6 @@ pub fn lldb_version_to_int(version_string: &str) -> int {
"Encountered LLDB version string with unexpected format: {}",
version_string);
let error_string = error_string.as_slice();
let major: int = from_str(version_string).expect(error_string);
let major: int = version_string.parse().expect(error_string);
return major;
}
Loading