]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoAuto merge of #24525 - GuillaumeGomez:check-const, r=pnkfelix
bors [Mon, 20 Apr 2015 10:26:17 +0000 (10:26 +0000)]
Auto merge of #24525 - GuillaumeGomez:check-const, r=pnkfelix

Part of #24407.

9 years agoFix typos
Guillaume Gomez [Mon, 20 Apr 2015 10:01:56 +0000 (12:01 +0200)]
Fix typos

9 years agoAuto merge of #24608 - frewsxcv:patch-15, r=alexcrichton
bors [Mon, 20 Apr 2015 02:47:45 +0000 (02:47 +0000)]
Auto merge of #24608 - frewsxcv:patch-15, r=alexcrichton

9 years agoAuto merge of #24586 - richo:test-16745, r=jakub-
bors [Mon, 20 Apr 2015 00:43:37 +0000 (00:43 +0000)]
Auto merge of #24586 - richo:test-16745, r=jakub-

closes #16745

9 years agoAdd long explanation for E0018
Guillaume Gomez [Fri, 17 Apr 2015 17:20:47 +0000 (19:20 +0200)]
Add long explanation for E0018

9 years agoAuto merge of #24592 - P1start:style-lints-changes, r=alexcrichton
bors [Sun, 19 Apr 2015 21:36:14 +0000 (21:36 +0000)]
Auto merge of #24592 - P1start:style-lints-changes, r=alexcrichton

Passing a non-snake-case name to `#![crate_name]` or `--crate-name` will now yield a warning from the `non_snake_case` lint.

9 years agoAuto merge of #24517 - erickt:str, r=alexcrichton
bors [Sun, 19 Apr 2015 19:32:45 +0000 (19:32 +0000)]
Auto merge of #24517 - erickt:str, r=alexcrichton

This implementation is currently about 3-4 times faster than using the `.to_string()` based approach.

I would also suggest we deprecate `String::from_str` since it's redundant with the stable `String::from` method, but I'll leave that for a future PR.

9 years agocollections: Move optimized String::from_str to String::from
Erick Tryzelaar [Sun, 19 Apr 2015 17:59:06 +0000 (10:59 -0700)]
collections: Move optimized String::from_str to String::from

This implementation is currently about 3-4 times faster than using
the `.to_string()` based approach.

9 years agoAuto merge of #24526 - klutzy:getrandom-fix, r=alexcrichton
bors [Sun, 19 Apr 2015 17:28:27 +0000 (17:28 +0000)]
Auto merge of #24526 - klutzy:getrandom-fix, r=alexcrichton

Fixes #21538.

9 years agoFix typos in code comments
Corey Farwell [Sun, 19 Apr 2015 16:18:51 +0000 (12:18 -0400)]
Fix typos in code comments

9 years agoAuto merge of #24572 - steveklabnik:gh24569, r=brson
bors [Sun, 19 Apr 2015 15:24:19 +0000 (15:24 +0000)]
Auto merge of #24572 - steveklabnik:gh24569, r=brson

Fixes #24569.

Should wait until https://github.com/rust-lang/rust-www/pull/114 is merged.

9 years agoAuto merge of #24567 - tamird:windows-caviats, r=steveklabnik
bors [Sun, 19 Apr 2015 13:20:24 +0000 (13:20 +0000)]
Auto merge of #24567 - tamird:windows-caviats, r=steveklabnik

- https://github.com/rust-lang/rust/issues/1237 is closed
- `libgcc` is now statically linked:
  https://github.com/rust-lang/rust/pull/17471

9 years agoAuto merge of #24559 - frewsxcv:get-mut-if-let, r=steveklabnik
bors [Sun, 19 Apr 2015 11:16:45 +0000 (11:16 +0000)]
Auto merge of #24559 - frewsxcv:get-mut-if-let, r=steveklabnik

None

9 years agoLint non-snake-case crate names
P1start [Sat, 18 Apr 2015 01:39:10 +0000 (13:39 +1200)]
Lint non-snake-case crate names

Passing a non-snake-case name to #![crate_name] or --crate-name will now yield a
warning from the `non_snake_case` lint.

9 years agostd::rand::os: Fix race condition of atomics
klutzy [Fri, 17 Apr 2015 12:17:33 +0000 (21:17 +0900)]
std::rand::os: Fix race condition of atomics

Fixes #21538.

9 years agoAuto merge of #24552 - meqif:explain, r=alexcrichton
bors [Sun, 19 Apr 2015 07:51:27 +0000 (07:51 +0000)]
Auto merge of #24552 - meqif:explain, r=alexcrichton

cc #24407

9 years agotest: Add an assertion to the #16745 testcase
Richo Healey [Sun, 19 Apr 2015 07:25:13 +0000 (00:25 -0700)]
test: Add an assertion to the #16745 testcase

9 years agoAuto merge of #24555 - frewsxcv:patch-14, r=steveklabnik
bors [Sun, 19 Apr 2015 05:46:47 +0000 (05:46 +0000)]
Auto merge of #24555 - frewsxcv:patch-14, r=steveklabnik

9 years agoAuto merge of #24554 - tshepang:let-faq, r=steveklabnik
bors [Sun, 19 Apr 2015 03:42:59 +0000 (03:42 +0000)]
Auto merge of #24554 - tshepang:let-faq, r=steveklabnik

9 years agotest: Add testcase for #16745
Richo Healey [Sun, 19 Apr 2015 00:41:18 +0000 (17:41 -0700)]
test: Add testcase for #16745

9 years agoAdd long diagnostics for E0133.
Ricardo Martins [Sat, 18 Apr 2015 11:02:37 +0000 (12:02 +0100)]
Add long diagnostics for E0133.

9 years agoAuto merge of #24383 - avdi:patch-1, r=steveklabnik
bors [Sat, 18 Apr 2015 23:35:50 +0000 (23:35 +0000)]
Auto merge of #24383 - avdi:patch-1, r=steveklabnik

"Dynamically typed" didn't seem like a relevant distinction; there are statically-compiled dynamically-typed languages. Another term that might work here (despite being notoriously vague) is "scripting languages".

9 years agoRemove the 30 minute intro
Steve Klabnik [Sat, 18 Apr 2015 21:55:31 +0000 (17:55 -0400)]
Remove the 30 minute intro

Fixes #24569.

9 years agoAuto merge of #24560 - kwantam:apply_table_opt, r=alexcrichton
bors [Sat, 18 Apr 2015 21:30:03 +0000 (21:30 +0000)]
Auto merge of #24560 - kwantam:apply_table_opt, r=alexcrichton

Apply optimization described in
https://github.com/rust-lang/regex/pull/73#issuecomment-93777126
to rust's copy of `unicode.py`.

This shrinks librustc_unicode's tables.rs from 479kB to 456kB,
and should improve performance slightly for related operations
(e.g., is_alphabetic(), is_xid_start(), etc).

In addition, pull in fix from @dscorbett's commit
d25c39f86568a147f9b7080c25711fb1f98f056a in regex, which
makes `load_properties()` more tolerant of whitespace
in the Unicode tables. (This fix does not result in any
changes to tables.rs, but could if the Unicode tables
change in the future.)

9 years agoIndicate keywords are code-like in Fuse::reset_fuse doc comment
Corey Farwell [Sat, 18 Apr 2015 15:55:40 +0000 (11:55 -0400)]
Indicate keywords are code-like in Fuse::reset_fuse doc comment

9 years agoUpdate Windows caveats
Tamir Duberstein [Sat, 18 Apr 2015 20:00:40 +0000 (13:00 -0700)]
Update Windows caveats

- https://github.com/rust-lang/rust/issues/1237 is closed
- `libgcc` is now statically linked:
  https://github.com/rust-lang/rust/pull/17471

9 years agoAuto merge of #24562 - Manishearth:rollup, r=Manishearth
bors [Sat, 18 Apr 2015 19:24:06 +0000 (19:24 +0000)]
Auto merge of #24562 - Manishearth:rollup, r=Manishearth

- Successful merges: #24466, #24472, #24532, #24542, #24548
- Failed merges: #24552

9 years agofix doctest (fixup #24466)
Manish Goregaokar [Sat, 18 Apr 2015 19:24:42 +0000 (00:54 +0530)]
fix doctest (fixup #24466)

9 years agoRollup merge of #24548 - graydon:reference-tidying, r=steveklabnik
Manish Goregaokar [Sat, 18 Apr 2015 17:59:58 +0000 (23:29 +0530)]
Rollup merge of #24548 - graydon:reference-tidying, r=steveklabnik

This just deletes some egregious lies and obsolete terminology -- all of which I originally wrote -- from the reference. I expect the reference itself will be deleted soon enough, but I found myself gritting teeth over these bits too much to let them into a 1.0 release.

9 years agoRollup merge of #24542 - michaelsproul:rollup, r=alexcrichton
Manish Goregaokar [Sat, 18 Apr 2015 17:59:57 +0000 (23:29 +0530)]
Rollup merge of #24542 - michaelsproul:rollup, r=alexcrichton

I did a manual merge of all the extended error PRs as we were getting merge conflicts yesterday. I think this is preferable to merging separately as I ended up having to manually merge @nham and @GuillaumeGomez's commits.

Rollup of #24458, #24482 and #24488.

#24482 and #24488 were already re-approved, and would need to be cancelled if this is merged instead.

9 years agoRollup merge of #24532 - brson:beta, r=pnkfelix
Manish Goregaokar [Sat, 18 Apr 2015 17:59:57 +0000 (23:29 +0530)]
Rollup merge of #24532 - brson:beta, r=pnkfelix

9 years agoRollup merge of #24472 - dotdash:23431, r=nikomatsakis
Manish Goregaokar [Sat, 18 Apr 2015 17:59:57 +0000 (23:29 +0530)]
Rollup merge of #24472 - dotdash:23431, r=nikomatsakis

Loading from and storing to small aggregates happens by casting the
aggregate pointer to an appropriately sized integer pointer to avoid
the usage of first class aggregates which would lead to less optimized
code.

But this means that, for example, a tuple of type (i16, i16) will be
loading through an i32 pointer and because we currently don't provide
alignment information LLVM assumes that the load should use the ABI
alignment for i32 which would usually be 4 byte alignment. But the
alignment requirement for the (i16, i16) tuple will usually be just 2
bytes, so we're overestimating alignment, which invokes undefined
behaviour.

Therefore we must emit appropriate alignment information for
stores/loads through such casted pointers.

Fixes #23431

9 years agoRollup merge of #24466 - steveklabnik:more_more_more, r=alexcrichton
Manish Goregaokar [Sat, 18 Apr 2015 17:59:57 +0000 (23:29 +0530)]
Rollup merge of #24466 - steveklabnik:more_more_more, r=alexcrichton

Link to the big chapter for now, and add move semantics.

9 years agooptimize Unicode tables
kwantam [Thu, 16 Apr 2015 19:38:35 +0000 (15:38 -0400)]
optimize Unicode tables

Apply optimization described in
https://github.com/rust-lang/regex/pull/73#issuecomment-93777126
to rust's copy of `unicode.py`.

This shrinks librustc_unicode's tables.rs from 479kB to 456kB,
and should improve performance slightly for related operations
(e.g., is_alphabetic(), is_xid_start(), etc).

In addition, pull in fix from @dscorbett's commit
d25c39f86568a147f9b7080c25711fb1f98f056a in regex, which
makes `load_properties()` more tolerant of whitespace
in the Unicode tables. (This fix does not result in any
changes to tables.rs, but could if the Unicode tables
change in the future.)

9 years agoUtilize if..let for get_mut doc-comment examples
Corey Farwell [Sat, 18 Apr 2015 16:45:05 +0000 (12:45 -0400)]
Utilize if..let for get_mut doc-comment examples

9 years agoEmit correct alignment information for loads/store of small aggregates
Björn Steinbrink [Wed, 15 Apr 2015 18:14:54 +0000 (20:14 +0200)]
Emit correct alignment information for loads/store of small aggregates

Loading from and storing to small aggregates happens by casting the
aggregate pointer to an appropriately sized integer pointer to avoid
the usage of first class aggregates which would lead to less optimized
code.

But this means that, for example, a tuple of type (i16, i16) will be
loading through an i32 pointer and because we currently don't provide
alignment information LLVM assumes that the load should use the ABI
alignment for i32 which would usually be 4 byte alignment. But the
alignment requirement for the (i16, i16) tuple will usually be just 2
bytes, so we're overestimating alignment, which invokes undefined
behaviour.

Therefore we must emit appropriate alignment information for
stores/loads through such casted pointers.

Fixes #23431

9 years agodoc: improve/fix 'let' FAQ
Tshepang Lekhonkhobe [Sat, 18 Apr 2015 15:36:41 +0000 (17:36 +0200)]
doc: improve/fix 'let' FAQ

9 years agoAuto merge of #24528 - tamird:valgrind-sched, r=alexcrichton
bors [Sat, 18 Apr 2015 14:38:44 +0000 (14:38 +0000)]
Auto merge of #24528 - tamird:valgrind-sched, r=alexcrichton

r? @brson

9 years agoAuto merge of #24519 - rprichard:opt-write-args, r=alexcrichton
bors [Sat, 18 Apr 2015 12:35:07 +0000 (12:35 +0000)]
Auto merge of #24519 - rprichard:opt-write-args, r=alexcrichton

It's just as convenient, but it's much faster. Using write! requires an
extra call to fmt::write and a extra dynamically dispatched call to
Arguments' Display format function.

9 years agoAuto merge of #24464 - lambdaburrito:master, r=alexcrichton
bors [Sat, 18 Apr 2015 09:12:53 +0000 (09:12 +0000)]
Auto merge of #24464 - lambdaburrito:master, r=alexcrichton

resolves #24462

9 years agoAuto merge of #24428 - kwantam:deprecate_unicode_fns, r=alexcrichton
bors [Sat, 18 Apr 2015 07:09:22 +0000 (07:09 +0000)]
Auto merge of #24428 - kwantam:deprecate_unicode_fns, r=alexcrichton

This patch
1. renames libunicode to librustc_unicode,
2. deprecates several pieces of libunicode (see below), and
3. removes references to deprecated functions from
   librustc_driver and libsyntax. This may change pretty-printed
   output from these modules in cases involving wide or combining
   characters used in filenames, identifiers, etc.

The following functions are marked deprecated:

1. char.width() and str.width():
   --> use unicode-width crate

2. str.graphemes() and str.grapheme_indices():
   --> use unicode-segmentation crate

3. str.nfd_chars(), str.nfkd_chars(), str.nfc_chars(), str.nfkc_chars(),
   char.compose(), char.decompose_canonical(), char.decompose_compatible(),
   char.canonical_combining_class():
   --> use unicode-normalization crate

9 years agoAuto merge of #24209 - nikomatsakis:refactor-unification, r=nrc
bors [Sat, 18 Apr 2015 04:57:56 +0000 (04:57 +0000)]
Auto merge of #24209 - nikomatsakis:refactor-unification, r=nrc

I'm on a quest to slowly refactor a lot of the inference code. A first step for that is moving the "pure data structures" out so as to simplify what's left. This PR moves `snapshot_vec`, `graph`, and `unify` into their own crate (`librustc_data_structures`). They can then be unit-tested, benchmarked, etc more easily. As a benefit, I improved the performance of unification slightly on the benchmark I added vs the original code.

r? @nrc

9 years agoRemove obsolete discusison of runtime, promote `Linkage` to chapter.
Graydon Hoare [Sat, 18 Apr 2015 03:02:55 +0000 (20:02 -0700)]
Remove obsolete discusison of runtime, promote `Linkage` to chapter.

9 years agoImprove memory-model section very slightly.
Graydon Hoare [Sat, 18 Apr 2015 03:01:03 +0000 (20:01 -0700)]
Improve memory-model section very slightly.

9 years agoImprove special-traits section very slightly.
Graydon Hoare [Sat, 18 Apr 2015 03:00:47 +0000 (20:00 -0700)]
Improve special-traits section very slightly.

9 years agoAuto merge of #24133 - kballard:add-sync-to-io-error, r=alexcrichton
bors [Sat, 18 Apr 2015 02:53:53 +0000 (02:53 +0000)]
Auto merge of #24133 - kballard:add-sync-to-io-error, r=alexcrichton

This allows `io::Error` values to be stored in `Arc` properly.

Because this requires `Sync` of any value passed to `io::Error::new()`
and modifies the relevant `convert::From` impls, this is a

[breaking-change]

Fixes #24049.

9 years agoEliminate the obsolete term 'slot'.
Graydon Hoare [Sat, 18 Apr 2015 02:52:29 +0000 (19:52 -0700)]
Eliminate the obsolete term 'slot'.

9 years agoClean up section on Type aliases.
Graydon Hoare [Sat, 18 Apr 2015 02:29:20 +0000 (19:29 -0700)]
Clean up section on Type aliases.

9 years agoTrim florid language.
Graydon Hoare [Sat, 18 Apr 2015 02:24:28 +0000 (19:24 -0700)]
Trim florid language.

9 years agoTrim malformed sentence.
Graydon Hoare [Sat, 18 Apr 2015 02:22:19 +0000 (19:22 -0700)]
Trim malformed sentence.

9 years agoAuto merge of #23985 - erickt:derive-cleanup, r=erickt
bors [Sat, 18 Apr 2015 00:48:34 +0000 (00:48 +0000)]
Auto merge of #23985 - erickt:derive-cleanup, r=erickt

This extracts some of the minor cleanup patches from #23905.

9 years agoAdd long diagnostics for "bind by-ref and by-move"
Guillaume Gomez [Wed, 15 Apr 2015 10:31:56 +0000 (12:31 +0200)]
Add long diagnostics for "bind by-ref and by-move"

9 years agoAuto merge of #24500 - pnkfelix:oflo-checked-neg, r=nikomatsakis
bors [Fri, 17 Apr 2015 22:45:10 +0000 (22:45 +0000)]
Auto merge of #24500 - pnkfelix:oflo-checked-neg, r=nikomatsakis

Add conditional overflow-checking to signed negate operator.

I argue this can land independently of #24420 , because one can write the implementation of `wrapped_neg()` inline if necessary (as illustrated in two cases on this PR).

This needs to go into beta channel.

9 years agoAdd long diagnostics for E0015
Nick Hamann [Thu, 16 Apr 2015 05:47:31 +0000 (00:47 -0500)]
Add long diagnostics for E0015

9 years agoAdd long diagnostics for E0020
Nick Hamann [Thu, 16 Apr 2015 05:46:41 +0000 (00:46 -0500)]
Add long diagnostics for E0020

9 years agoAuto merge of #24461 - nikomatsakis:issue-22077-unused-lifetimes, r=aturon
bors [Fri, 17 Apr 2015 20:38:18 +0000 (20:38 +0000)]
Auto merge of #24461 - nikomatsakis:issue-22077-unused-lifetimes, r=aturon

This makes it illegal to have unconstrained lifetimes that appear in an associated type definition. Arguably, we should prohibit all unconstrained lifetimes -- but it would break various macros. It'd be good to evaluate how large a break change it would be. But this seems like the minimal change we need to do to establish soundness, so we should land it regardless. Another variant would be to prohibit all lifetimes that appear in any impl item, not just associated types. I don't think that's necessary for soundness -- associated types are different because they can be projected -- but it would feel a bit more consistent and "obviously" safe. I'll experiment with that in the meantime.

r? @aturon

Fixes #22077.

9 years agoAuto merge of #24524 - Manishearth:rollup, r=Manishearth
bors [Fri, 17 Apr 2015 18:29:48 +0000 (18:29 +0000)]
Auto merge of #24524 - Manishearth:rollup, r=Manishearth

9 years agoBump prerelease to .3
Brian Anderson [Fri, 17 Apr 2015 17:00:37 +0000 (10:00 -0700)]
Bump prerelease to .3

9 years agoAuto merge of #24475 - arielb1:i24363-hacky-hack, r=pnkfelix
bors [Fri, 17 Apr 2015 16:26:20 +0000 (16:26 +0000)]
Auto merge of #24475 - arielb1:i24363-hacky-hack, r=pnkfelix

Fix #24363

9 years agoRun valgrind with fair scheduling when available
Tamir Duberstein [Fri, 17 Apr 2015 14:45:16 +0000 (07:45 -0700)]
Run valgrind with fair scheduling when available

Closes #3914.

9 years agoClarify comment
Tamir Duberstein [Fri, 17 Apr 2015 14:35:35 +0000 (07:35 -0700)]
Clarify comment

9 years agoAddress nits
Niko Matsakis [Wed, 8 Apr 2015 23:31:20 +0000 (19:31 -0400)]
Address nits

9 years agoAdd licenses.
Niko Matsakis [Wed, 8 Apr 2015 22:53:56 +0000 (18:53 -0400)]
Add licenses.

9 years agoPort to use the new Unify code, which has no UnifyValue trait
Niko Matsakis [Tue, 7 Apr 2015 10:12:21 +0000 (06:12 -0400)]
Port to use the new Unify code, which has no UnifyValue trait
but is otherwise mostly the same.

9 years agoPort to using the newer graph, which offers iterators instead of the
Niko Matsakis [Tue, 7 Apr 2015 10:12:13 +0000 (06:12 -0400)]
Port to using the newer graph, which offers iterators instead of the
older `each` method, but is otherwise identical.

9 years agoUse the newer snapshot_vec, which has a simplified delegate
Niko Matsakis [Tue, 7 Apr 2015 10:11:49 +0000 (06:11 -0400)]
Use the newer snapshot_vec, which has a simplified delegate
interface since in practice no delegates had any state.

9 years agoAdd librustc_data_structures crate
Niko Matsakis [Tue, 7 Apr 2015 10:10:53 +0000 (06:10 -0400)]
Add librustc_data_structures crate

9 years agoFix some missing cases
Niko Matsakis [Fri, 17 Apr 2015 14:05:25 +0000 (10:05 -0400)]
Fix some missing cases

9 years agoAugment the constrainted parameter check to ensure that all regions
Niko Matsakis [Wed, 15 Apr 2015 10:11:18 +0000 (06:11 -0400)]
Augment the constrainted parameter check to ensure that all regions
which get mentioned in an associated type are constrained.  Arguably we
should just require that all regions are constrained, but that is more
of a breaking change.

9 years agoRewrite constrained type params code to operate generically over
Niko Matsakis [Wed, 15 Apr 2015 13:13:52 +0000 (09:13 -0400)]
Rewrite constrained type params code to operate generically over
multiple kinds of parameters (regions and types, specifically)

9 years agoCreate a struct to represent early-bound regions
Niko Matsakis [Wed, 15 Apr 2015 13:13:20 +0000 (09:13 -0400)]
Create a struct to represent early-bound regions

9 years agounit test for checked overflow during signed negation.
Felix S. Klock II [Fri, 17 Apr 2015 13:32:30 +0000 (15:32 +0200)]
unit test for checked overflow during signed negation.

9 years agoRemove info for path (fixup #24452)
Manish Goregaokar [Fri, 17 Apr 2015 10:17:38 +0000 (15:47 +0530)]
Remove info for path (fixup #24452)

9 years agoRollup merge of #24515 - steveklabnik:gh24070, r=Gankro
Manish Goregaokar [Fri, 17 Apr 2015 12:46:12 +0000 (18:16 +0530)]
Rollup merge of #24515 - steveklabnik:gh24070, r=Gankro

 Fixes #24070

or rather, fixes it even though it's already been fixed: slices are before now. But the linking is nice anyway.

9 years agoRollup merge of #24513 - j1n3l0:patch-1, r=alexcrichton
Manish Goregaokar [Fri, 17 Apr 2015 12:46:06 +0000 (18:16 +0530)]
Rollup merge of #24513 - j1n3l0:patch-1, r=alexcrichton

9 years agoRollup merge of #24510 - fhartwig:broken-links, r=nikomatsakis
Manish Goregaokar [Fri, 17 Apr 2015 12:45:59 +0000 (18:15 +0530)]
Rollup merge of #24510 - fhartwig:broken-links, r=nikomatsakis

 Fix broken links in various parts of the docs.
I also found a dead link [here](http://doc.rust-lang.org/nightly/alloc/boxed/) (the first link on the page), but the chapter of the book that it used to point at seems to be gone, and I'm not sure what should happen to that link.

9 years agoRollup merge of #24509 - steveklabnik:gh23962, r=nikomatsakis
Manish Goregaokar [Fri, 17 Apr 2015 12:45:54 +0000 (18:15 +0530)]
Rollup merge of #24509 - steveklabnik:gh23962, r=nikomatsakis

 FIxes #23962

9 years agoRollup merge of #24508 - steveklabnik:gh24228, r=alexcrichton
Manish Goregaokar [Fri, 17 Apr 2015 12:45:49 +0000 (18:15 +0530)]
Rollup merge of #24508 - steveklabnik:gh24228, r=alexcrichton

 Fixes #24228

9 years agoRollup merge of #24507 - steveklabnik:gh24185, r=alexcrichton
Manish Goregaokar [Fri, 17 Apr 2015 12:45:43 +0000 (18:15 +0530)]
Rollup merge of #24507 - steveklabnik:gh24185, r=alexcrichton

 Fixes #24185

9 years agoRollup merge of #24501 - frewsxcv:patch-14, r=steveklabnik
Manish Goregaokar [Fri, 17 Apr 2015 12:45:38 +0000 (18:15 +0530)]
Rollup merge of #24501 - frewsxcv:patch-14, r=steveklabnik

9 years agoRollup merge of #24499 - Munksgaard:methodcallee-debug, r=alexcrichton
Manish Goregaokar [Fri, 17 Apr 2015 12:45:33 +0000 (18:15 +0530)]
Rollup merge of #24499 - Munksgaard:methodcallee-debug, r=alexcrichton

 This fixes #24497

9 years agoRollup merge of #24498 - fhartwig:docs-fixes, r=steveklabnik
Manish Goregaokar [Fri, 17 Apr 2015 12:45:28 +0000 (18:15 +0530)]
Rollup merge of #24498 - fhartwig:docs-fixes, r=steveklabnik

9 years agoRollup merge of #24496 - aramvisser:patch-1, r=alexcrichton
Manish Goregaokar [Fri, 17 Apr 2015 12:45:20 +0000 (18:15 +0530)]
Rollup merge of #24496 - aramvisser:patch-1, r=alexcrichton

9 years agoRollup merge of #24494 - mvdnes:deterministic-sidebar, r=alexcrichton
Manish Goregaokar [Fri, 17 Apr 2015 12:45:14 +0000 (18:15 +0530)]
Rollup merge of #24494 - mvdnes:deterministic-sidebar, r=alexcrichton

 This ensures that later when generating HTML, the JSON will be sorted aswell.
We now have a more deterministic build of sidebar-items.js

Closes #24473

9 years agoRollup merge of #24493 - aethanyc:fix-stackoverflow-link, r=steveklabnik
Manish Goregaokar [Fri, 17 Apr 2015 12:45:00 +0000 (18:15 +0530)]
Rollup merge of #24493 - aethanyc:fix-stackoverflow-link, r=steveklabnik

 The document does not display properly if the link id contains a space.

9 years agoRollup merge of #24490 - lstat:doc-typo, r=alexcrichton
Manish Goregaokar [Fri, 17 Apr 2015 12:44:55 +0000 (18:14 +0530)]
Rollup merge of #24490 - lstat:doc-typo, r=alexcrichton

9 years agoRollup merge of #23782 - mvdnes:obsolete_note, r=alexcrichton
Manish Goregaokar [Fri, 17 Apr 2015 12:44:50 +0000 (18:14 +0530)]
Rollup merge of #23782 - mvdnes:obsolete_note, r=alexcrichton

 When emmitting a note, previously it was not known if the note was for an error or a
warning. If it was for a warning, then with `-Awarnings` it should not have been print.
The `emit_for` function allows someone to specify which level should determine its visibility.

An example:
```rust
extern crate \"std\" as std2;
fn main() {}
```

When compiling with `-Awarnings`, this would previously emit `note: use an identifier not in quotes instead` (and nothing else).
With this patch, it will be completely silent as expected.

9 years agoRollup merge of #24491 - bluss:rangefull-debug, r=huonw
Manish Goregaokar [Fri, 17 Apr 2015 12:44:44 +0000 (18:14 +0530)]
Rollup merge of #24491 - bluss:rangefull-debug, r=huonw

 Fix Debug impl for RangeFull

The Debug impl was using quotes, which was inconsistent:

    => (.., 1.., 2..3, ..4)
    (\"..\", 1.., 2..3, ..4)

Fix to use just ..

9 years agoRollup merge of #24475 - arielb1:i24363-hacky-hack, r=pnkfelix
Manish Goregaokar [Fri, 17 Apr 2015 12:44:39 +0000 (18:14 +0530)]
Rollup merge of #24475 - arielb1:i24363-hacky-hack, r=pnkfelix

 Fix #24363

9 years agoRollup merge of #24454 - aochagavia:debug, r=alexcrichton
Manish Goregaokar [Fri, 17 Apr 2015 12:44:22 +0000 (18:14 +0530)]
Rollup merge of #24454 - aochagavia:debug, r=alexcrichton

 Implement `Debug`, `Display` and `Error` for `FatalError` and `ExplicitBug`

9 years agoRollup merge of #24452 - tbu-:pr_file_path, r=aturon
Manish Goregaokar [Fri, 17 Apr 2015 12:44:17 +0000 (18:14 +0530)]
Rollup merge of #24452 - tbu-:pr_file_path, r=aturon

 Fixes #22190.

9 years agoRollup merge of #24430 - laumann:trace-macros-flag, r=pnkfelix
Manish Goregaokar [Fri, 17 Apr 2015 12:44:11 +0000 (18:14 +0530)]
Rollup merge of #24430 - laumann:trace-macros-flag, r=pnkfelix

 This is the second attempt at turning the trace_macros macro into a compiler flag.

See #22619

9 years agoWorkaround deliberate overflowing negation in serialize::json.
Felix S. Klock II [Thu, 16 Apr 2015 14:48:14 +0000 (16:48 +0200)]
Workaround deliberate overflowing negation in serialize::json.

9 years agoside-step potentially panic'ing negate in `fn abs`.
Felix S. Klock II [Wed, 15 Apr 2015 10:27:23 +0000 (12:27 +0200)]
side-step potentially panic'ing negate in `fn abs`.

9 years agoAdd conditional overflow-checking to signed negate operator.
Felix S. Klock II [Wed, 15 Apr 2015 00:19:52 +0000 (02:19 +0200)]
Add conditional overflow-checking to signed negate operator.

9 years agofactor out useful helper.
Felix S. Klock II [Wed, 15 Apr 2015 00:19:26 +0000 (02:19 +0200)]
factor out useful helper.

9 years agoEnforce 80 char lines in extended errors.
Michael Sproul [Wed, 15 Apr 2015 11:54:01 +0000 (21:54 +1000)]
Enforce 80 char lines in extended errors.

9 years agoUpdate/add messages for E0{267,268,296,303}.
Michael Sproul [Wed, 15 Apr 2015 08:12:28 +0000 (18:12 +1000)]
Update/add messages for E0{267,268,296,303}.

9 years agoValidate format of extended error descriptions.
Michael Sproul [Fri, 10 Apr 2015 22:14:38 +0000 (08:14 +1000)]
Validate format of extended error descriptions.

9 years agoAuto merge of #24512 - steveklabnik:rollup, r=steveklabnik
bors [Fri, 17 Apr 2015 05:52:35 +0000 (05:52 +0000)]
Auto merge of #24512 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #23782, #24455, #24490, #24493, #24494, #24496, #24498, #24499, #24501, #24502, #24506, #24507, #24508, #24509, #24510
- Failed merges: #24488