]>
git.lizzy.rs Git - rust.git/log
bors [Thu, 26 Nov 2015 14:50:36 +0000 (14:50 +0000)]
Auto merge of #30061 - tshepang:doc-time, r=brson
bors [Thu, 26 Nov 2015 13:07:18 +0000 (13:07 +0000)]
Auto merge of #30054 - Ms2ger:TypeOrigin, r=eddyb
bors [Thu, 26 Nov 2015 10:22:37 +0000 (10:22 +0000)]
Auto merge of #30015 - petrochenkov:staged, r=brson
Closes https://github.com/rust-lang/rust/issues/30008
`#[stable]`, `#[unstable]` and `#[rustc_deprecated]` are now guarded by `#[feature(staged_api)]`
r? @brson
Ms2ger [Wed, 25 Nov 2015 11:41:09 +0000 (12:41 +0100)]
Use the TypeOrigin variants qualified.
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:52:12 +0000 (22:52 +0200)]
doc: this is already mentioned in previous paragraph, and is harder to read
bors [Thu, 26 Nov 2015 00:20:37 +0000 (00:20 +0000)]
Auto merge of #30053 - JIghtuse:master, r=steveklabnik
bors [Wed, 25 Nov 2015 22:31:10 +0000 (22:31 +0000)]
Auto merge of #30060 - jonas-schievink:asparagus, r=nikomatsakis
Fixes #27092
Fixes #30005
Vadim Petrochenkov [Wed, 25 Nov 2015 21:15:46 +0000 (00:15 +0300)]
Consider a crate staged if it has `stable` or `unstable` in its root
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:51:01 +0000 (22:51 +0200)]
doc: fix type name
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:50:47 +0000 (22:50 +0200)]
doc: add a pause
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:47:17 +0000 (22:47 +0200)]
doc: split overlong sentence
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:46:39 +0000 (22:46 +0200)]
doc: add missing commas
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:45:39 +0000 (22:45 +0200)]
doc: fix grammar
Tshepang Lekhonkhobe [Wed, 25 Nov 2015 20:45:14 +0000 (22:45 +0200)]
doc: remove info repeated on next paragraph
bors [Wed, 25 Nov 2015 20:40:27 +0000 (20:40 +0000)]
Auto merge of #30017 - nrc:fmt, r=brson
Jonas Schievink [Wed, 25 Nov 2015 20:01:23 +0000 (21:01 +0100)]
Add a test
Jonas Schievink [Wed, 25 Nov 2015 19:58:57 +0000 (20:58 +0100)]
Fix "Cannot fill in a NT" ICE
Vadim Petrochenkov [Wed, 25 Nov 2015 19:38:54 +0000 (22:38 +0300)]
Update liblibc
Vadim Petrochenkov [Mon, 23 Nov 2015 22:52:55 +0000 (01:52 +0300)]
Remove all uses of `#[staged_api]`
Vadim Petrochenkov [Mon, 23 Nov 2015 22:51:58 +0000 (01:51 +0300)]
Remove `#[staged_api]`
bors [Wed, 25 Nov 2015 18:49:56 +0000 (18:49 +0000)]
Auto merge of #30044 - nikomatsakis:issue-29466, r=arielb1
The graph extent mechanism is not good. I have some ideas for a better replacement, but this PR simply removes it. It also stops recursing on statement scopes and processes them using an "on the heap" stack, which fixes #29466.
r? @dotdash
bors [Wed, 25 Nov 2015 16:05:49 +0000 (16:05 +0000)]
Auto merge of #30030 - steveklabnik:doc_std_char, r=brson
Part of #29428
Steve Klabnik [Tue, 24 Nov 2015 16:49:19 +0000 (11:49 -0500)]
Improve docs for std::char
Part of #29428
bors [Wed, 25 Nov 2015 13:18:16 +0000 (13:18 +0000)]
Auto merge of #30052 - Ryman:bind_docs, r=apasel422
`socket_addr` was renamed to `local_addr` in 1.0beta.
See:
f798674b86382929ca17c88de422a6e2fdb27f2a
r? @steveklabnik
Kevin Butler [Tue, 24 Nov 2015 23:13:07 +0000 (23:13 +0000)]
Fix docs for TcpListener::bind
`socket_addr` was renamed to `local_addr` in 1.0beta.
See:
f798674b86382929ca17c88de422a6e2fdb27f2a
bors [Wed, 25 Nov 2015 08:14:39 +0000 (08:14 +0000)]
Auto merge of #30034 - brson:rust_path, r=alexcrichton
This was to support rustpkg but is unused now.
Boris Egorov [Wed, 25 Nov 2015 07:59:21 +0000 (13:59 +0600)]
trpl: Fix example logic in error handling chapter
bors [Wed, 25 Nov 2015 05:43:43 +0000 (05:43 +0000)]
Auto merge of #30049 - Manishearth:rollup, r=Manishearth
- Successful merges: #30013, #30038, #30040
- Failed merges: #30030
Manish Goregaokar [Wed, 25 Nov 2015 03:51:19 +0000 (09:21 +0530)]
Rollup merge of #30040 - apasel422:issue-30031, r=brson
Closes #30031.
Manish Goregaokar [Wed, 25 Nov 2015 03:51:18 +0000 (09:21 +0530)]
Rollup merge of #30038 - Carreau:cargo-philosopher, r=steveklabnik
At this point of the book, reader have likely use `cargo new --bin`,
likely 2 times, once if they are lazy. This remind them of the `cargo`
syntax.
I was myself unsure whether it was `cargo create`, `cargo new`, and
whether it would initialize in current working directory or needed a
target.
--
Otherwise thanks, I've been writing rust for a few hours, and likes it so far.
Manish Goregaokar [Wed, 25 Nov 2015 03:51:18 +0000 (09:21 +0530)]
Rollup merge of #30013 - steveklabnik:doc_char, r=brson
Part of https://github.com/rust-lang/rust/issues/29333
bors [Wed, 25 Nov 2015 03:02:05 +0000 (03:02 +0000)]
Auto merge of #30011 - jonas-schievink:macro-context, r=nrc
Fixes #22425
Also fixes #30007, since it's just a change from `true` to `false`.
bors [Wed, 25 Nov 2015 01:14:43 +0000 (01:14 +0000)]
Auto merge of #29687 - Havvy:ux-guidelines, r=pnkfelix
See https://github.com/rust-lang/rfcs/pull/1246 for discussion.
Niko Matsakis [Tue, 24 Nov 2015 22:24:21 +0000 (17:24 -0500)]
Rewrite stmt processing not to recurse to avoid stack overflow if there
are tons of let statements. Fixes #29466.
bors [Tue, 24 Nov 2015 23:24:18 +0000 (23:24 +0000)]
Auto merge of #30016 - alexcrichton:fix-off-by-one, r=brson
Typical algebra currently doesn't work on the types in std::time currently (see
[this comment][comment]), so tweak the tests to account for this property.
[comment]: https://github.com/rust-lang/rust/issues/29866#issuecomment-
159093809
Closes #29970
Niko Matsakis [Thu, 19 Nov 2015 10:54:27 +0000 (05:54 -0500)]
Remove the GraphExtents, the design of which seems bogus. They carried
the right information, but it's hard to maintain in the face of
optimizations, and in the form that the analyses probably actually want.
Niko Matsakis [Thu, 12 Nov 2015 19:29:23 +0000 (14:29 -0500)]
Add some comments to Mir struct.
Andrew Paseltiner [Tue, 24 Nov 2015 21:40:25 +0000 (16:40 -0500)]
Add overflow check to `arc::Weak::upgrade`
Closes #30031.
bors [Tue, 24 Nov 2015 21:36:54 +0000 (21:36 +0000)]
Auto merge of #30009 - apasel422:tests, r=alexcrichton
Closes #25810.
Closes #29276.
r? @alexcrichton
Matthias Bussonnier [Tue, 24 Nov 2015 20:58:18 +0000 (21:58 +0100)]
Add cargo instructions for dinning_philosopher project
At this point of the book, reader have likely use `cargo new --bin`,
likely 2 times, once if they are lazy. This remind them of the `cargo`
syntax.
I was myself unsure whether it was `cargo create`, `cargo new`, and
whether it would initialize in current working directory or needed a
target.
bors [Tue, 24 Nov 2015 19:46:59 +0000 (19:46 +0000)]
Auto merge of #29960 - aturon:dismantle-traitref-subtyping, r=nikomatsakis
Trait references are always invariant, so all uses of subtyping between
them are equivalent to using equality.
Moreover, the overlap check was previously performed twice per impl
pair, once in each direction. It is now performed only once, and
internally uses the equality check.
On glium, a crate that spends some time in coherence, this change sped
up coherence checking by a few percent (not very significant).
r? @nikomatsakis
Brian Anderson [Tue, 24 Nov 2015 19:37:40 +0000 (19:37 +0000)]
Remove RUST_PATH from compiler
This was to support rustpkg but is unused now.
Steve Klabnik [Mon, 23 Nov 2015 21:56:07 +0000 (16:56 -0500)]
Fix up docs for char
Part of https://github.com/rust-lang/rust/issues/29333
bors [Tue, 24 Nov 2015 17:10:55 +0000 (17:10 +0000)]
Auto merge of #30028 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #29397, #29933, #30004, #30019, #30020, #30023
- Failed merges:
Jonas Schievink [Tue, 24 Nov 2015 16:46:10 +0000 (17:46 +0100)]
Fix test failures
Jonas Schievink [Tue, 24 Nov 2015 15:34:48 +0000 (16:34 +0100)]
Remove "this"
Steve Klabnik [Tue, 24 Nov 2015 14:43:47 +0000 (09:43 -0500)]
Rollup merge of #30023 - Ms2ger:EntryOrExit, r=Manishearth
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #30020 - Manishearth:unit, r=bluss
`unit` was in code formatting, which is wrong, since it's not actual code. The correct code is `()`.
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #30019 - alex:patch-1, r=steveklabnik
looks like a case of mixed tabs and spaces
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #30004 - michaelwoerister:primitive-ty-to-str, r=alexcrichton
Good candidate for a rollup, this one.
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #29933 - tbu-:pr_dont_opt_in_copy, r=nikomatsakis
It was introduced with the change that made copy opt-in. The
implementation gives a warning, because the struct contains a raw
pointer.
Steve Klabnik [Tue, 24 Nov 2015 14:43:46 +0000 (09:43 -0500)]
Rollup merge of #29397 - dylanmckay:llvmdeps-deps, r=brson
Previously the file was not regenrated upon modification of `src/rustllvm` or others.
Now it will be rebuilt if `src/llvm` or `src/rustllvm` is touched.
Also added *.rs rule to 'clean' rule so that it is removed upon 'make
clean'.
Fixes #28614.
bors [Tue, 24 Nov 2015 14:30:46 +0000 (14:30 +0000)]
Auto merge of #29934 - arielb1:constrained-projection-2, r=nikomatsakis
Fixes #29861 - it was a bug I accidentally introduced in #26275.
r? @nikomatsakis
Ms2ger [Tue, 24 Nov 2015 12:06:12 +0000 (13:06 +0100)]
Use the EntryOrExit variants qualified.
bors [Tue, 24 Nov 2015 11:10:22 +0000 (11:10 +0000)]
Auto merge of #30012 - jonas-schievink:log-level-trace, r=alexcrichton
The `log` crate on crates.io already knows `TRACE`, but the internal liblog doesn't, which causes it to spew errors when a `TRACE` level is defined. I made `TRACE` behave like `DEBUG`.
bors [Tue, 24 Nov 2015 06:58:25 +0000 (06:58 +0000)]
Auto merge of #30000 - Manishearth:unreachable-call, r=nrc
Fixes #1889
Manish Goregaokar [Tue, 24 Nov 2015 06:26:27 +0000 (11:56 +0530)]
Update reference.md
Alex Gaynor [Tue, 24 Nov 2015 06:24:27 +0000 (01:24 -0500)]
fixed inconsistent indentation in book example
looks like a case of mixed tabs and spaces
Manish Goregaokar [Tue, 24 Nov 2015 01:53:53 +0000 (07:23 +0530)]
Fix unreachable code in libsyntax
bors [Tue, 24 Nov 2015 04:26:47 +0000 (04:26 +0000)]
Auto merge of #30006 - ntrepid8:skip-check-for-DYLD-libs-in-child-proc, r=alexcrichton
link: https://forums.developer.apple.com/thread/9233
The causes a test in `src/libstd/process.rs' to fail when those environment variables are not found in the child process. This PR skips those variables similar to how the Windows envars that start with `=` are skipped.
Nick Cameron [Mon, 23 Nov 2015 23:11:20 +0000 (12:11 +1300)]
rustfmt: libflate, libfmt_macros, libgetopts, libgraphviz, liblog, librand
bors [Tue, 24 Nov 2015 01:42:31 +0000 (01:42 +0000)]
Auto merge of #30001 - Detegr:master, r=Manishearth
r? @Manishearth
Alex Crichton [Mon, 23 Nov 2015 22:51:45 +0000 (14:51 -0800)]
std: Tweak tests of std::time
Typical algebra currently doesn't work on the types in std::time currently (see
[this comment][comment]), so tweak the tests to account for this property.
[comment]: https://github.com/rust-lang/rust/issues/29866#issuecomment-
159093809
Closes #29970
Nick Cameron [Mon, 23 Nov 2015 22:23:48 +0000 (11:23 +1300)]
rustfmt libcollections
bors [Mon, 23 Nov 2015 22:53:14 +0000 (22:53 +0000)]
Auto merge of #29955 - bltavares:makefile-29554, r=brson
Reference #29554
Nick Cameron [Mon, 23 Nov 2015 02:32:40 +0000 (15:32 +1300)]
rustfmt: liballoc, liballoc_*, libarena
Jonas Schievink [Mon, 23 Nov 2015 21:09:40 +0000 (22:09 +0100)]
Add TRACE to the known log levels
The `log` crate on crates.io already knows TRACE, but the internal
liblog doesn't, which causes it to spew errors when a TRACE level is
defined.
Manish Goregaokar [Mon, 23 Nov 2015 13:55:57 +0000 (19:25 +0530)]
Make unreachable_code lint warn on diverging call arguments as well
Fixes #1889
bors [Mon, 23 Nov 2015 20:08:49 +0000 (20:08 +0000)]
Auto merge of #29952 - petrochenkov:depr, r=brson
Part of https://github.com/rust-lang/rust/issues/29935
The deprecation lint is still called "deprecated", so people can continue using `#[allow(deprecated)]` and similar things.
Jonas Schievink [Mon, 23 Nov 2015 20:06:51 +0000 (21:06 +0100)]
Print the macro context name on incomplete parse
Fixes #22425
Also fixes #30007, since it's just a change from `true` to `false`.
Andrew Paseltiner [Mon, 23 Nov 2015 19:57:28 +0000 (14:57 -0500)]
Add tests for #25810 and #29276
Closes #25810.
Closes #29276.
Josh Austin [Mon, 23 Nov 2015 19:08:52 +0000 (14:08 -0500)]
skip check for DYLD envars in child proc
Antti Keränen [Mon, 23 Nov 2015 19:06:08 +0000 (21:06 +0200)]
Add compile-fail test for issue #10969
bors [Mon, 23 Nov 2015 17:31:19 +0000 (17:31 +0000)]
Auto merge of #29530 - jseyfried:resolve, r=nikomatsakis
Replace `TypeNsDef` and `ValueNsDef` with a more general type `NsDef`.
Define a newtype `NameBinding` for `Rc<RefCell<Option<NsDef>>>` and refactor `NameBindings` to be a `NameBinding` for each namespace.
Replace uses of `NameBindings` with `NameBinding` where only one binding is being used (in `NamespaceResult`, `Target,` etc).
Refactor away `resolve_definition_of_name_in_module` and `NameDefinition`, fixing issue #4952.
Michael Woerister [Mon, 23 Nov 2015 14:59:36 +0000 (15:59 +0100)]
Avoid some code duplication around getting names of numeric types.
Antti Keränen [Mon, 23 Nov 2015 14:48:55 +0000 (16:48 +0200)]
Add a note when trying to call a non-function
The note added tells the definition location of the non-function
that is being called. Fixes #10969
bors [Mon, 23 Nov 2015 14:37:35 +0000 (14:37 +0000)]
Auto merge of #29998 - fiveop:patch-1, r=steveklabnik
Philipp Matthias Schäfer [Mon, 23 Nov 2015 08:39:58 +0000 (09:39 +0100)]
wording: results don't fail
bors [Mon, 23 Nov 2015 06:27:49 +0000 (06:27 +0000)]
Auto merge of #29984 - Manishearth:slice-assert, r=alexcrichton
I'd like to have the message print out the index and length values like it does elsewhere, but I'm not sure how to do that without affecting perf here. Will `assert!(cond, "index out of bounds got {} but len is ", idx, len)` make things slower? It calls `panic_fmt` which is marked as cold but also calls `format_args!`, and I don't know if that allocates or does any heavy lifting.
cc @alexcrichton @Gankro
Manish Goregaokar [Sun, 22 Nov 2015 13:14:37 +0000 (18:44 +0530)]
Improve slice indexing assertion
Manish Goregaokar [Mon, 23 Nov 2015 04:04:01 +0000 (09:34 +0530)]
Mark slice_error_fail as a cold path
bors [Sun, 22 Nov 2015 23:01:56 +0000 (23:01 +0000)]
Auto merge of #28907 - SingingTree:rustfmt_libterm, r=nrc
Hey hey,
This is the result of running rustfmt over the libterm module. The first commit reflects the unaltered changes from rustfmt, and the commit message contains some notes on areas where I thought rustfmt had behaved strangely. The second commit attempts to fix the strange areas from the first commit.
Clarification edit: there are still some areas where I think rustfmt has made changes which may merit discussion (one is noted in the comments below). My second commit only undoes the changes that I figured would not warrant discussion (based on my opinion of the style, which is of course subjective).
r? @nrc
bors [Sun, 22 Nov 2015 21:17:57 +0000 (21:17 +0000)]
Auto merge of #29964 - alexcrichton:update-libc, r=brson
Includes rust-lang-nursery/libc#66 which should:
Closes #29818
Closes #29956
Alex Crichton [Fri, 20 Nov 2015 22:17:27 +0000 (14:17 -0800)]
libc: Update to master
Includes rust-lang-nursery/libc#66 which should:
Closes #29956
bors [Sun, 22 Nov 2015 18:34:13 +0000 (18:34 +0000)]
Auto merge of #29983 - tbu-:pr_env_windows_hidden_variables, r=alexcrichton
Fixes #29972.
Tobias Bucher [Sun, 22 Nov 2015 11:12:18 +0000 (11:12 +0000)]
test_inherit_env: Don't look for hidden environment variables on Windows
Fixes #29972.
bors [Sun, 22 Nov 2015 08:43:22 +0000 (08:43 +0000)]
Auto merge of #29716 - Manishearth:repr-error, r=Gankro
r? @Gankro
bors [Sun, 22 Nov 2015 06:42:56 +0000 (06:42 +0000)]
Auto merge of #29980 - Manishearth:missing-diag, r=eddyb
None
Manish Goregaokar [Sun, 22 Nov 2015 04:56:50 +0000 (10:26 +0530)]
Improve transmute diagnostics with a note about destructors
fixes #29922
Manish Goregaokar [Sun, 22 Nov 2015 04:52:25 +0000 (10:22 +0530)]
Register diagnostics for rustc_privacy and rustc_trans properly
fixes #29665
bors [Sun, 22 Nov 2015 04:13:49 +0000 (04:13 +0000)]
Auto merge of #29968 - Manishearth:bang-macro-diag, r=eddyb
r? @eddyb
fixes #5780
Manish Goregaokar [Sat, 21 Nov 2015 09:37:50 +0000 (15:07 +0530)]
Look up macro names as well when suggesting replacements for function resolve errors
fixes #5780
Bryce Van Dyk [Sun, 22 Nov 2015 00:24:56 +0000 (13:24 +1300)]
Rustfmt libterm, skip long static in compiled.rs
bors [Sat, 21 Nov 2015 22:08:26 +0000 (22:08 +0000)]
Auto merge of #29963 - dotdash:fat_copy, r=eddyb
Since fat pointers do not qualify as structural types, they got copied
using load_ty and store_ty, which means that we load an FCA and use
extractvalue to get the components of the fat pointer. This breaks
certain optimizations in LLVM.
Found via apasel422/ref_count#13
bors [Sat, 21 Nov 2015 06:06:16 +0000 (06:06 +0000)]
Auto merge of #29966 - MatthiasKauer:master, r=steveklabnik
This commit changes the location of the rust docs.
https://github.com/rust-lang/rust/commit/
024aa9a345e92aa1926517c4d9b16bd83e74c10d
Clicking the contribution link on the front page therefore becomes a 'not found' error.
bors [Sat, 21 Nov 2015 04:22:15 +0000 (04:22 +0000)]
Auto merge of #29948 - devonhollowood:fromstr-parse, r=steveklabnik
Implement #29919
bors [Sat, 21 Nov 2015 02:38:18 +0000 (02:38 +0000)]
Auto merge of #29913 - tbu-:pr_windows_path_error_on_nul, r=alexcrichton
On Windows: Previously these paths were silently truncated at these NUL
characters, now they fail with `ErrorKind::InvalidInput`.
Tobias Bucher [Thu, 19 Nov 2015 18:01:11 +0000 (18:01 +0000)]
Also check for NULs in environment variables
This check is necessary, because the underlying API only reads strings
until the first NUL.
bors [Sat, 21 Nov 2015 00:54:16 +0000 (00:54 +0000)]
Auto merge of #29916 - Manishearth:diag-401, r=steveklabnik
None
Matthias Kauer [Fri, 20 Nov 2015 23:49:25 +0000 (07:49 +0800)]
change link on book front page trpl -> book