]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agolibsyntax: Do not derive Hash for Ident
Vadim Petrochenkov [Sat, 3 Oct 2015 09:44:47 +0000 (12:44 +0300)]
libsyntax: Do not derive Hash for Ident

8 years agoAuto merge of #28818 - Stebalien:fix-iter-chain-order, r=alexcrichton
bors [Sat, 3 Oct 2015 06:03:50 +0000 (06:03 +0000)]
Auto merge of #28818 - Stebalien:fix-iter-chain-order, r=alexcrichton

part of #28810

8 years agoAuto merge of #28813 - arielb1:well-formed-variables, r=nikomatsakis
bors [Sat, 3 Oct 2015 04:16:52 +0000 (04:16 +0000)]
Auto merge of #28813 - arielb1:well-formed-variables, r=nikomatsakis

it doesn't seem to be necessary and is potentially harmful.

r? @nikomatsakis

8 years agoAuto merge of #28820 - steveklabnik:rollup, r=steveklabnik
bors [Sat, 3 Oct 2015 02:23:03 +0000 (02:23 +0000)]
Auto merge of #28820 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #28736, #28805, #28812, #28814, #28819
- Failed merges:

8 years agoRollup merge of #28819 - steveklabnik:doc_hr, r=brson
Steve Klabnik [Sat, 3 Oct 2015 00:38:23 +0000 (20:38 -0400)]
Rollup merge of #28819 - steveklabnik:doc_hr, r=brson

It's not really clear here, since the example is rendered, where it
starts and ends. So let's use <hr>s to split it up.

8 years agoRollup merge of #28814 - matklad:fix-md, r=alexcrichton
Steve Klabnik [Sat, 3 Oct 2015 00:38:23 +0000 (20:38 -0400)]
Rollup merge of #28814 - matklad:fix-md, r=alexcrichton

The list was grabled.

r? @steveklabnik

8 years agoRollup merge of #28812 - steveklabnik:improve_str_from_utf8_docs, r=brson
Steve Klabnik [Sat, 3 Oct 2015 00:38:23 +0000 (20:38 -0400)]
Rollup merge of #28812 - steveklabnik:improve_str_from_utf8_docs, r=brson

Our docs were very basic for the various versions of from_utf8, so
this commit beefs them up.

It also improves docs for the &str variant's error, Utf8Error.

8 years agoRollup merge of #28805 - wthrowe:compile-stdin, r=alexcrichton
Steve Klabnik [Sat, 3 Oct 2015 00:38:22 +0000 (20:38 -0400)]
Rollup merge of #28805 - wthrowe:compile-stdin, r=alexcrichton

8 years agoRollup merge of #28736 - nagisa:rustdocjsfix, r=alexcrichton
Steve Klabnik [Sat, 3 Oct 2015 00:38:22 +0000 (20:38 -0400)]
Rollup merge of #28736 - nagisa:rustdocjsfix, r=alexcrichton

8 years agoAuto merge of #28672 - sanxiyn:const-eval-span, r=alexcrichton
bors [Sat, 3 Oct 2015 00:36:50 +0000 (00:36 +0000)]
Auto merge of #28672 - sanxiyn:const-eval-span, r=alexcrichton

Fix #28402.

8 years agoImprove documentation for the from_utf8 family
Steve Klabnik [Fri, 2 Oct 2015 18:36:02 +0000 (14:36 -0400)]
Improve documentation for the from_utf8 family

Our docs were very basic for the various versions of from_utf8, so
this commit beefs them up.

It also improves docs for the &str variant's error, Utf8Error.

8 years agoAdd in some <hr>s for emphasis
Steve Klabnik [Fri, 2 Oct 2015 22:54:07 +0000 (18:54 -0400)]
Add in some <hr>s for emphasis

It's not really clear here, since the example is rendered, where it
starts and ends. So let's use <hr>s to split it up.

8 years agoAuto merge of #28662 - semmaz:fmt-debug, r=alexcrichton
bors [Fri, 2 Oct 2015 22:49:37 +0000 (22:49 +0000)]
Auto merge of #28662 - semmaz:fmt-debug, r=alexcrichton

fixes #26920

8 years agolibcore: Chain must exhaust a before b.
Steven Allen [Fri, 2 Oct 2015 22:41:06 +0000 (18:41 -0400)]
libcore: Chain must exhaust a before b.

part of #28810

8 years agoAuto merge of #28626 - arielb1:closure-needs-infer, r=nikomatsakis
bors [Fri, 2 Oct 2015 21:02:49 +0000 (21:02 +0000)]
Auto merge of #28626 - arielb1:closure-needs-infer, r=nikomatsakis

Fixes #28550

8 years agoreference: fix markdown formatting
Aleksey Kladov [Fri, 2 Oct 2015 20:53:20 +0000 (23:53 +0300)]
reference: fix markdown formatting

8 years agoremove the "don't add `_ WF` obligation" hack
Ariel Ben-Yehuda [Fri, 2 Oct 2015 20:36:07 +0000 (23:36 +0300)]
remove the "don't add `_ WF` obligation" hack

it doesn't seem to be necessary and is potentially harmful.

8 years agoAuto merge of #28650 - sanxiyn:attr-usage, r=nrc
bors [Fri, 2 Oct 2015 19:16:39 +0000 (19:16 +0000)]
Auto merge of #28650 - sanxiyn:attr-usage, r=nrc

This is technically a [breaking-change].

Fix #2809.
Fix #22746.

8 years agoAuto merge of #28768 - alexcrichton:dep-info++, r=brson
bors [Fri, 2 Oct 2015 16:33:26 +0000 (16:33 +0000)]
Auto merge of #28768 - alexcrichton:dep-info++, r=brson

This PR closes out #28716 and #28735 by making two changes to the compiler:

1. The `--emit` flag to the compiler now supports the ability to specify the output file name of a partuclar emit type. For example `--emit dep-info=bar.d,asm=foo.s,link` is now accepted.
2. The dep-info emission now emits a dummy target for all input file names to protect against deleted files.

8 years agorustc: Emit phony targets for inputs in dep-info
Alex Crichton [Wed, 30 Sep 2015 17:17:07 +0000 (10:17 -0700)]
rustc: Emit phony targets for inputs in dep-info

This helps protect against files being deleted to ensure that `make` won't emit
errors.

Closes #28735

8 years agoProvide the context for error in constant evaluation of enum discriminant
Seo Sanghyeon [Sat, 26 Sep 2015 02:52:34 +0000 (11:52 +0900)]
Provide the context for error in constant evaluation of enum discriminant

8 years agoAdd a method to test span containment
Seo Sanghyeon [Sat, 26 Sep 2015 01:44:37 +0000 (10:44 +0900)]
Add a method to test span containment

8 years agoCheck attribute usage
Seo Sanghyeon [Fri, 25 Sep 2015 06:25:59 +0000 (15:25 +0900)]
Check attribute usage

8 years agoChange tests per RFC 246 (const vs static)
Seo Sanghyeon [Fri, 25 Sep 2015 09:44:36 +0000 (18:44 +0900)]
Change tests per RFC 246 (const vs static)

8 years agoFix librustdoc search events
Simonas Kazlauskas [Tue, 29 Sep 2015 20:47:01 +0000 (23:47 +0300)]
Fix librustdoc search events

Previously only keyup event was looked at, which meant that pasting, cutting and
otherwise changing the input without typing would not catch any updates to the
search query.

8 years agoFix misnamed variable in rustdoc
Simonas Kazlauskas [Tue, 29 Sep 2015 20:37:36 +0000 (23:37 +0300)]
Fix misnamed variable in rustdoc

8 years agoAuto merge of #28808 - AndiDog:patch-1, r=steveklabnik
bors [Fri, 2 Oct 2015 13:24:57 +0000 (13:24 +0000)]
Auto merge of #28808 - AndiDog:patch-1, r=steveklabnik

8 years agoFix typo, add link to Google-search in documentation
Andreas Sommer [Fri, 2 Oct 2015 12:36:27 +0000 (14:36 +0200)]
Fix typo, add link to Google-search in documentation

8 years agoAuto merge of #28795 - marti1125:28696, r=alexcrichton
bors [Fri, 2 Oct 2015 11:04:13 +0000 (11:04 +0000)]
Auto merge of #28795 - marti1125:28696, r=alexcrichton

-Add a validation when input search is empty on top of 'startSearch()'

8 years agoAuto merge of #28807 - Manishearth:rollup, r=Manishearth
bors [Fri, 2 Oct 2015 09:11:34 +0000 (09:11 +0000)]
Auto merge of #28807 - Manishearth:rollup, r=Manishearth

- Successful merges: #28554, #28686, #28786, #28788, #28791, #28797
- Failed merges:

8 years agoRollup merge of #28797 - steveklabnik:rebase_for_gankro, r=alexcrichton
Manish Goregaokar [Fri, 2 Oct 2015 07:37:23 +0000 (13:07 +0530)]
Rollup merge of #28797 - steveklabnik:rebase_for_gankro, r=alexcrichton

This is a rebase of https://github.com/rust-lang/rust/pull/27902/, since @Gankro  is busy :heart:

8 years agoRollup merge of #28791 - apasel422:issue-25439, r=alexcrichton
Manish Goregaokar [Fri, 2 Oct 2015 07:37:23 +0000 (13:07 +0530)]
Rollup merge of #28791 - apasel422:issue-25439, r=alexcrichton

Closes #25439.

8 years agoRollup merge of #28788 - tsurai:master, r=bluss
Manish Goregaokar [Fri, 2 Oct 2015 07:37:22 +0000 (13:07 +0530)]
Rollup merge of #28788 - tsurai:master, r=bluss

Please correct me if I confused something but the documentation for ```into_ptr``` and ```into_raw``` of ```CString``` seem to be swapped as the docs for ```into_ptr``` mentions ```into_raw``` and vice versa.

Update: I actually meant ```into_ptr``` and ```into_raw``` NOT ```from_*```

8 years agoRollup merge of #28786 - fhahn:ba-link, r=alexcrichton
Manish Goregaokar [Fri, 2 Oct 2015 07:37:22 +0000 (13:07 +0530)]
Rollup merge of #28786 - fhahn:ba-link, r=alexcrichton

This tiny PR just adds a link to  Florian Wilkens's Bachelor's Thesis.

8 years agoRollup merge of #28686 - eefriedman:unresolved-path-error, r=nikomatsakis
Manish Goregaokar [Fri, 2 Oct 2015 07:37:22 +0000 (13:07 +0530)]
Rollup merge of #28686 - eefriedman:unresolved-path-error, r=nikomatsakis

The behavior here isn't really ideal, but we can't really do much better
given the current state of constant evaluation.

The changes to ExprUseVisitor are to avoid a compile error; apparently
that bit of code is extremely sensitive to changes in other areas of the
compiler.

Fixes #28670, and probably a bunch of duplicates.

8 years agoRollup merge of #28554 - christopherdumas:E0422, r=arielb1
Manish Goregaokar [Fri, 2 Oct 2015 07:37:22 +0000 (13:07 +0530)]
Rollup merge of #28554 - christopherdumas:E0422, r=arielb1

8 years agoAuto merge of #28793 - Ms2ger:AttrStyle, r=alexcrichton
bors [Fri, 2 Oct 2015 07:10:43 +0000 (07:10 +0000)]
Auto merge of #28793 - Ms2ger:AttrStyle, r=alexcrichton

8 years agoAuto merge of #28792 - dotdash:cmp_indirection, r=alexcrichton
bors [Fri, 2 Oct 2015 05:19:50 +0000 (05:19 +0000)]
Auto merge of #28792 - dotdash:cmp_indirection, r=alexcrichton

Using the comparison operators already refs the operands, so doing it
ourselves as well just adds an unnecessary level of indirection.

8 years agoAuto merge of #28790 - arielb1:unsafe-coerce, r=eddyb
bors [Fri, 2 Oct 2015 03:28:57 +0000 (03:28 +0000)]
Auto merge of #28790 - arielb1:unsafe-coerce, r=eddyb

Fixes #28776

r? @eddyb

8 years agoAdd a test that rustc can compile standard input
William Throwe [Fri, 2 Oct 2015 03:25:48 +0000 (23:25 -0400)]
Add a test that rustc can compile standard input

8 years agoAuto merge of #28789 - rkruppe:rm-unused-probes, r=alexcrichton
bors [Fri, 2 Oct 2015 01:40:29 +0000 (01:40 +0000)]
Auto merge of #28789 - rkruppe:rm-unused-probes, r=alexcrichton

The code using them was removed in #27789.

8 years agoAuto merge of #28787 - dotdash:no_more___fat_ptr, r=eddyb
bors [Thu, 1 Oct 2015 20:06:35 +0000 (20:06 +0000)]
Auto merge of #28787 - dotdash:no_more___fat_ptr, r=eddyb

A DST value and a fat pointer to it have the same representation, all we
have to do is to adjust the type of the datum holding the pointer.

8 years agofixup wording
Alexis Beingessner [Wed, 19 Aug 2015 19:36:14 +0000 (12:36 -0700)]
fixup wording

8 years agoflesh out what Vec actually guarantees
Alexis Beingessner [Wed, 19 Aug 2015 17:13:39 +0000 (10:13 -0700)]
flesh out what Vec actually guarantees

8 years agofixes #28696 Return to the default content when .search-input is empty -Add a validat...
Willy Aguirre [Thu, 1 Oct 2015 18:30:35 +0000 (13:30 -0500)]
fixes #28696 Return to the default content when .search-input is empty -Add a validation when input search is empty on top of 'startSearch()'

8 years agoAuto merge of #28746 - aidanhs:aphs-musl-linking-no-cxxabi, r=alexcrichton
bors [Thu, 1 Oct 2015 18:16:08 +0000 (18:16 +0000)]
Auto merge of #28746 - aidanhs:aphs-musl-linking-no-cxxabi, r=alexcrichton

On reading https://github.com/alexcrichton/port-of-rust/blob/master/musl/Dockerfile I was surprised to see no libcxxabi. I experimented, and it does seem to be unnecessary.

I guess it's a remnant from the 3.6 build.

r? @alexcrichton

8 years agoImplement `size_hint` for `EscapeUnicode`
Simon Mazur [Wed, 30 Sep 2015 17:31:41 +0000 (20:31 +0300)]
Implement `size_hint` for `EscapeUnicode`

8 years agoAuto merge of #28742 - nikomatsakis:def-id-encapsulate, r=eddyb
bors [Thu, 1 Oct 2015 16:26:28 +0000 (16:26 +0000)]
Auto merge of #28742 - nikomatsakis:def-id-encapsulate, r=eddyb

As described in https://github.com/rust-lang/rfcs/pull/1298, the idea here is to make DefIds independent of changes to the content of other items. They are also *mostly* independent from ordering, so e.g. reordering two functions will change the defids, but it will not change the paths that they expand into (but this is not the case for some things, such as impls).

This is a major refactoring, so I did it in slices. The final commit is in some sense The Big One where most of the work is done. The earlier commits just pave the way by gradually refactoring accesses to the `node` field.

This is a [breaking-change] for plugin authors. The things you need to do to migrate your code are as follows:

1. For local def-ids, rather than do `def_id.node`, call `tcx.map.as_local_node_id(def_id)`.
2. To construct a local def-id, call `tcx.map.local_def_id(node_id)`.
3. Note that you cannot make def-ids for any node, but only for "definitions" -- which include all items, as well as a number of other things, but not e.g. arbitrary expressions.
4. You can get the path to a def-id by calling `tcx.def_path(def_id)`.

One thing that is NOT part of this PR, but which I plan do in a follow-up, is converting uses of the existing `with_path` API to use `def_path`, which is basically the same.

r? @eddyb (or @nrc)

8 years agoRemove one level of indirection for slice-based PartialEq impls
Björn Steinbrink [Thu, 1 Oct 2015 16:17:49 +0000 (18:17 +0200)]
Remove one level of indirection for slice-based PartialEq impls

Using the comparison operators already refs the operands, so doing it
ourselves as well just adds an unnecessary level of indirection.

8 years agoStop re-exporting AttrStyle's variants and rename them.
Ms2ger [Thu, 1 Oct 2015 16:03:34 +0000 (18:03 +0200)]
Stop re-exporting AttrStyle's variants and rename them.

8 years agoAdd test for #25439
Andrew Paseltiner [Thu, 1 Oct 2015 15:25:45 +0000 (11:25 -0400)]
Add test for #25439

Closes #25439.

8 years agoremove support method for synthetic default method ids
Niko Matsakis [Thu, 1 Oct 2015 15:10:30 +0000 (11:10 -0400)]
remove support method for synthetic default method ids

8 years agoremove code for re-exports of static methods
Niko Matsakis [Wed, 30 Sep 2015 20:53:14 +0000 (16:53 -0400)]
remove code for re-exports of static methods

8 years agoconvert the creepy case to just return None -- in practice, it would
Niko Matsakis [Wed, 30 Sep 2015 12:33:22 +0000 (08:33 -0400)]
convert the creepy case to just return None -- in practice, it would
have always been returning None anyway, since it was comparing node-ids
across crates incorrectly -- and remove the now unused map
`extern_const_variants`

8 years agoConvert DefId to use DefIndex, which is an index into a list of
Niko Matsakis [Thu, 17 Sep 2015 18:29:59 +0000 (14:29 -0400)]
Convert DefId to use DefIndex, which is an index into a list of
paths, and construct paths for all definitions. Also, stop rewriting
DefIds for closures, and instead just load the closure data from
the original def-id, which may be in another crate.

8 years agorename ast_map to hir_map
Niko Matsakis [Fri, 11 Sep 2015 15:29:17 +0000 (11:29 -0400)]
rename ast_map to hir_map

8 years agostop updating `parent_node_id` when there is no corresponding map entry
Niko Matsakis [Tue, 29 Sep 2015 10:47:33 +0000 (06:47 -0400)]
stop updating `parent_node_id` when there is no corresponding map entry

8 years agobuild up a set of node-ids that we can construct def-ids from
Niko Matsakis [Thu, 10 Sep 2015 19:53:08 +0000 (15:53 -0400)]
build up a set of node-ids that we can construct def-ids from

8 years agoIntroduce semi-duplicate DefIds into DefLocal/DefUpvar to remove use
Niko Matsakis [Wed, 9 Sep 2015 18:23:43 +0000 (14:23 -0400)]
Introduce semi-duplicate DefIds into DefLocal/DefUpvar to remove use
of xxx_local.

8 years agoMake calling def_id on a DefSelfTy an error; the previous defids that
Niko Matsakis [Tue, 8 Sep 2015 14:08:30 +0000 (10:08 -0400)]
Make calling def_id on a DefSelfTy an error; the previous defids that
were returned, either the trait or the *self type itself*, were not
particularly representative of what the Def is (a type parameter).
Rewrite paths to handle this case specially, just as they handle the
primitive case specifically. This entire `def_id` codepath is kind of a
mess.

8 years agoMove DefLabel out from the def_id() results
Niko Matsakis [Mon, 7 Sep 2015 18:27:13 +0000 (14:27 -0400)]
Move DefLabel out from the def_id() results

8 years agoRemove DefRegion, which is not used
Niko Matsakis [Mon, 7 Sep 2015 18:13:35 +0000 (14:13 -0400)]
Remove DefRegion, which is not used

8 years agoRename `node_id` to `var_id` and limit to the cases that are actually used
Niko Matsakis [Mon, 7 Sep 2015 18:10:25 +0000 (14:10 -0400)]
Rename `node_id` to `var_id` and limit to the cases that are actually used

8 years agomove direct accesses of `node` to go through `as_local_node_id`, unless
Niko Matsakis [Fri, 4 Sep 2015 17:52:28 +0000 (13:52 -0400)]
move direct accesses of `node` to go through `as_local_node_id`, unless
they are being used as an opaque "position identifier"

8 years agochange creepy case to call span_bug instead of doing something clearly wrong
Niko Matsakis [Fri, 4 Sep 2015 00:36:53 +0000 (20:36 -0400)]
change creepy case to call span_bug instead of doing something clearly wrong

8 years agomove job of creating local-def-ids to ast-map (with a few stragglers)
Niko Matsakis [Wed, 2 Sep 2015 20:11:32 +0000 (16:11 -0400)]
move job of creating local-def-ids to ast-map (with a few stragglers)

8 years agoreplaced *_ptr with *_raw methods in docs
Cristian Kubis [Thu, 1 Oct 2015 14:02:35 +0000 (16:02 +0200)]
replaced *_ptr with *_raw methods in docs

8 years agoadd some XXX markers
Niko Matsakis [Wed, 2 Sep 2015 11:09:53 +0000 (07:09 -0400)]
add some XXX markers

8 years agomove LOCAL_CRATE to cstore
Niko Matsakis [Tue, 1 Sep 2015 16:35:05 +0000 (12:35 -0400)]
move LOCAL_CRATE to cstore

8 years agoAvoid unnecessary temporaries when ref'ing a DST value
Björn Steinbrink [Thu, 1 Oct 2015 09:55:52 +0000 (11:55 +0200)]
Avoid unnecessary temporaries when ref'ing a DST value

A DST value and a fat pointer to it have the same representation, all we
have to do is to adjust the type of the datum holding the pointer.

8 years agouse the *adjusted* callee type in effect checking
Ariel Ben-Yehuda [Thu, 1 Oct 2015 13:06:50 +0000 (16:06 +0300)]
use the *adjusted* callee type in effect checking

Fixes #28776

8 years agoAuto merge of #28131 - arielb1:static-upvars, r=pnkfelix
bors [Thu, 1 Oct 2015 13:06:48 +0000 (13:06 +0000)]
Auto merge of #28131 - arielb1:static-upvars, r=pnkfelix

Fixes #23057
Fixes #27890
Fixes #28099
Fixes #28113

r? @pnkfelix

8 years agoStop probing for pandoc and xelatex, they are not used any more.
Robin Kruppe [Thu, 1 Oct 2015 12:34:31 +0000 (14:34 +0200)]
Stop probing for pandoc and xelatex, they are not used any more.

8 years agocheck upvars in closures that are in statics
Ariel Ben-Yehuda [Mon, 31 Aug 2015 19:37:05 +0000 (22:37 +0300)]
check upvars in closures that are in statics

Fixes #27890
Fixes #28099
Fixes #28113

8 years agoAuto merge of #28780 - steveklabnik:doc_from_str, r=alexcrichton
bors [Thu, 1 Oct 2015 11:18:48 +0000 (11:18 +0000)]
Auto merge of #28780 - steveklabnik:doc_from_str, r=alexcrichton

@marchelzo pointed out on IRC that this doesn't have docs, so, let's
change that.

8 years agodoc: fixed swapped docs for from_ptr and from_raw
Cristian Kubis [Thu, 1 Oct 2015 10:43:00 +0000 (12:43 +0200)]
doc: fixed swapped docs for from_ptr and from_raw

8 years agoAdd link to Florian Wilkens's Bachelor's Thesis
Florian Hahn [Thu, 1 Oct 2015 09:36:26 +0000 (11:36 +0200)]
Add link to Florian Wilkens's Bachelor's Thesis

8 years agoAuto merge of #28778 - arielb1:no-source, r=eddyb
bors [Thu, 1 Oct 2015 09:30:54 +0000 (09:30 +0000)]
Auto merge of #28778 - arielb1:no-source, r=eddyb

this simplifies the code while reducing the size of libcore.rlib by
3.3 MiB (~1M of which is bloat a separate patch of mine removes
too), while reducing rustc memory usage on small crates by 18MiB.

This also simplifies the code considerably.

I have measured a small, but possibly insignificant, bootstrap performance improvement, and the memory savings grow to about 30M for larger crates (but that is still less as a percentage).

r? @eddyb

8 years agoAuto merge of #28741 - alexcrichton:fix-msvc-32, r=vadimcn
bors [Thu, 1 Oct 2015 06:18:59 +0000 (06:18 +0000)]
Auto merge of #28741 - alexcrichton:fix-msvc-32, r=vadimcn

Turns out the symbol names are slightly different on 32-bit than on 64, so the
prefix needs to be tweaked just a bit!

8 years agoAuto merge of #28605 - alexcrichton:link-native-first, r=brson
bors [Thu, 1 Oct 2015 04:29:04 +0000 (04:29 +0000)]
Auto merge of #28605 - alexcrichton:link-native-first, r=brson

This commit swaps the order of linking local native libraries and upstream
native libraries on the linker command line. Detail of bugs this can cause can
be found in #28595, and this change also invalidates the test case that was
added for #12446 which is now considered a bug because the downstream dependency
would need to declare that it depends on the native library somehow.

Closes #28595
[breaking-change]

8 years agorustc: Swap link order of native libs/rust deps
Alex Crichton [Wed, 23 Sep 2015 16:23:31 +0000 (09:23 -0700)]
rustc: Swap link order of native libs/rust deps

This commit swaps the order of linking local native libraries and upstream
native libraries on the linker command line. Detail of bugs this can cause can
be found in #28595, and this change also invalidates the test case that was
added for #12446 which is now considered a bug because the downstream dependency
would need to declare that it depends on the native library somehow.

Closes #28595

8 years agoAuto merge of #28577 - jethrogb:topic/ast-stmt-debug, r=pcwalton
bors [Thu, 1 Oct 2015 02:38:25 +0000 (02:38 +0000)]
Auto merge of #28577 - jethrogb:topic/ast-stmt-debug, r=pcwalton

This enables the Debug trait to work on syntax::ast::Stmt.

8 years agoAuto merge of #28732 - Eljay:fix-unused-attr, r=alexcrichton
bors [Thu, 1 Oct 2015 00:47:06 +0000 (00:47 +0000)]
Auto merge of #28732 - Eljay:fix-unused-attr, r=alexcrichton

Closes #28709.

8 years agoAuto merge of #28782 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 30 Sep 2015 22:27:53 +0000 (22:27 +0000)]
Auto merge of #28782 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #28753, #28760, #28764, #28770, #28771, #28772
- Failed merges:

8 years agoRollup merge of #28772 - tshepang:improve-paragraph, r=steveklabnik
Steve Klabnik [Wed, 30 Sep 2015 22:20:04 +0000 (18:20 -0400)]
Rollup merge of #28772 - tshepang:improve-paragraph, r=steveklabnik

8 years agoRollup merge of #28771 - tshepang:upper-case, r=steveklabnik
Steve Klabnik [Wed, 30 Sep 2015 22:20:04 +0000 (18:20 -0400)]
Rollup merge of #28771 - tshepang:upper-case, r=steveklabnik

8 years agoRollup merge of #28770 - tshepang:awkward, r=steveklabnik
Steve Klabnik [Wed, 30 Sep 2015 22:20:03 +0000 (18:20 -0400)]
Rollup merge of #28770 - tshepang:awkward, r=steveklabnik

8 years agoRollup merge of #28764 - steveklabnik:gh28706, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 22:20:03 +0000 (18:20 -0400)]
Rollup merge of #28764 - steveklabnik:gh28706, r=alexcrichton

Fixes #28706

I am pretty sure that this is accurate, bout would love a double check.

8 years agoRollup merge of #28760 - steveklabnik:gh28166, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 22:20:03 +0000 (18:20 -0400)]
Rollup merge of #28760 - steveklabnik:gh28166, r=alexcrichton

Fixes #28166

8 years agoRollup merge of #28753 - steveklabnik:gh28572, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 22:20:03 +0000 (18:20 -0400)]
Rollup merge of #28753 - steveklabnik:gh28572, r=alexcrichton

This is part of #28572, but doesn't complete it. Amongst other things,
this patch:

* Increases consistency in the way feature flags are used with other
  docs.
* Removes the ignores, which is nice: we actually had some syntax errors
  in the examples :sob:.
* Mentions #![no_core]

Realistically, this document used to be in the order of least to most:
nothing, then adding core. But with the changes in RFC 1184, this is
backwards: it now shows stuff that uses core from the beginning. In the
future, I'd like to revamp this to go from 'most to least', but I'd like
to see the discussion in https://github.com/rust-lang/rust/issues/27701
goes before I write more.

8 years agoDon't crash on non-existent path in constant.
Eli Friedman [Wed, 30 Sep 2015 22:04:21 +0000 (15:04 -0700)]
Don't crash on non-existent path in constant.

The behavior here isn't really ideal, but we can't really do much better
given the current state of constant evaluation.

Fixes #28670, and probably a bunch of duplicates.

8 years agoAdd some docs for FromString::from_str
Steve Klabnik [Wed, 30 Sep 2015 21:42:41 +0000 (17:42 -0400)]
Add some docs for FromString::from_str

@marchelzo pointed out on IRC that this doesn't have docs, so, let's
change that.

8 years agokill the fake provided method stubs
Ariel Ben-Yehuda [Wed, 30 Sep 2015 19:28:27 +0000 (22:28 +0300)]
kill the fake provided method stubs

this simplifies the code while reducing the size of libcore.rlib by
3.3 MiB (~1M of which is bloat a separate patch of mine removes
too), while reducing rustc memory usage on small crates by 18MiB.

This also simplifies the code considerably.

8 years agotrans: Fix __imp_ creation for i686 MSVC
Alex Crichton [Tue, 29 Sep 2015 23:26:34 +0000 (16:26 -0700)]
trans: Fix __imp_ creation for i686 MSVC

Turns out the symbol names are slightly different on 32-bit than on 64, so the
prefix needs to be tweaked just a bit!

8 years agoAuto merge of #28769 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 30 Sep 2015 19:04:02 +0000 (19:04 +0000)]
Auto merge of #28769 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #28743, #28744, #28745, #28749, #28754, #28755, #28757, #28759, #28761, #28762, #28763, #28765
- Failed merges:

8 years agoImprove identifier defintion in the reference
Steve Klabnik [Wed, 30 Sep 2015 17:42:57 +0000 (13:42 -0400)]
Improve identifier defintion in the reference

Fixes #28706

8 years agoRollup merge of #28765 - steveklabnik:gh28693, r=nikomatsakis
Steve Klabnik [Wed, 30 Sep 2015 18:51:55 +0000 (14:51 -0400)]
Rollup merge of #28765 - steveklabnik:gh28693, r=nikomatsakis

Fixes #28693

8 years agoRollup merge of #28763 - steveklabnik:gh27917, r=alexcrichton
Steve Klabnik [Wed, 30 Sep 2015 18:51:55 +0000 (14:51 -0400)]
Rollup merge of #28763 - steveklabnik:gh27917, r=alexcrichton

Fixes #27917

8 years agoRollup merge of #28762 - steveklabnik:gh28073, r=nikomatsakis
Steve Klabnik [Wed, 30 Sep 2015 18:51:55 +0000 (14:51 -0400)]
Rollup merge of #28762 - steveklabnik:gh28073, r=nikomatsakis

Fixes #28073

8 years agoRollup merge of #28761 - steveklabnik:gh28082, r=brson
Steve Klabnik [Wed, 30 Sep 2015 18:51:55 +0000 (14:51 -0400)]
Rollup merge of #28761 - steveklabnik:gh28082, r=brson

We don't completely cover documentation tests in the testing chapter,
since we cover them in the documentation chapter. So make sure people
know that.

Fixes #28082