]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoAdd Line Break to Robert Burns Quote
Pascal Hertleif [Sat, 10 Jan 2015 14:47:52 +0000 (15:47 +0100)]
Add Line Break to Robert Burns Quote

9 years agoauto merge of #20839 : alexcrichton/rust/missing-stability, r=aturon
bors [Sat, 10 Jan 2015 12:10:08 +0000 (12:10 +0000)]
auto merge of #20839 : alexcrichton/rust/missing-stability, r=aturon

Both `Extend::extend` and `DoubleEndedIterator::next_back` were intended to be
stable, but they mistakenly didn't have the `#[stable]` tag.

9 years agoauto merge of #20837 : huonw/rust/remove-unused-lifetime, r=nikomatsakis
bors [Sat, 10 Jan 2015 10:05:05 +0000 (10:05 +0000)]
auto merge of #20837 : huonw/rust/remove-unused-lifetime, r=nikomatsakis

9 years agoauto merge of #20794 : sfackler/rust/trailing-attrs, r=alexcrichton
bors [Sat, 10 Jan 2015 08:00:09 +0000 (08:00 +0000)]
auto merge of #20794 : sfackler/rust/trailing-attrs, r=alexcrichton

Closes #20711

9 years agoauto merge of #20802 : huonw/rust/book-css, r=steveklabnik
bors [Sat, 10 Jan 2015 05:55:07 +0000 (05:55 +0000)]
auto merge of #20802 : huonw/rust/book-css, r=steveklabnik

There is likely to be new users with the alpha release, and there are a lot of documents on the internet (StackOverflow, reddit, blogs) that refer to these guides, so emitting a more helpful error than "404" is nice. Hence, I've temporarily reinstated stub documents for each of the old guides, referring to as relevant a part of the book as possible.

Also, rustbook was silently ignoring some errors, which lead to an inconsistency with directory creation/file writing. This meant the CSS file was not being written if no `doc` directory existed in the users build dir (e.g. the buildbots). This should mean that the CSS will appear automatically in later builds.

9 years agoauto merge of #20782 : iKevinY/rust/trpl-formatting, r=steveklabnik
bors [Sat, 10 Jan 2015 03:45:11 +0000 (03:45 +0000)]
auto merge of #20782 : iKevinY/rust/trpl-formatting, r=steveklabnik

Here's my PR for the changes discussed in #19823. I decided to leave `_these_` types of italics the way there were because it differentiates the use of italics for emphasis from `*key term*` italics. Otherwise, bolded terms have been changed to italics, and single and double quotes have been changed appropriately, depending on their context (my judgement may not be the best, though).

r? @steveklabnik (congratulations on #19897 being finalized and merged, by the way!)

9 years agoauto merge of #20828 : alexcrichton/rust/issue-20823, r=brson
bors [Sat, 10 Jan 2015 00:55:12 +0000 (00:55 +0000)]
auto merge of #20828 : alexcrichton/rust/issue-20823, r=brson

This will temporarily prevent warnings generated from expanding to code that the
test harness itself uses. This solution will require tweaking around the beta
cycle, but it will prevent spurious warnings for now.

Closes #20823

9 years agocore: rm unused lifetime.
Huon Wilson [Fri, 9 Jan 2015 23:31:56 +0000 (10:31 +1100)]
core: rm unused lifetime.

9 years agostd: Mark two missing functions as #[stable]
Alex Crichton [Fri, 9 Jan 2015 23:49:09 +0000 (15:49 -0800)]
std: Mark two missing functions as #[stable]

Both `Extend::extend` and `DoubleEndedIterator::next_back` were intended to be
stable, but they mistakenly didn't have the `#[stable]` tag.

9 years agoauto merge of #20776 : kmcallister/rust/macro-cleanup, r=alexcrichton
bors [Fri, 9 Jan 2015 22:15:12 +0000 (22:15 +0000)]
auto merge of #20776 : kmcallister/rust/macro-cleanup, r=alexcrichton

r? @alexcrichton. This passes tests for me.

9 years agosyntax: Add #[allow(unstable)] to --test expansion
Alex Crichton [Fri, 9 Jan 2015 21:26:21 +0000 (13:26 -0800)]
syntax: Add #[allow(unstable)] to --test expansion

This will temporarily prevent warnings generated from expanding to code that the
test harness itself uses. This solution will require tweaking around the beta
cycle, but it will prevent spurious warnings for now.

Closes #20823

9 years agoauto merge of #20815 : brson/rust/installer, r=alexcrichton
bors [Fri, 9 Jan 2015 20:10:07 +0000 (20:10 +0000)]
auto merge of #20815 : brson/rust/installer, r=alexcrichton

9 years agoUpdate macro scope intro
Keegan McAllister [Thu, 8 Jan 2015 19:56:10 +0000 (11:56 -0800)]
Update macro scope intro

9 years agoRe-reduce libstd macro duplication
Keegan McAllister [Thu, 8 Jan 2015 20:21:51 +0000 (12:21 -0800)]
Re-reduce libstd macro duplication

The libstd definitions move to libcore, which causes some minor updates there.

9 years agoFix revert of rust-installer
Brian Anderson [Fri, 9 Jan 2015 18:19:30 +0000 (10:19 -0800)]
Fix revert of rust-installer

9 years agoMerge pull request #20800 from jroesch/add-regression-for-issue-20414
bors [Fri, 9 Jan 2015 17:35:11 +0000 (17:35 +0000)]
Merge pull request #20800 from jroesch/add-regression-for-issue-20414

Add test for issue #20414

Reviewed-by: alexcrichton
9 years agoMerge pull request #20799 from kud1ing/patch-1
bors [Fri, 9 Jan 2015 17:35:11 +0000 (17:35 +0000)]
Merge pull request #20799 from kud1ing/patch-1

Link to http://rustbyexample.com/

Reviewed-by: steveklabnik
9 years agoMerge pull request #20793 from ktossell/rustdoc-fixedvector-syntax
bors [Fri, 9 Jan 2015 17:35:10 +0000 (17:35 +0000)]
Merge pull request #20793 from ktossell/rustdoc-fixedvector-syntax

Make rustdoc use the `[_; N]` syntax instead of `[_, ..N]`

Reviewed-by: sfackler
9 years agoMerge pull request #20699 from vhbit/ios-archs
bors [Fri, 9 Jan 2015 17:35:09 +0000 (17:35 +0000)]
Merge pull request #20699 from vhbit/ios-archs

Better iOS support

Reviewed-by: alexcrichton
9 years agoiOS: preliminary 64-bit archs support
Valerii Hiora [Fri, 9 Jan 2015 16:25:01 +0000 (18:25 +0200)]
iOS: preliminary 64-bit archs support

9 years agoUpdated compiler-rt
Valerii Hiora [Fri, 9 Jan 2015 08:54:10 +0000 (10:54 +0200)]
Updated compiler-rt

9 years agoiOS: makefiles and runtime for new archs
Valerii Hiora [Wed, 7 Jan 2015 10:24:18 +0000 (12:24 +0200)]
iOS: makefiles and runtime for new archs

9 years agoiOS: cabi fixes
Valerii Hiora [Fri, 9 Jan 2015 16:18:23 +0000 (18:18 +0200)]
iOS: cabi fixes

Changed alignment according to official Apple docs

9 years agoiOS: fixed test build
Valerii Hiora [Mon, 5 Jan 2015 09:54:41 +0000 (11:54 +0200)]
iOS: fixed test build

Now it is possible to run tests on a jailbroken device

9 years agoiOS: updated targets
Valerii Hiora [Thu, 8 Jan 2015 08:19:52 +0000 (10:19 +0200)]
iOS: updated targets

- target_word_size -> target_pointer_width
- added armv7 and armv7s targets
- enabled building binaries so tests could be run on a jailbroken device

9 years agorustbook: use a relative @import path to ensure it works offline.
Huon Wilson [Fri, 9 Jan 2015 13:54:18 +0000 (00:54 +1100)]
rustbook: use a relative @import path to ensure it works offline.

The URL previously caused the book to require an internet connection to
get the full styling, this should mean no internet is required.

9 years agoauto merge of #20788 : Zoxc/rust/loader, r=huonw
bors [Fri, 9 Jan 2015 09:50:06 +0000 (09:50 +0000)]
auto merge of #20788 : Zoxc/rust/loader, r=huonw

Fixes #19907

9 years agoEnsure that the book is built after the doc/ directory.
Huon Wilson [Fri, 9 Jan 2015 09:26:31 +0000 (20:26 +1100)]
Ensure that the book is built after the doc/ directory.

Without this, rustbook was failing because it was expecting the
directory to exist. (Previously, rustbook was just silently failing to
install the CSS files due to this.)

9 years agoHandle errors properly in rustbook.
Huon Wilson [Fri, 9 Jan 2015 09:25:45 +0000 (20:25 +1100)]
Handle errors properly in rustbook.

Silently ignoring errors is :( so lets not silently ignore them. huon is
:) now.

9 years agoAdd stub deprecation files for each of the old guides.
Huon Wilson [Fri, 9 Jan 2015 08:47:09 +0000 (19:47 +1100)]
Add stub deprecation files for each of the old guides.

There are hundreds of stackoverflow answers, reddit posts and blog
articles that link to these documents, so it's a nicer user experience
if they're not plain 404s.

The intention is to let these hang around only for relatively short
while. The alpha is likely to bring in many new users and they will be
reading the documents mentioned above.

9 years agoAdd test for issue #20414
Jared Roesch [Fri, 9 Jan 2015 07:35:17 +0000 (23:35 -0800)]
Add test for issue #20414

9 years agoLink to http://rustbyexample.com/
kud1ing [Fri, 9 Jan 2015 07:25:42 +0000 (08:25 +0100)]
Link to http://rustbyexample.com/

9 years agoForbid trailing attributes in impl blocks
Steven Fackler [Fri, 9 Jan 2015 05:36:30 +0000 (21:36 -0800)]
Forbid trailing attributes in impl blocks

Closes #20711

9 years agoauto merge of #20786 : brson/rust/rustdocwarnings, r=huonw
bors [Fri, 9 Jan 2015 04:14:53 +0000 (04:14 +0000)]
auto merge of #20786 : brson/rust/rustdocwarnings, r=huonw

Because we are warning about unstable APIs and there are many
of these yet, this creates a high likelyhood doc tests will
fail.

This doesn't seem right as a blanket policy to me anyway, though
certainly we want it in std. Probably more appropriate to add
a rustdoc option.

9 years agoMake the metadata loader use the appropriate Target structure
John Kåre Alsaker [Fri, 9 Jan 2015 01:14:10 +0000 (02:14 +0100)]
Make the metadata loader use the appropriate Target structure

Fixes #19907

9 years agoMake rustdoc use the `[_; N]` syntax instead of `[_, ..N]`
Ken Tossell [Fri, 9 Jan 2015 03:35:08 +0000 (22:35 -0500)]
Make rustdoc use the `[_; N]` syntax instead of `[_, ..N]`

9 years agorustdoc: Stop adding #[deny(warnings)] to all tests
Brian Anderson [Fri, 9 Jan 2015 02:13:20 +0000 (18:13 -0800)]
rustdoc: Stop adding #[deny(warnings)] to all tests

Because we are warning about unstable APIs and there are many
of these yet, this creates a high likelyhood doc tests will
fail.

This doesn't seem right as a blanket policy to me anyway, though
certainly we want it in std. Probably more appropriate to add
a rustdoc option.

9 years agoMerge pull request #20779 from brson/prerel
bors [Fri, 9 Jan 2015 01:19:54 +0000 (01:19 +0000)]
Merge pull request #20779 from brson/prerel

mk: Update prerelase versioning to conform to semver

Reviewed-by: alexcrichton
9 years agoMerge pull request #20741 from mneumann/dragonfly-pthread-mutex
bors [Fri, 9 Jan 2015 01:19:54 +0000 (01:19 +0000)]
Merge pull request #20741 from mneumann/dragonfly-pthread-mutex

Fix assertion in Mutex::destroy() on DragonFly (#20698)

Reviewed-by: alexcrichton
9 years agoMerge pull request #20718 from tshepang/bench-fix-some-warnings
bors [Fri, 9 Jan 2015 01:19:53 +0000 (01:19 +0000)]
Merge pull request #20718 from tshepang/bench-fix-some-warnings

bench: fix a few compiler warnings

Reviewed-by: alexcrichton
9 years agoStandardize punctuation & formatting of TRPL
Kevin Yap [Fri, 9 Jan 2015 00:52:50 +0000 (16:52 -0800)]
Standardize punctuation & formatting of TRPL

This commit is an attempt to standardize the use of punctuation and
formatting in "The Rust Programming Language" as discussed in #19823.

- Convert bold text to italicized textcwhen referring to terminology.
- Convert single-quoted text to italicized or double-quoted text,
  depending on context.
- Use double quotes only in the case of scare quotes or quotations.

9 years agomk: Add rustbook to source dist
Brian Anderson [Fri, 9 Jan 2015 01:03:40 +0000 (17:03 -0800)]
mk: Add rustbook to source dist

9 years agomk: Update prerelase versioning to conform to semver
Brian Anderson [Thu, 8 Jan 2015 23:33:31 +0000 (15:33 -0800)]
mk: Update prerelase versioning to conform to semver

9 years agoMerge pull request #20766 from tsurai/patch-1
bors [Thu, 8 Jan 2015 20:59:48 +0000 (20:59 +0000)]
Merge pull request #20766 from tsurai/patch-1

doc: Fix unresolved import in Bitv example

Reviewed-by: alexcrichton
9 years agoMerge pull request #20735 from squidpickles/master
bors [Thu, 8 Jan 2015 20:59:48 +0000 (20:59 +0000)]
Merge pull request #20735 from squidpickles/master

Spelling fix compatibel -> compatible

Reviewed-by: Gankro
9 years agoauto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton
bors [Thu, 8 Jan 2015 18:40:04 +0000 (18:40 +0000)]
auto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton

9 years agoFix dead links in the guide and reorganize
Alex Crichton [Thu, 8 Jan 2015 18:27:03 +0000 (10:27 -0800)]
Fix dead links in the guide and reorganize

9 years agodoc: Fix unresolved import in Bitv example
Cristian Kubis [Thu, 8 Jan 2015 18:25:53 +0000 (19:25 +0100)]
doc: Fix unresolved import in Bitv example

9 years agoFix destroy assertions in mutex/rwlock/condvar
Michael Neumann [Thu, 8 Jan 2015 18:04:34 +0000 (19:04 +0100)]
Fix destroy assertions in mutex/rwlock/condvar

On DragonFly pthread_{mutex,rwlock,condvar}_destroy() returns EINVAL
when called on a pthread_{mutex,rwlock,condvar}_t that was just
initialized via PTHREAD_{MUTEX,RWLOCK,CONDVAR}_INITIALIZER and not used
in the meantime or initialized via pthread_{mutex,rwlock,condvar}_init().
Change the code to treat a return value of EINVAL on DragonFly as success.

9 years agorollup merge of #20757: nikomatsakis/issue-20624-assoc-types-coherence
Alex Crichton [Thu, 8 Jan 2015 17:32:06 +0000 (09:32 -0800)]
rollup merge of #20757: nikomatsakis/issue-20624-assoc-types-coherence

9 years agoRemove silly long line.
Niko Matsakis [Thu, 8 Jan 2015 17:30:13 +0000 (12:30 -0500)]
Remove silly long line.

9 years agorollup merge of #20754: nikomatsakis/int-feature
Alex Crichton [Thu, 8 Jan 2015 17:24:08 +0000 (09:24 -0800)]
rollup merge of #20754: nikomatsakis/int-feature

Conflicts:
src/test/compile-fail/borrowck-move-out-of-overloaded-auto-deref.rs
src/test/compile-fail/issue-2590.rs
src/test/compile-fail/lint-stability.rs
src/test/compile-fail/slice-mut-2.rs
src/test/compile-fail/std-uncopyable-atomics.rs

9 years agorollup merge of #20751: nikomatsakis/issue-20232
Alex Crichton [Thu, 8 Jan 2015 17:22:10 +0000 (09:22 -0800)]
rollup merge of #20751: nikomatsakis/issue-20232

Issue #20232. Fun.

r? @eddyb you prob know this system best

9 years agorollup merge of #20746: dotdash/fix_indent
Alex Crichton [Thu, 8 Jan 2015 17:22:08 +0000 (09:22 -0800)]
rollup merge of #20746: dotdash/fix_indent

Most of the file lost one level of indentation in a recent rollup. Most
likely an accident during merge conflict resolution.

9 years agorollup merge of #20740: FlaPer87/remove-opt-out-copy
Alex Crichton [Thu, 8 Jan 2015 17:22:06 +0000 (09:22 -0800)]
rollup merge of #20740: FlaPer87/remove-opt-out-copy

[breaking-change] code using this feature will break.

9 years agorollup merge of #20738: brson/feature-staging2
Alex Crichton [Thu, 8 Jan 2015 17:22:03 +0000 (09:22 -0800)]
rollup merge of #20738: brson/feature-staging2

This gets rid of the 'experimental' level, removes the non-staged_api
case (i.e. stability levels for out-of-tree crates), and lets the
staged_api attributes use 'unstable' and 'deprecated' lints.

This makes the transition period to the full feature staging design
a bit nicer.

9 years agorollup merge of #20736: akiss77/pr-u8-c_char
Alex Crichton [Thu, 8 Jan 2015 17:21:59 +0000 (09:21 -0800)]
rollup merge of #20736: akiss77/pr-u8-c_char

9 years agorollup merge of #19897: steveklabnik/trpl
Alex Crichton [Thu, 8 Jan 2015 17:21:57 +0000 (09:21 -0800)]
rollup merge of #19897: steveklabnik/trpl

An updated version of https://github.com/rust-lang/rust/pull/19461

This version vendors aturon/rust-book@731f7bf and builds it when building the docs. This is almost great, except my `make`-foo is poor, so I have my own personal paths in `mk/docs.mk`. How should I best get around that?

/cc @brson

9 years agoAdd another test using projection types in impls.
Niko Matsakis [Thu, 8 Jan 2015 17:02:34 +0000 (12:02 -0500)]
Add another test using projection types in impls.

9 years agoNormalize types bottom up. Fixes #20666.
Niko Matsakis [Thu, 8 Jan 2015 17:02:15 +0000 (12:02 -0500)]
Normalize types bottom up. Fixes #20666.

9 years ago"The Rust Programming Language"
Steve Klabnik [Tue, 2 Dec 2014 14:20:48 +0000 (09:20 -0500)]
"The Rust Programming Language"

This pulls all of our long-form documentation into a single document,
nicknamed "the book" and formally titled "The Rust Programming
Language."

A few things motivated this change:

* People knew of The Guide, but not the individual Guides. This merges
  them together, helping discoverability.
* You can get all of Rust's longform documentation in one place, which
  is nice.
* We now have rustbook in-tree, which can generate this kind of
  documentation. While its style is basic, the general idea is much
  better: a table of contents on the left-hand side.
* Rather than a almost 10,000-line guide.md, there are now smaller files
  per section.

9 years agoAdjust tests to be clearer about the type that results from a shift expression.
Niko Matsakis [Thu, 8 Jan 2015 16:26:42 +0000 (11:26 -0500)]
Adjust tests to be clearer about the type that results from a shift expression.

9 years agoRename test to fit naming convention.
Niko Matsakis [Thu, 8 Jan 2015 15:49:05 +0000 (10:49 -0500)]
Rename test to fit naming convention.

9 years agoNormalize types in supertraits when checking that impls are valid during wf.
Niko Matsakis [Thu, 8 Jan 2015 15:45:56 +0000 (10:45 -0500)]
Normalize types in supertraits when checking that impls are valid during wf.
Fixes #20559.

9 years agoNormalize types in impls, add test for coherence failure.
Niko Matsakis [Thu, 8 Jan 2015 11:58:41 +0000 (06:58 -0500)]
Normalize types in impls, add test for coherence failure.

Fixes #20624.

9 years agoauto merge of #20032 : Manishearth/rust/plugin-loader, r=cmr
bors [Thu, 8 Jan 2015 16:15:03 +0000 (16:15 +0000)]
auto merge of #20032 : Manishearth/rust/plugin-loader, r=cmr

`rustc something.rs -L folder_with_plugin_dylib/ -Z extra-plugins=foo` works via this

My way of testing this is by cloning https://github.com/Manishearth/rust-clippy, `cargo build`ing it, and then running `rustc examples/box_vec.rs -L target/ -Z extra-plugins=rust_clippy` after editing out the `exern crate rust_clippy` from `box_vec.rs`

r? @huonw

fixes #15446

9 years agoWrap long line
Niko Matsakis [Thu, 8 Jan 2015 15:59:40 +0000 (10:59 -0500)]
Wrap long line

9 years agoModify lifetime-infereence-give-expl-lifetime-param-3 to use a shorter
Niko Matsakis [Thu, 8 Jan 2015 15:56:56 +0000 (10:56 -0500)]
Modify lifetime-infereence-give-expl-lifetime-param-3 to use a shorter
type name so that messages do not wrap.

9 years agoAllow shift operator to take any integral type (and add a test).
Niko Matsakis [Thu, 8 Jan 2015 15:28:59 +0000 (10:28 -0500)]
Allow shift operator to take any integral type (and add a test).

9 years agoUpdate graphviz tests to accommodate new isize/usize types and is/us suffixes.
Felix S. Klock II [Thu, 8 Jan 2015 14:19:12 +0000 (15:19 +0100)]
Update graphviz tests to accommodate new isize/usize types and is/us suffixes.

9 years agoUpdate the compile-fail-fulldeps tests with new isize/usize literal suffixes.
Felix S. Klock II [Thu, 8 Jan 2015 14:09:03 +0000 (15:09 +0100)]
Update the compile-fail-fulldeps tests with new isize/usize literal suffixes.

9 years agoAccommodate the "int literal is too large" error message currently embedded in rustc.
Felix S. Klock II [Thu, 8 Jan 2015 14:05:17 +0000 (15:05 +0100)]
Accommodate the "int literal is too large" error message currently embedded in rustc.

9 years agoTest fixes.
Huon Wilson [Thu, 8 Jan 2015 12:36:24 +0000 (23:36 +1100)]
Test fixes.

9 years agoUpdate compile-fail tests to use is/us, not i/u.
Huon Wilson [Thu, 8 Jan 2015 11:05:56 +0000 (22:05 +1100)]
Update compile-fail tests to use is/us, not i/u.

9 years agoUpdate compile fail tests to use usize.
Huon Wilson [Thu, 8 Jan 2015 11:02:42 +0000 (22:02 +1100)]
Update compile fail tests to use usize.

9 years agoUpdate compile fail tests to use isize.
Huon Wilson [Thu, 8 Jan 2015 10:54:35 +0000 (21:54 +1100)]
Update compile fail tests to use isize.

9 years agoRemove warning from the libraries.
Huon Wilson [Thu, 8 Jan 2015 10:45:49 +0000 (21:45 +1100)]
Remove warning from the libraries.

This adds the int_uint feature to *every* library, whether or not it
needs it.

9 years agoAdd a warning feature gate for int/uint in types and i/u suffixes.
Huon Wilson [Thu, 8 Jan 2015 10:16:35 +0000 (21:16 +1100)]
Add a warning feature gate for int/uint in types and i/u suffixes.

9 years agoStore deprecated status of i/u-suffixed literals.
Huon Wilson [Thu, 8 Jan 2015 09:13:14 +0000 (20:13 +1100)]
Store deprecated status of i/u-suffixed literals.

9 years agoIgnore extra error from test for now
Manish Goregaokar [Thu, 8 Jan 2015 12:52:43 +0000 (18:22 +0530)]
Ignore extra error from test for now

9 years agoAdd new test for #20232.
Niko Matsakis [Thu, 8 Jan 2015 14:18:55 +0000 (09:18 -0500)]
Add new test for #20232.

9 years agoUpdate regionck to discharge the binder safely (using
Niko Matsakis [Thu, 8 Jan 2015 14:13:40 +0000 (09:13 -0500)]
Update regionck to discharge the binder safely (using
`assert_no_late_bound_regions`) and to give more helpful debug output.

9 years agoFix the actual bug for #20232: when creating the cmt for the implicit
Niko Matsakis [Thu, 8 Jan 2015 14:13:08 +0000 (09:13 -0500)]
Fix the actual bug for #20232: when creating the cmt for the implicit
deref that is associated with an overloaded index, we should not
consult the method lookup table. This deref is *always* a deref of an
`&T` and hence is never overloaded (and is also not present in the
tables; it has no "id" or other associated key).

9 years agoUpdate the "English-language" to-string function of a `cmt` to use
Niko Matsakis [Thu, 8 Jan 2015 14:12:06 +0000 (09:12 -0500)]
Update the "English-language" to-string function of a `cmt` to use
more modern terminology and update tests accordingly.

9 years agoAdd comments to autoderef() helper and refactor it to take
Niko Matsakis [Wed, 7 Jan 2015 15:53:09 +0000 (10:53 -0500)]
Add comments to autoderef() helper and refactor it to take
an `Option<&Expr>` like everything else.

9 years agoauto merge of #20744 : huonw/rust/fix-string-slicing, r=pnkfelix
bors [Thu, 8 Jan 2015 12:39:56 +0000 (12:39 +0000)]
auto merge of #20744 : huonw/rust/fix-string-slicing, r=pnkfelix

9 years agoRemove the deprecated opt_out_copy feature
Flavio Percoco [Thu, 8 Jan 2015 11:01:48 +0000 (12:01 +0100)]
Remove the deprecated opt_out_copy feature

9 years agoRestore indentation in common.rs
Björn Steinbrink [Thu, 8 Jan 2015 12:14:07 +0000 (13:14 +0100)]
Restore indentation in common.rs

Most of the file lost one level of indentation in a recent rollup. Most
likely an accident during merge conflict resolution.

9 years agoLet ToString work with unsized types, importantly, `str`.
Huon Wilson [Thu, 8 Jan 2015 11:48:32 +0000 (22:48 +1100)]
Let ToString work with unsized types, importantly, `str`.

9 years agoImprovements to feature staging
Brian Anderson [Wed, 7 Jan 2015 23:48:16 +0000 (15:48 -0800)]
Improvements to feature staging

This gets rid of the 'experimental' level, removes the non-staged_api
case (i.e. stability levels for out-of-tree crates), and lets the
staged_api attributes use 'unstable' and 'deprecated' lints.

This makes the transition period to the full feature staging design
a bit nicer.

9 years agoAdd test for -Z extra-plugins
Manish Goregaokar [Sat, 20 Dec 2014 02:39:43 +0000 (08:09 +0530)]
Add test for -Z extra-plugins

9 years agoauto merge of #20737 : aturon/rust/stab-stragglers, r=alexcrichton
bors [Thu, 8 Jan 2015 09:04:49 +0000 (09:04 +0000)]
auto merge of #20737 : aturon/rust/stab-stragglers, r=alexcrichton

Marks `vec`, `char` and `fmt` as stable module names.

9 years agoAdd missing module stability attributes
Aaron Turon [Thu, 8 Jan 2015 08:26:21 +0000 (00:26 -0800)]
Add missing module stability attributes

9 years agolibsyntax: add COMMAND_LINE_SP and use it for spans generated from the command line
Manish Goregaokar [Wed, 10 Dec 2014 20:18:23 +0000 (01:48 +0530)]
libsyntax: add COMMAND_LINE_SP and use it for spans generated from the command line

9 years agolibrustc_driver: Add support for loading plugins via command line (fixes #15446)
Manish Goregaokar [Tue, 9 Dec 2014 17:25:37 +0000 (22:55 +0530)]
librustc_driver: Add support for loading plugins via command line (fixes #15446)

9 years agolibrustc::plugin : make PluginLoader usable for loading argument-specified plugins
Manish Goregaokar [Tue, 9 Dec 2014 16:44:08 +0000 (22:14 +0530)]
librustc::plugin : make PluginLoader usable for loading argument-specified plugins

9 years agolibrustc::metadata : Allow passing a string to read_plugin_metadata
Manish Goregaokar [Tue, 9 Dec 2014 16:03:05 +0000 (21:33 +0530)]
librustc::metadata : Allow passing a string to read_plugin_metadata

9 years agolibrustc::session : Make DebuggingOpts use the options! macro
Manish Goregaokar [Tue, 9 Dec 2014 09:55:49 +0000 (15:25 +0530)]
librustc::session : Make DebuggingOpts use the options! macro

9 years agolibrustc::session : Make cgoptions macro more generic
Manish Goregaokar [Tue, 9 Dec 2014 09:44:01 +0000 (15:14 +0530)]
librustc::session : Make cgoptions macro more generic

9 years agoFix: `libc::c_char` is not always `i8`
Akos Kiss [Thu, 8 Jan 2015 07:03:00 +0000 (08:03 +0100)]
Fix: `libc::c_char` is not always `i8`