]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoReturn the iterator from reader::docs.
Ms2ger [Sun, 17 May 2015 16:14:40 +0000 (18:14 +0200)]
Return the iterator from reader::docs.

9 years agoRewrite reader::docs with an iterator.
Ms2ger [Sun, 17 May 2015 16:07:23 +0000 (18:07 +0200)]
Rewrite reader::docs with an iterator.

9 years agoAuto merge of #25524 - Manishearth:unsafe_derive, r=cmr
bors [Sun, 17 May 2015 09:26:30 +0000 (09:26 +0000)]
Auto merge of #25524 - Manishearth:unsafe_derive, r=cmr

9 years agoAllow #[derive()] to generate unsafe methods
Manish Goregaokar [Sun, 17 May 2015 05:58:19 +0000 (11:28 +0530)]
Allow #[derive()] to generate unsafe methods

9 years agoAuto merge of #25525 - Manishearth:rollup, r=Manishearth
bors [Sun, 17 May 2015 06:25:58 +0000 (06:25 +0000)]
Auto merge of #25525 - Manishearth:rollup, r=Manishearth

- Successful merges: #25465, #25469, #25472, #25474, #25476, #25484, #25490, #25493, #25503, #25506, #25508, #25510, #25516, #25522
- Failed merges:

9 years agoRollup merge of #25522 - alexcrichton:reexport-incoming, r=sfackler
Manish Goregaokar [Sun, 17 May 2015 06:25:40 +0000 (11:55 +0530)]
Rollup merge of #25522 - alexcrichton:reexport-incoming, r=sfackler

This iterator was mistakenly not reexported at the top level, preventing
actually naming the type!

Closes #25519

9 years agoRollup merge of #25516 - bstrie:cstrdoc, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:40 +0000 (11:55 +0530)]
Rollup merge of #25516 - bstrie:cstrdoc, r=alexcrichton

No need for `&b"foo"[..]` to make a CString, `"foo"` will do.

9 years agoRollup merge of #25510 - thelostt:patch-1, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:40 +0000 (11:55 +0530)]
Rollup merge of #25510 - thelostt:patch-1, r=alexcrichton

The same example for ``reverse`` were in the ``reserve_exact``'s example.

9 years agoRollup merge of #25508 - johshoff:visit_dirs_example, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:40 +0000 (11:55 +0530)]
Rollup merge of #25508 - johshoff:visit_dirs_example, r=alexcrichton

The current version of the example won't compile due to unstable features.
This is an attempt to fix that, at the cost of slightly more verbose code.

Using rust 1.0.0 (a59de37e9).

It might be obvious, but I'm not well versed with rust, so feedback is very welcome.

9 years agoRollup merge of #25506 - Wilfred:master, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:39 +0000 (11:55 +0530)]
Rollup merge of #25506 - Wilfred:master, r=alexcrichton

Newcomers to Rust need to learn the distinctinion between `&str` and
`String`, so additonally having `string` in an example risks confusion.

9 years agoRollup merge of #25503 - brson:betafix, r=cmr
Manish Goregaokar [Sun, 17 May 2015 06:25:39 +0000 (11:55 +0530)]
Rollup merge of #25503 - brson:betafix, r=cmr

9 years agoRollup merge of #25493 - coffeejunk:update_installed_rust_version, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:39 +0000 (11:55 +0530)]
Rollup merge of #25493 - coffeejunk:update_installed_rust_version, r=alexcrichton

Rust is out of beta :tada:

r? @steveklabnik

9 years agoRollup merge of #25490 - huachaohuang:patch-1, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:39 +0000 (11:55 +0530)]
Rollup merge of #25490 - huachaohuang:patch-1, r=alexcrichton

9 years agoRollup merge of #25484 - sumito3478:fix-deadlink-in-complement-lang-faq, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:38 +0000 (11:55 +0530)]
Rollup merge of #25484 - sumito3478:fix-deadlink-in-complement-lang-faq, r=alexcrichton

In "The Rust Language FAQ", some of the links to example projects/modules written in Rust are dead links. This PR updates them.

9 years agoRollup merge of #25476 - rpjohnst:master, r=huonw
Manish Goregaokar [Sun, 17 May 2015 06:25:38 +0000 (11:55 +0530)]
Rollup merge of #25476 - rpjohnst:master, r=huonw

Closes #18173

9 years agoRollup merge of #25474 - achanda:fix_email, r=nikomatsakis
Manish Goregaokar [Sun, 17 May 2015 06:25:38 +0000 (11:55 +0530)]
Rollup merge of #25474 - achanda:fix_email, r=nikomatsakis

9 years agoRollup merge of #25472 - WillEngler:book-tiny-typo-fixes, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:38 +0000 (11:55 +0530)]
Rollup merge of #25472 - WillEngler:book-tiny-typo-fixes, r=alexcrichton

This PR fixes two little typos in the Dining Philosophers example.

Also, there are two style points that may have been oversights but may have been deliberate, so I'll just bring them up here:

1) In the last paragraph, you say

> You’ll notice we can introduce a new binding to `table` here, and it will shadow the old one. This is often used so that you don’t need to come up with two unique names.

You already said something similar to this in the Guessing Game, but maybe you intended for this example to be independent of that one.

2) In "Rust Inside Other Languages," you introduce the idea of the "global interpreter lock" and then refer to it as the GIL a few paragraphs later without explicitly stating that GIL == global interpreter lock. It's reasonable to expect readers to make the connection, but maybe that's not what you intended.

Excellent work on the examples! Congrats on 1.0!

r? @steveklabnik

9 years agoRollup merge of #25469 - ecoal95:patch-1, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:38 +0000 (11:55 +0530)]
Rollup merge of #25469 - ecoal95:patch-1, r=alexcrichton

Just detected it while reading.

9 years agoRollup merge of #25465 - Ryman:patch-2, r=alexcrichton
Manish Goregaokar [Sun, 17 May 2015 06:25:37 +0000 (11:55 +0530)]
Rollup merge of #25465 - Ryman:patch-2, r=alexcrichton

r? @steveklabnik

9 years agostd: Reexport std::net::tcp::Incoming
Alex Crichton [Sun, 17 May 2015 05:24:13 +0000 (22:24 -0700)]
std: Reexport std::net::tcp::Incoming

This iterator was mistakenly not reexported at the top level, preventing
actually naming the type!

Closes #25519

9 years agoSimplify CString doc comment
Ben Striegel [Sun, 17 May 2015 02:30:25 +0000 (22:30 -0400)]
Simplify CString doc comment

No need for `&b"foo"[..]` to make a CString, `"foo"` will do.

9 years agoAuto merge of #25458 - P1start:arc-dst, r=huonw
bors [Sun, 17 May 2015 01:41:52 +0000 (01:41 +0000)]
Auto merge of #25458 - P1start:arc-dst, r=huonw

9 years agoAuto merge of #25387 - eddyb:syn-file-loader, r=nikomatsakis
bors [Sun, 17 May 2015 00:05:34 +0000 (00:05 +0000)]
Auto merge of #25387 - eddyb:syn-file-loader, r=nikomatsakis

This allows compiling entire crates from memory or preprocessing source files before they are tokenized.

Minor API refactoring included, which is a [breaking-change] for libsyntax users:
* `ParseSess::{next_node_id, reserve_node_ids}` moved to rustc's `Session`
* `new_parse_sess` -> `ParseSess::new`
* `new_parse_sess_special_handler` -> `ParseSess::with_span_handler`
* `mk_span_handler` -> `SpanHandler::new`
* `default_handler` -> `Handler::new`
* `mk_handler` -> `Handler::with_emitter`
* `string_to_filemap(sess source, path)` -> `sess.codemap().new_filemap(path, source)`

9 years agoFixed reserve_exact example
Mário Feroldi [Sat, 16 May 2015 23:59:20 +0000 (20:59 -0300)]
Fixed reserve_exact example

The same example for ``reverse`` were in the ``reserve_exact``'s example.

9 years agoMake `Arc` support DSTs
P1start [Sat, 16 May 2015 23:25:17 +0000 (11:25 +1200)]
Make `Arc` support DSTs

9 years agotest/compile-fail: fix expected error message for non-UTF8 source.
Eduard Burtescu [Sat, 16 May 2015 23:15:00 +0000 (02:15 +0300)]
test/compile-fail: fix expected error message for non-UTF8 source.

9 years agofs::walk_dir example without unstable features
Johannes Hoff [Sat, 16 May 2015 23:07:52 +0000 (16:07 -0700)]
fs::walk_dir example without unstable features

The current version of the example won't compile due to unstable features.
This is an attempt to fix that, at the cost of slightly more verbose code.

9 years agoAvoid calling a variable 'string' when discussing strings.
Wilfred Hughes [Sat, 16 May 2015 22:52:28 +0000 (23:52 +0100)]
Avoid calling a variable 'string' when discussing strings.

Newcomers to Rust need to learn the distinctinion between `&str` and
`String`, so additonally having `string` in an example risks confusion.

9 years agoAuto merge of #25463 - jeremyschlatter:master, r=alexcrichton
bors [Sat, 16 May 2015 22:29:56 +0000 (22:29 +0000)]
Auto merge of #25463 - jeremyschlatter:master, r=alexcrichton

9 years agoMake a test compatible with the beta channel
Brian Anderson [Sat, 16 May 2015 21:53:37 +0000 (14:53 -0700)]
Make a test compatible with the beta channel

9 years agoAuto merge of #25485 - XuefengWu:24968_err_msg_parse_self_type_2, r=nrc
bors [Sat, 16 May 2015 20:53:42 +0000 (20:53 +0000)]
Auto merge of #25485 - XuefengWu:24968_err_msg_parse_self_type_2, r=nrc

fix #24968
report more friendly error message for Self when fn args
copy from https://github.com/rust-lang/rust/pull/25096
r? @nrc  @arielb1

9 years agoAuto merge of #25434 - dotdash:gep, r=alexcrichton
bors [Sat, 16 May 2015 19:17:30 +0000 (19:17 +0000)]
Auto merge of #25434 - dotdash:gep, r=alexcrichton

Using regular pointer arithmetic to iterate collections of zero-sized types
doesn't work, because we'd get the same pointer all the time. Our
current solution is to convert the pointer to an integer, add an offset
and then convert back, but this inhibits certain optimizations.

What we should do instead is to convert the pointer to one that points
to an i8\*, and then use a LLVM GEP instructions without the inbounds
flag to perform the pointer arithmetic. This allows to generate pointers
that point outside allocated objects without causing UB (as long as you
don't dereference them), and it wraps around using two's complement,
i.e. it behaves exactly like the wrapping_* operations we're currently
using, with the added benefit of LLVM being able to better optimize the
resulting IR.

9 years agoAuto merge of #25462 - alexcrichton:favicon-https, r=nrc
bors [Sat, 16 May 2015 17:41:28 +0000 (17:41 +0000)]
Auto merge of #25462 - alexcrichton:favicon-https, r=nrc

Helps prevent mixed content warnings if accessing docs over HTTPS.

Closes #25459

9 years agoUpdate windows install links to 1.0
Maximilian Haack [Sat, 16 May 2015 17:18:52 +0000 (19:18 +0200)]
Update windows install links to 1.0

Fixes #25489

9 years agoAuto merge of #25460 - P1start:rc-unsized-impls, r=luqmana
bors [Sat, 16 May 2015 16:06:05 +0000 (16:06 +0000)]
Auto merge of #25460 - P1start:rc-unsized-impls, r=luqmana

Most of `Rc`’s trait implementations were DST-ified in #24619, but not these ones.

9 years agoUpdate the shown installed rust version to 1.0
Maximilian Haack [Sat, 16 May 2015 15:20:07 +0000 (17:20 +0200)]
Update the shown installed rust version to 1.0

:tada: :tada: :tada:

9 years agoUpdate rust-inside-other-languages.md
Huachao Huang [Sat, 16 May 2015 13:44:02 +0000 (21:44 +0800)]
Update rust-inside-other-languages.md

9 years agofix error message in test
Xuefeng Wu [Sat, 16 May 2015 13:39:48 +0000 (21:39 +0800)]
fix error message in test

9 years agoAuto merge of #25444 - nikomatsakis:macro-tt-fix, r=pnkfelix
bors [Sat, 16 May 2015 12:29:31 +0000 (12:29 +0000)]
Auto merge of #25444 - nikomatsakis:macro-tt-fix, r=pnkfelix

Permit token trees, identifiers, and blocks to be following by sequences.

Fixes #25436.

r? @pnkfelix

9 years agoAdd test for two sequence repetitions in a row
Niko Matsakis [Sat, 16 May 2015 12:26:44 +0000 (08:26 -0400)]
Add test for two sequence repetitions in a row

9 years agoAuto merge of #25487 - P1start:extern-crate-unexpected-error, r=huonw
bors [Sat, 16 May 2015 10:53:25 +0000 (10:53 +0000)]
Auto merge of #25487 - P1start:extern-crate-unexpected-error, r=huonw

Closes #25468.

9 years agoClarify the error message for malformed `extern crate` statements
P1start [Sat, 16 May 2015 10:35:59 +0000 (22:35 +1200)]
Clarify the error message for malformed `extern crate` statements

Closes #25468.

9 years agofix trait capitalise typo in test file
Xuefeng Wu [Sat, 16 May 2015 09:37:11 +0000 (17:37 +0800)]
fix trait capitalise typo in test file

9 years agofix typo for copyright year and trait capitalise
Xuefeng Wu [Sat, 16 May 2015 07:36:17 +0000 (15:36 +0800)]
fix typo for copyright year and trait capitalise

9 years agochange Self type error message
XuefengWu [Sun, 10 May 2015 09:09:56 +0000 (17:09 +0800)]
change Self type error message

9 years agomore friend error message for in fn arg
Xuefeng Wu [Mon, 4 May 2015 11:27:02 +0000 (19:27 +0800)]
more friend error message for  in fn arg

9 years agoFix deadlinks in complement-lang-faq.md
sumito3478 [Sat, 16 May 2015 09:06:22 +0000 (18:06 +0900)]
Fix deadlinks in complement-lang-faq.md

9 years agoAuto merge of #25453 - jimblandy:FQA-fiasco-link, r=alexcrichton
bors [Sat, 16 May 2015 08:37:31 +0000 (08:37 +0000)]
Auto merge of #25453 - jimblandy:FQA-fiasco-link, r=alexcrichton

Fix the link to the "static initialization order fiasco" discussion in the C++ Frequently Questioned Answers.

At present the link points to a mail message summarizing the decision not to have resumable exceptions, but the FAQ means to refer to a discussion of the "static initialization order fiasco". I've made my best guess at what it meant to refer to.

9 years agoAuto merge of #25450 - dnaeon:docs, r=alexcrichton
bors [Sat, 16 May 2015 07:01:32 +0000 (07:01 +0000)]
Auto merge of #25450 - dnaeon:docs, r=alexcrichton

9 years agoAuto merge of #25449 - IvanUkhov:std-doc, r=alexcrichton
bors [Sat, 16 May 2015 05:25:44 +0000 (05:25 +0000)]
Auto merge of #25449 - IvanUkhov:std-doc, r=alexcrichton

9 years agoAuto merge of #25447 - brson:version, r=alexcrichton
bors [Sat, 16 May 2015 03:48:24 +0000 (03:48 +0000)]
Auto merge of #25447 - brson:version, r=alexcrichton

9 years agoTest that associated types are not required as type parameters
Russell Johnston [Sat, 16 May 2015 02:49:01 +0000 (20:49 -0600)]
Test that associated types are not required as type parameters

Closes #18173

9 years agoChange my email
Abhishek Chanda [Sat, 16 May 2015 02:18:06 +0000 (19:18 -0700)]
Change my email

9 years agoAuto merge of #25440 - durka:patch-3, r=alexcrichton
bors [Sat, 16 May 2015 02:11:11 +0000 (02:11 +0000)]
Auto merge of #25440 - durka:patch-3, r=alexcrichton

The Traits chapter uses "adding methods to `int`" as an example of "something bad", but there is no such thing as `int` anymore, right? So I changed it to `i32`.

9 years agoCorrect two small typos in the Dining Philosophers example.
Will Engler [Sat, 16 May 2015 01:32:13 +0000 (19:32 -0600)]
Correct two small typos in the Dining Philosophers example.

9 years agoAuto merge of #25466 - P1start:move-closure-span, r=alexcrichton
bors [Sat, 16 May 2015 00:32:35 +0000 (00:32 +0000)]
Auto merge of #25466 - P1start:move-closure-span, r=alexcrichton

Closes #24986.

9 years agoSmall typo in the docs
Emilio Cobos Álvarez [Sat, 16 May 2015 00:21:05 +0000 (02:21 +0200)]
Small typo in the docs

Just detected it while reading.

9 years agoFix the spans of `move` closures
P1start [Fri, 15 May 2015 23:24:06 +0000 (11:24 +1200)]
Fix the spans of `move` closures

Closes #24986.

9 years agolibstd: Path docs: `file` is now `file_name`
Ryman [Fri, 15 May 2015 23:16:11 +0000 (00:16 +0100)]
libstd: Path docs: `file` is now `file_name`

9 years agoFix quotation mark in ruby example.
Jeremy Schlatter [Fri, 15 May 2015 23:08:15 +0000 (16:08 -0700)]
Fix quotation mark in ruby example.

9 years agolibs: Move favicon URLs to HTTPS
Alex Crichton [Fri, 15 May 2015 23:04:01 +0000 (16:04 -0700)]
libs: Move favicon URLs to HTTPS

Helps prevent mixed content warnings if accessing docs over HTTPS.

Closes #25459

9 years agoAllow `?Sized` types in `Rc`’s impls of {Partial,}{Ord,Eq} and Borrow
P1start [Fri, 15 May 2015 22:29:35 +0000 (10:29 +1200)]
Allow `?Sized` types in `Rc`’s impls of {Partial,}{Ord,Eq} and Borrow

9 years agoAuto merge of #25432 - killercup:patch-12, r=steveklabnik
bors [Fri, 15 May 2015 22:55:03 +0000 (22:55 +0000)]
Auto merge of #25432 - killercup:patch-12, r=steveklabnik

`[let]` was already defined in line 11. Pandoc shows a warning for this. I'm not sure if it's actually invalid Markdown.

r? @steveklabnik

9 years agoAuto merge of #25437 - MazinZ1:master, r=alexcrichton
bors [Fri, 15 May 2015 21:17:42 +0000 (21:17 +0000)]
Auto merge of #25437 - MazinZ1:master, r=alexcrichton

The download links of Windows installers on the Nightly Rust page are using beta builds instead of nightly builds, which caused some confusions when I was setting up my env. Probably it's better to use the links of nightly builds here.

9 years agodocs: Typo fix
Marin Atanasov Nikolov [Fri, 15 May 2015 18:46:59 +0000 (21:46 +0300)]
docs: Typo fix

9 years agostd: fix a link
Ivan Ukhov [Fri, 15 May 2015 18:46:51 +0000 (14:46 -0400)]
std: fix a link

9 years agoAuto merge of #25429 - nham:patch-1, r=steveklabnik
bors [Fri, 15 May 2015 18:32:43 +0000 (18:32 +0000)]
Auto merge of #25429 - nham:patch-1, r=steveklabnik

Tries to make the introductory portion of the README flow better.

9 years agoBump version to 1.2
Brian Anderson [Fri, 15 May 2015 18:24:00 +0000 (11:24 -0700)]
Bump version to 1.2

9 years agoPermit token trees, identifiers, and blocks to be following by
Niko Matsakis [Fri, 15 May 2015 17:20:26 +0000 (13:20 -0400)]
Permit token trees, identifiers, and blocks to be following by
sequences.

Fixes #25436.

9 years agoAuto merge of #25219 - Eljay:fix-comment-parsing, r=alexcrichton
bors [Fri, 15 May 2015 16:53:53 +0000 (16:53 +0000)]
Auto merge of #25219 - Eljay:fix-comment-parsing, r=alexcrichton

Fixes #25182, parser didn't account for \r\n in regular comments, only doc-comments.

9 years agotrpl: change from "int" to "i32" in Traits
Alex Burka [Fri, 15 May 2015 16:14:39 +0000 (12:14 -0400)]
trpl: change from "int" to "i32" in Traits

The Traits chapter uses "adding methods to `int`" as an example of "something bad", but there is no such thing as `int` anymore, right? So I changed it to `i32`.

9 years agoAuto merge of #25059 - erickt:pprint, r=acrichto
bors [Fri, 15 May 2015 15:14:25 +0000 (15:14 +0000)]
Auto merge of #25059 - erickt:pprint, r=acrichto

The recent quote changes unfortunately broke unquoting statements like `let foo = 5` because the parser requires their to be a trailing semicolon in those statements. Along the way I added support for unquoting generics and where clauses as well as better pretty printing of `token::Interpolated`.

9 years agosyntax: Unquoting some statements requires trailing semicolons
Erick Tryzelaar [Fri, 15 May 2015 15:07:48 +0000 (08:07 -0700)]
syntax: Unquoting some statements requires trailing semicolons

9 years agosyntax: Add unquoting ast::{Generics,WhereClause}
Erick Tryzelaar [Sat, 2 May 2015 17:55:41 +0000 (10:55 -0700)]
syntax: Add unquoting ast::{Generics,WhereClause}

9 years agosyntax: Allow pretty printing more interpolated items
Erick Tryzelaar [Fri, 1 May 2015 18:27:36 +0000 (11:27 -0700)]
syntax: Allow pretty printing more interpolated items

9 years agoFix download links of Nightly Windows installers
Z1 [Fri, 15 May 2015 14:52:47 +0000 (10:52 -0400)]
Fix download links of Nightly Windows installers

The download links of Windows installers on the Nightly Rust page are using beta builds instead of nightly builds, which caused some confusions when I was setting up my env. Probably it's better to use the links of nightly builds here.

9 years agoAuto merge of #25402 - parir:master, r=Manishearth
bors [Fri, 15 May 2015 13:35:49 +0000 (13:35 +0000)]
Auto merge of #25402 - parir:master, r=Manishearth

r? @steveklabnik

9 years agoAllow for better optimizations of iterators for zero-sized types
Björn Steinbrink [Fri, 15 May 2015 13:20:42 +0000 (15:20 +0200)]
Allow for better optimizations of iterators for zero-sized types

Using regular pointer arithmetic to iterate collections of zero-sized types
doesn't work, because we'd get the same pointer all the time. Our
current solution is to convert the pointer to an integer, add an offset
and then convert back, but this inhibits certain optimizations.

What we should do instead is to convert the pointer to one that points
to an i8*, and then use a LLVM GEP instructions without the inbounds
flag to perform the pointer arithmetic. This allows to generate pointers
that point outside allocated objects without causing UB (as long as you
don't dereference them), and it wraps around using two's complement,
i.e. it behaves exactly like the wrapping_* operations we're currently
using, with the added benefit of LLVM being able to better optimize the
resulting IR.

9 years agoTRPL: Fix Inline Code Typography
Pascal Hertleif [Fri, 15 May 2015 12:41:21 +0000 (14:41 +0200)]
TRPL: Fix Inline Code Typography

9 years agoAuto merge of #25423 - dotdash:assume, r=huonw
bors [Fri, 15 May 2015 11:57:31 +0000 (11:57 +0000)]
Auto merge of #25423 - dotdash:assume, r=huonw

The assume intrinsic has a strong, negative impact on compile times, so
we're currently only using it in places where LLVM can simplify it to
nonnull metadata on a load intruction. Unfortunately a recent change
that fixed invalid assume calls introduce new assume calls for which
this simplification can not happen, leading to a massive regression in
compile times in certain cases.

Moving the assumptions from the middle of the function to the beginning
allows the simplification to happen again, bringing compile times back
to their old levels.

Fixes #25393

9 years agoTRPL: Remove Duplicate Reference
Pascal Hertleif [Fri, 15 May 2015 10:23:26 +0000 (12:23 +0200)]
TRPL: Remove Duplicate Reference

Pandoc shows a warning for this. I'm not sure if it's actually invalid Markdown.

9 years agoAuto merge of #25400 - nrc:save-api, r=huonw
bors [Fri, 15 May 2015 10:10:35 +0000 (10:10 +0000)]
Auto merge of #25400 - nrc:save-api, r=huonw

Also start factoring out an API for compiler tools to use and fix a bug that was preventing DXR indexing Rust properly.

r? @huonw

9 years ago5 != 4
parir [Fri, 15 May 2015 09:28:32 +0000 (11:28 +0200)]
5 != 4

Closes #25430

9 years agocomments
Nick Cameron [Fri, 15 May 2015 07:06:56 +0000 (19:06 +1200)]
comments

9 years agoAuto merge of #25422 - cactorium:unsafe_errors, r=huonw
bors [Fri, 15 May 2015 06:40:20 +0000 (06:40 +0000)]
Auto merge of #25422 - cactorium:unsafe_errors, r=huonw

For https://github.com/rust-lang/rust/issues/24407

9 years agoUpdate README
Nick Hamann [Fri, 15 May 2015 05:43:40 +0000 (00:43 -0500)]
Update README

Tries to make the introductory portion of the README flow better.

9 years agoAdd backticks around language keyword
Kelvin Ly [Fri, 15 May 2015 04:07:01 +0000 (00:07 -0400)]
Add backticks around language keyword

9 years agoAuto merge of #25419 - nrc:time, r=alexcrichton
bors [Fri, 15 May 2015 03:46:42 +0000 (03:46 +0000)]
Auto merge of #25419 - nrc:time, r=alexcrichton

r? @alexcrichton

9 years agoAuto merge of #25421 - steveklabnik:rollup, r=steveklabnik
bors [Fri, 15 May 2015 01:53:03 +0000 (01:53 +0000)]
Auto merge of #25421 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #25404, #25405, #25407, #25408, #25410, #25412, #25413, #25414, #25418, #25420
- Failed merges:

9 years agoFix major compile time regression
Björn Steinbrink [Fri, 15 May 2015 01:14:16 +0000 (03:14 +0200)]
Fix major compile time regression

The assume intrinsic has a strong, negative impact on compile times, so
we're currently only using it in places where LLVM can simplify it to
nonnull metadata on a load intruction. Unfortunately a recent change
that fixed invalid assume calls introduce new assume calls for which
this simplification can not happen, leading to a massive regression in
compile times in certain cases.

Moving the assumptions from the middle of the function to the beginning
allows the simplification to happen again, bringing compile times back
to their old levels.

Fixes #25393

9 years agoFix merge conflict and also add markdown formatting
Kelvin Ly [Fri, 15 May 2015 00:45:18 +0000 (20:45 -0400)]
Fix merge conflict and also add markdown formatting

9 years agoRollup merge of #25420 - habnabit:master, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:44 +0000 (20:30 -0400)]
Rollup merge of #25420 - habnabit:master, r=steveklabnik

It seems to refer to something that used to exist, but got moved, and then not everything got cleaned up.

9 years agoRollup merge of #25418 - leunggamciu:patch-trpl, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25418 - leunggamciu:patch-trpl, r=steveklabnik

9 years agoRollup merge of #25414 - apasel422:patch-1, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25414 - apasel422:patch-1, r=alexcrichton

9 years agoRollup merge of #25413 - killercup:patch-11, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25413 - killercup:patch-11, r=alexcrichton

r? @steveklabnik

9 years agoRollup merge of #25412 - koute:master, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25412 - koute:master, r=alexcrichton

Every time I profile my code I find something new to add #[inline] to. (:

9 years agoRollup merge of #25410 - durka:patch-2, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25410 - durka:patch-2, r=steveklabnik

9 years agoRollup merge of #25408 - Nashenas88:rust-book-stack-and-heap-typo, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25408 - Nashenas88:rust-book-stack-and-heap-typo, r=steveklabnik

I fixed the typo of the value of e in the memory tables. It is a reference to d, and so it should contain the memory location of d. I also fixed the incorrectly formatted tables so they display properly in html pages.

9 years agoRollup merge of #25407 - durka:patch-1, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25407 - durka:patch-1, r=alexcrichton

9 years agoRollup merge of #25405 - dreid:patch-3, r=nikomatsakis
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25405 - dreid:patch-3, r=nikomatsakis