]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoDocument the free functions of std::iter
Steve Klabnik [Tue, 13 Oct 2015 18:46:17 +0000 (14:46 -0400)]
Document the free functions of std::iter

Flesh the docs out with examples.

8 years agoUnhide some code from the Traits section
Seeker14491 [Tue, 13 Oct 2015 18:45:10 +0000 (13:45 -0500)]
Unhide some code from the Traits section

Having this code section hidden is misleading because it makes it look like implementing Circle for Foo automatically makes Foo implement Shape.

8 years agoRollup merge of #29015 - dripton:master, r=alexcrichton
Steve Klabnik [Tue, 13 Oct 2015 17:09:53 +0000 (13:09 -0400)]
Rollup merge of #29015 - dripton:master, r=alexcrichton

Just a single-character typo fix.

8 years agoRollup merge of #29007 - dnwade:patch-2, r=alexcrichton
Steve Klabnik [Tue, 13 Oct 2015 17:09:53 +0000 (13:09 -0400)]
Rollup merge of #29007 - dnwade:patch-2, r=alexcrichton

r? @steveklabnik

8 years agoRollup merge of #28997 - bezelga:master, r=steveklabnik
Steve Klabnik [Tue, 13 Oct 2015 17:09:53 +0000 (13:09 -0400)]
Rollup merge of #28997 - bezelga:master, r=steveklabnik

Fixing some words in the beginning of the Ownership system chapters.

8 years agoRollup merge of #28990 - ahmedcharles:libarena, r=nrc
Steve Klabnik [Tue, 13 Oct 2015 17:09:53 +0000 (13:09 -0400)]
Rollup merge of #28990 - ahmedcharles:libarena, r=nrc

8 years agoRollup merge of #28989 - ahmedcharles:liballoc_system, r=nrc
Steve Klabnik [Tue, 13 Oct 2015 17:09:52 +0000 (13:09 -0400)]
Rollup merge of #28989 - ahmedcharles:liballoc_system, r=nrc

8 years agoRollup merge of #28988 - ahmedcharles:liballoc_jemalloc, r=nrc
Steve Klabnik [Tue, 13 Oct 2015 17:09:52 +0000 (13:09 -0400)]
Rollup merge of #28988 - ahmedcharles:liballoc_jemalloc, r=nrc

8 years agoAdd E0511 error explanation
Guillaume Gomez [Fri, 9 Oct 2015 13:59:10 +0000 (15:59 +0200)]
Add E0511 error explanation

8 years agofixups
Marcello Seri [Tue, 13 Oct 2015 14:12:34 +0000 (15:12 +0100)]
fixups

8 years agorustfmt libfmt_macros
Marcello Seri [Tue, 13 Oct 2015 14:10:51 +0000 (15:10 +0100)]
rustfmt libfmt_macros

8 years agoSome additional tests
Vadim Petrochenkov [Tue, 13 Oct 2015 14:00:47 +0000 (17:00 +0300)]
Some additional tests

8 years agoCorrect spelling in docs
Andrew Paseltiner [Tue, 13 Oct 2015 13:44:11 +0000 (09:44 -0400)]
Correct spelling in docs

8 years agoComment on the purpose(s) of NodeId in VariantData
Vadim Petrochenkov [Tue, 13 Oct 2015 13:18:33 +0000 (16:18 +0300)]
Comment on the purpose(s) of NodeId in VariantData

8 years agoMerge VariantData and VariantData_
Vadim Petrochenkov [Sat, 10 Oct 2015 00:28:40 +0000 (03:28 +0300)]
Merge VariantData and VariantData_

8 years agoFix rebase 2
Vadim Petrochenkov [Fri, 9 Oct 2015 20:32:37 +0000 (23:32 +0300)]
Fix rebase 2

8 years agoMerge struct fields and struct kind
Vadim Petrochenkov [Thu, 8 Oct 2015 20:45:46 +0000 (23:45 +0300)]
Merge struct fields and struct kind

8 years agoDict -> Struct, StructDef -> VariantData, def -> data
Vadim Petrochenkov [Thu, 8 Oct 2015 00:20:57 +0000 (03:20 +0300)]
Dict -> Struct, StructDef -> VariantData, def -> data

8 years agoFix rebase
Vadim Petrochenkov [Sun, 4 Oct 2015 10:11:56 +0000 (13:11 +0300)]
Fix rebase

8 years agoFix failing privacy test
Vadim Petrochenkov [Fri, 2 Oct 2015 21:18:48 +0000 (00:18 +0300)]
Fix failing privacy test

8 years agoTest and gate empty structures and variants better
Vadim Petrochenkov [Fri, 2 Oct 2015 19:41:24 +0000 (22:41 +0300)]
Test and gate empty structures and variants better

8 years agoProvide span for visit_struct_def + remove some dead code
Vadim Petrochenkov [Fri, 2 Oct 2015 17:06:59 +0000 (20:06 +0300)]
Provide span for visit_struct_def + remove some dead code

8 years agoRemove now redundant NodeId from Variant
Vadim Petrochenkov [Fri, 2 Oct 2015 13:14:20 +0000 (16:14 +0300)]
Remove now redundant NodeId from Variant

8 years agoDecouple structure kinds from NodeIds
Vadim Petrochenkov [Fri, 2 Oct 2015 00:53:28 +0000 (03:53 +0300)]
Decouple structure kinds from NodeIds

8 years agoUnify structures and enum variants in HIR
Vadim Petrochenkov [Thu, 1 Oct 2015 21:03:22 +0000 (00:03 +0300)]
Unify structures and enum variants in HIR

8 years agoUnify structures and enum variants in AST
Vadim Petrochenkov [Thu, 1 Oct 2015 15:47:27 +0000 (18:47 +0300)]
Unify structures and enum variants in AST

8 years agoMake the Metadata struct Clone
Ben S [Tue, 13 Oct 2015 12:06:00 +0000 (13:06 +0100)]
Make the Metadata struct Clone

This commit adds #[derive(Clone)] to std::fs::Metadata, making that struct
cloneable. Although the exact contents of that struct differ between OSes,
they all have it contain only value types, meaning that the data can be re-used without repercussions.

It also adds #[derive(Clone)] to every type used by that struct across all
OSes, including the various Unix `stat` structs and Windows's
`WIN32_FILE_ATTRIBUTE_DATA`.

8 years agoRustfmt-ing libarena.
Jose Narvaez [Tue, 13 Oct 2015 09:53:57 +0000 (10:53 +0100)]
Rustfmt-ing libarena.

8 years agoManually alligned comments.
Jose Narvaez [Tue, 13 Oct 2015 09:46:41 +0000 (10:46 +0100)]
Manually alligned comments.

8 years agoRe-running updated rustfmt on liblog.
Jose Narvaez [Tue, 13 Oct 2015 09:44:09 +0000 (10:44 +0100)]
Re-running updated rustfmt on liblog.

8 years agorustfmt suggested changes.
Jose Narvaez [Mon, 12 Oct 2015 10:28:54 +0000 (11:28 +0100)]
rustfmt suggested changes.

8 years agoUpdate test error compilation message for E0512
Guillaume Gomez [Tue, 13 Oct 2015 08:25:31 +0000 (10:25 +0200)]
Update test error compilation message for E0512

8 years agoReword note about missing trait implementation
Florian Hahn [Sun, 11 Oct 2015 22:25:50 +0000 (00:25 +0200)]
Reword note about missing trait implementation

8 years agoAvoid using getDataLayout, deprecated in LLVM 3.7
Seo Sanghyeon [Tue, 13 Oct 2015 06:11:59 +0000 (15:11 +0900)]
Avoid using getDataLayout, deprecated in LLVM 3.7

8 years agoTypo fix
David Ripton [Tue, 13 Oct 2015 03:24:27 +0000 (23:24 -0400)]
Typo fix

8 years agoAuto merge of #28993 - frewsxcv:regression-test-17336, r=alexcrichton
bors [Tue, 13 Oct 2015 03:19:11 +0000 (03:19 +0000)]
Auto merge of #28993 - frewsxcv:regression-test-17336, r=alexcrichton

Closes #17336

8 years agoRefactor attr::Stability
Vadim Petrochenkov [Tue, 13 Oct 2015 03:01:31 +0000 (06:01 +0300)]
Refactor attr::Stability

Stricter checking + enforcement of invariants at compile time

8 years agoFix Lifetime Elision link in lifetimes.md
Chris C Cerami [Tue, 13 Oct 2015 02:24:51 +0000 (22:24 -0400)]
Fix Lifetime Elision link in lifetimes.md

8 years agoAuto merge of #28987 - ahmedcharles:liballoc, r=brson
bors [Tue, 13 Oct 2015 00:37:09 +0000 (00:37 +0000)]
Auto merge of #28987 - ahmedcharles:liballoc, r=brson

8 years agotypo
Dan W. [Mon, 12 Oct 2015 22:29:20 +0000 (15:29 -0700)]
typo

8 years agowin64/msvc: large or oddly-sized types pass by-ref
Peter Marheine [Mon, 12 Oct 2015 22:23:47 +0000 (16:23 -0600)]
win64/msvc: large or oddly-sized types pass by-ref

8 years agorequire a method callee's type to outlive the call
Ariel Ben-Yehuda [Mon, 12 Oct 2015 20:37:52 +0000 (23:37 +0300)]
require a method callee's type to outlive the call

This rather crucial requirement was not checked. In most cases, that
didn't cause any trouble because the argument types are required to
outlive the call and are subtypes of a subformula of the callee type.

However, binary ops are taken by ref only indirectly, without it being
marked in the argument types, which led to the argument types not being
constrained anywhere causing spurious errors (as these are basically
unconstrainable, I don't think this change can break code). Of course,
the old way was also incorrent with contravariance, but that is still
unsound for other reasons.

This also improves rustc::front to get RUST_LOG to *somewhat* work.

Fixes #28999

8 years agoAuto merge of #28986 - ahmedcharles:error-index-generator, r=brson
bors [Mon, 12 Oct 2015 20:16:24 +0000 (20:16 +0000)]
Auto merge of #28986 - ahmedcharles:error-index-generator, r=brson

8 years agoAdd regression test for #22814
Corey Farwell [Mon, 12 Oct 2015 19:40:47 +0000 (15:40 -0400)]
Add regression test for #22814

Closes #22814

8 years agonormalize the types of foreign functions
Ariel Ben-Yehuda [Mon, 12 Oct 2015 18:50:57 +0000 (21:50 +0300)]
normalize the types of foreign functions

This is needed as item types are allowed to be unnormalized.

Fixes an ICE that occurs when foreign function signatures contained
an associated type.

Fixes #28983

8 years agoFix docs about borrowing and lifetimes
Fabiano Beselga [Mon, 12 Oct 2015 16:58:21 +0000 (13:58 -0300)]
Fix docs about borrowing and lifetimes

8 years agoAdd regression test for #17336
Corey Farwell [Mon, 12 Oct 2015 13:44:26 +0000 (09:44 -0400)]
Add regression test for #17336

Closes #17336

8 years agoAuto merge of #28914 - steveklabnik:doc_iterator, r=alexcrichton
bors [Mon, 12 Oct 2015 13:40:46 +0000 (13:40 +0000)]
Auto merge of #28914 - steveklabnik:doc_iterator, r=alexcrichton

This replaces what was there with a comprehensive overview.

Thanks to @hoverbear for suggesting that these docs needed improvement.

8 years agoWrite better module-level docs for std::iter
Steve Klabnik [Thu, 8 Oct 2015 19:34:14 +0000 (15:34 -0400)]
Write better module-level docs for std::iter

This replaces what was there with a comprehensive overview.

8 years agoDon't use a Vec in os::current_exe on FreeBSD.
Peter Marheine [Mon, 12 Oct 2015 10:37:28 +0000 (10:37 +0000)]
Don't use a Vec in os::current_exe on FreeBSD.

8 years agoAuto merge of #28985 - ahmedcharles:driver, r=nrc
bors [Mon, 12 Oct 2015 08:11:40 +0000 (08:11 +0000)]
Auto merge of #28985 - ahmedcharles:driver, r=nrc

8 years agoAdd notes for all potentially missing std::ops traits
Florian Hahn [Sat, 10 Oct 2015 11:03:18 +0000 (13:03 +0200)]
Add notes for all potentially missing std::ops traits

8 years agoRun rustfmt on error-index-generator.
Ahmed Charles [Mon, 12 Oct 2015 06:44:32 +0000 (23:44 -0700)]
Run rustfmt on error-index-generator.

8 years agoRun rustfmt on driver.
Ahmed Charles [Mon, 12 Oct 2015 06:41:43 +0000 (23:41 -0700)]
Run rustfmt on driver.

8 years agoRun rustfmt on liballoc_system.
Ahmed Charles [Mon, 12 Oct 2015 06:35:08 +0000 (23:35 -0700)]
Run rustfmt on liballoc_system.

8 years agoRun rustfmt on liballoc_jemalloc.
Ahmed Charles [Mon, 12 Oct 2015 05:18:51 +0000 (22:18 -0700)]
Run rustfmt on liballoc_jemalloc.

8 years agoRun rustfmt on liballoc.
Ahmed Charles [Mon, 12 Oct 2015 05:11:59 +0000 (22:11 -0700)]
Run rustfmt on liballoc.

8 years agoRemove the push_unsafe! and pop_unsafe! macros.
Nick Cameron [Mon, 12 Oct 2015 02:50:12 +0000 (15:50 +1300)]
Remove the push_unsafe! and pop_unsafe! macros.

This is a [breaking change].

8 years agoRun rustfmt on libarena.
Ahmed Charles [Mon, 12 Oct 2015 02:33:51 +0000 (19:33 -0700)]
Run rustfmt on libarena.

8 years agoAuto merge of #28969 - chrisccerami:link_to_ffi_in_concurrency_chapter, r=steveklabnik
bors [Sun, 11 Oct 2015 23:20:28 +0000 (23:20 +0000)]
Auto merge of #28969 - chrisccerami:link_to_ffi_in_concurrency_chapter, r=steveklabnik

8 years agoAuto merge of #28973 - nrc:match-source, r=Manishearth
bors [Sun, 11 Oct 2015 21:35:48 +0000 (21:35 +0000)]
Auto merge of #28973 - nrc:match-source, r=Manishearth

r? @Manishearth

8 years agoProperly set the MatchSource for for loops
Nick Cameron [Sun, 11 Oct 2015 20:49:29 +0000 (09:49 +1300)]
Properly set the MatchSource for for loops

8 years agoAuto merge of #28960 - barosl:home-temp-dir-doc, r=alexcrichton
bors [Sun, 11 Oct 2015 19:51:22 +0000 (19:51 +0000)]
Auto merge of #28960 - barosl:home-temp-dir-doc, r=alexcrichton

This concern was raised by #28940.

8 years agoAuto merge of #28948 - steveklabnik:gh28944, r=alexcrichton
bors [Sun, 11 Oct 2015 18:06:51 +0000 (18:06 +0000)]
Auto merge of #28948 - steveklabnik:gh28944, r=alexcrichton

"Crate features" isn't a thing in Rust, but you do need to add this line
to your crate root.

Fixes #28944

8 years agoLink to FFI in Concurrency chapter
Chris C Cerami [Sun, 11 Oct 2015 17:23:57 +0000 (13:23 -0400)]
Link to FFI in Concurrency chapter

8 years agoAuto merge of #28966 - ykomatsu:trpl, r=steveklabnik
bors [Sun, 11 Oct 2015 16:20:13 +0000 (16:20 +0000)]
Auto merge of #28966 - ykomatsu:trpl, r=steveklabnik

8 years agoAuto merge of #28964 - eminence:docfix, r=sfackler
bors [Sun, 11 Oct 2015 14:32:45 +0000 (14:32 +0000)]
Auto merge of #28964 - eminence:docfix, r=sfackler

r? @steveklabnik

8 years agoFix some typos
Yoshito Komatsu [Sun, 11 Oct 2015 13:38:44 +0000 (22:38 +0900)]
Fix some typos

8 years agoAuto merge of #28965 - bluss:ptr-write-doc, r=huonw
bors [Sun, 11 Oct 2015 11:45:26 +0000 (11:45 +0000)]
Auto merge of #28965 - bluss:ptr-write-doc, r=huonw

core: Update the safety docs for core::ptr::write

Updated to reflect that not dropping a value is safe (but discouraged).

8 years agocore: Update the safety docs for core::ptr::write
Ulrik Sverdrup [Sun, 11 Oct 2015 11:40:47 +0000 (13:40 +0200)]
core: Update the safety docs for core::ptr::write

Updated to reflect that not dropping a value is safe (but discouraged).

8 years agoImprove E0512 error message
Guillaume Gomez [Sat, 10 Oct 2015 21:21:08 +0000 (23:21 +0200)]
Improve E0512 error message

8 years agoTrivial typo fix: from_utrf8 should be from_utf8
Andrew Chin [Sun, 11 Oct 2015 03:32:35 +0000 (23:32 -0400)]
Trivial typo fix:  from_utrf8 should be from_utf8

8 years agoClarify the behavior of `std::env::home_dir` and `std::env::temp_dir`
Barosl Lee [Sat, 10 Oct 2015 18:50:26 +0000 (03:50 +0900)]
Clarify the behavior of `std::env::home_dir` and `std::env::temp_dir`

This concern was raised by #28940.

8 years agoAuto merge of #28941 - jcaudle:rustfmt/librand-distributions-normal, r=nrc
bors [Sat, 10 Oct 2015 22:39:35 +0000 (22:39 +0000)]
Auto merge of #28941 - jcaudle:rustfmt/librand-distributions-normal, r=nrc

This is my first PR to rust and first collaboration on a rust project, but I think the formatting looked ok. If this works out, I hope to go through more of librand.

8 years agoAuto merge of #28949 - iwillspeak:rustfmt-libflate, r=nrc
bors [Sat, 10 Oct 2015 19:55:37 +0000 (19:55 +0000)]
Auto merge of #28949 - iwillspeak:rustfmt-libflate, r=nrc

This commit updates the libflate crate with the formatting output of
`rustfmt`.

r? @nrc

8 years agoUpdate Libflate Formatting
Will Speak [Sat, 10 Oct 2015 18:00:20 +0000 (19:00 +0100)]
Update Libflate Formatting

This commit updates the libflate crate with the formatting output of
`rustfmt`.

8 years agoDiagnostic change: crate features -> crate root
Steve Klabnik [Sat, 10 Oct 2015 17:35:40 +0000 (13:35 -0400)]
Diagnostic change: crate features -> crate root

"Crate features" isn't a thing in Rust, but you do need to add this line
to your crate root.

Fixes #28944

8 years agoAuto merge of #28945 - shama:doc-typos, r=steveklabnik
bors [Sat, 10 Oct 2015 16:40:05 +0000 (16:40 +0000)]
Auto merge of #28945 - shama:doc-typos, r=steveklabnik

Just a few typos found in the docs. Thanks!

8 years agodoc: fixing typos
Kyle Robinson Young [Sat, 10 Oct 2015 16:15:55 +0000 (09:15 -0700)]
doc: fixing typos

8 years agoAuto merge of #28922 - panicbit:trpl-missing-docs, r=steveklabnik
bors [Sat, 10 Oct 2015 14:51:42 +0000 (14:51 +0000)]
Auto merge of #28922 - panicbit:trpl-missing-docs, r=steveklabnik

8 years agoAuto merge of #28938 - GlenDC:master, r=Manishearth
bors [Sat, 10 Oct 2015 12:02:24 +0000 (12:02 +0000)]
Auto merge of #28938 - GlenDC:master, r=Manishearth

Here is my attempt to resolve issue #28822, @Manishearth.
Please let me know if it's fine. And if not, what should I do instead?

This issue felt like quite a good start for some rust contributions. It allows me to get used to the workflow  and codebase of rust in an easy-to-swallow manner. Are there any other issues you would recommend me to look at? :) Would love to do some more stuff!

8 years agoWhitelisting PatWild for E0022. Fix #28822
glendc [Sat, 10 Oct 2015 00:01:42 +0000 (00:01 +0000)]
Whitelisting PatWild for E0022. Fix #28822

8 years agoAuto merge of #28930 - steveklabnik:update_pr, r=steveklabnik
bors [Sat, 10 Oct 2015 07:56:49 +0000 (07:56 +0000)]
Auto merge of #28930 - steveklabnik:update_pr, r=steveklabnik

https://github.com/rust-lang/rust/pull/27813#issuecomment-146842041

8 years agoAuto merge of #28920 - dotdash:const_align, r=eddyb
bors [Sat, 10 Oct 2015 06:07:40 +0000 (06:07 +0000)]
Auto merge of #28920 - dotdash:const_align, r=eddyb

For enum variants, the default alignment for a specific variant might be
lower than the alignment of the enum type itself. In such cases we, for
example, generate memcpy calls with an alignment that's higher than the
alignment of the constant we copy from.

To avoid that, we need to explicitly set the required alignment on
constants.

Fixes #28912.

8 years agoAuto merge of #28928 - ykomatsu:trpl, r=Manishearth
bors [Sat, 10 Oct 2015 04:15:33 +0000 (04:15 +0000)]
Auto merge of #28928 - ykomatsu:trpl, r=Manishearth

8 years agoRun rustfmt on librand/distributions/normal.rs
Joseph Caudle [Sat, 10 Oct 2015 04:01:57 +0000 (00:01 -0400)]
Run rustfmt on librand/distributions/normal.rs

8 years agoAuto merge of #28932 - barosl:empty-comment, r=alexcrichton
bors [Sat, 10 Oct 2015 02:29:37 +0000 (02:29 +0000)]
Auto merge of #28932 - barosl:empty-comment, r=alexcrichton

Previously, `/**/` was incorrectly regarded as a doc comment because it starts with `/**` and ends with `*/`. However, this caused an ICE because some code assumed that the length of a doc comment is at least 5. This commit adds an additional check to `is_block_doc_comment` that tests the length of the input.

Fixes #28844.

8 years agoAuto merge of #28861 - pnkfelix:fsk-nonparam-dropck-issue28498, r=arielb1
bors [Sat, 10 Oct 2015 00:39:29 +0000 (00:39 +0000)]
Auto merge of #28861 - pnkfelix:fsk-nonparam-dropck-issue28498, r=arielb1

implement RFC 1238: nonparametric dropck.

cc #28498

cc @nikomatsakis

8 years agoSet proper alignment on constants
Björn Steinbrink [Thu, 8 Oct 2015 23:26:21 +0000 (01:26 +0200)]
Set proper alignment on constants

For enum variants, the default alignment for a specific variant might be
lower than the alignment of the enum type itself. In such cases we, for
example, generate memcpy calls with an alignment that's higher than the
alignment of the constant we copy from.

To avoid that, we need to explicitly set the required alignment on
constants.

Fixes #28912.

8 years agoAuto merge of #28049 - steveklabnik:doc_write, r=alexcrichton
bors [Fri, 9 Oct 2015 22:15:24 +0000 (22:15 +0000)]
Auto merge of #28049 - steveklabnik:doc_write, r=alexcrichton

8 years agoUse a proper C string for the gdb script section name
Björn Steinbrink [Fri, 9 Oct 2015 20:20:56 +0000 (22:20 +0200)]
Use a proper C string for the gdb script section name

8 years agoAdd notes for missing PartialEq and PartialOrd, closes #28837
Florian Hahn [Fri, 9 Oct 2015 20:42:46 +0000 (22:42 +0200)]
Add notes for missing PartialEq and PartialOrd, closes #28837

8 years agoPrevent `/**/` from being parsed as a doc comment
Barosl Lee [Wed, 7 Oct 2015 22:25:59 +0000 (07:25 +0900)]
Prevent `/**/` from being parsed as a doc comment

Previously, `/**/` was incorrectly regarded as a doc comment because it
starts with `/**` and ends with `*/`. However, this caused an ICE
because some code assumed that the length of a doc comment is at least
5. This commit adds an additional check to `is_block_doc_comment` that
tests the length of the input.

Fixes #28844.

8 years agoAuto merge of #28926 - DanielKeep:syntax-index, r=steveklabnik
bors [Fri, 9 Oct 2015 19:28:43 +0000 (19:28 +0000)]
Auto merge of #28926 - DanielKeep:syntax-index, r=steveklabnik

The intent with this chapter is to have a central place where users can
go to find out what a random bit of syntax means, be it a keyword,
symbol, or some unusual bit of composite syntax (like `for <...>`).  This
should be useful both for new users (who may not know what to call this
weird `'blah` thing), and for experienced users (who may just wish to
link someone to the appropriate section on `Trait + Trait` bounds).

Where possible, entries have been linked to an appropriate section of
the book which explains the syntax.  This was not possible in all cases.
If an entry is missing links, that's because I was unable to *find*
anything appropriate to link to.

This commit should include all stable keywords, operators and symbols,
as well as a selection of potentially confusing or unusual syntax.

8 years agoImprove docs for write!/writeln! macros
Steve Klabnik [Thu, 27 Aug 2015 18:24:53 +0000 (14:24 -0400)]
Improve docs for write!/writeln! macros

8 years agoAuto merge of #28929 - pnkfelix:expand-legal-cycles-test, r=alexcrichton
bors [Fri, 9 Oct 2015 17:07:48 +0000 (17:07 +0000)]
Auto merge of #28929 - pnkfelix:expand-legal-cycles-test, r=alexcrichton

Major revision to the dropck_legal_cycles test.

1. Added big comment block explaining the test framework.

2. Added tests exericising Rc and Arc. This was inspired by a comment
   from eefriedman on PR #28861.

3. Made the cycle-detection not issue false-positives on acyclic dags.

   Doing this efficiently required revising the framework; instead of
   visiting all children (i.e. doing a traversal), now each test is
   responsible for supplying the path that will act as a witness to
   the cycle.

   Luckily for me, all of the pre-existing tests worked with a trivial
   path built from "always tke your first left", but new tests I added
   did require other input paths (i.e., "first turn right, then left".

   (The path representation is a bit-string and its branches are
    n-ary, not word phrases and binary branches as you might think
    from the outline above.)

cc PR #27185

8 years agoreview comment: further refinement of comment above `fn is_adt_dtorck`.
Felix S. Klock II [Fri, 9 Oct 2015 16:42:14 +0000 (18:42 +0200)]
review comment: further refinement of comment above `fn is_adt_dtorck`.

8 years agoAdded the param-blindness attribute to `Rc` and `Arc`.
Felix S. Klock II [Fri, 9 Oct 2015 16:03:31 +0000 (18:03 +0200)]
Added the param-blindness attribute to `Rc` and `Arc`.

This was proven necessary after I added `Rc` and `Arc` to the rpass
test `dropck_legal_cycles.rs`; see PR #28929.

8 years agoSome tidying up
Jonathan Hansford [Tue, 18 Aug 2015 19:37:27 +0000 (20:37 +0100)]
Some tidying up

Improving the use of 2nd and 3rd person
Adding a few contractions to make the text less formal
Tidying up some notes
Providing a little bit more clarification for Windows users

8 years ago2nd to 3rd person
Jonathan Hansford [Thu, 13 Aug 2015 17:22:16 +0000 (18:22 +0100)]
2nd to 3rd person

Replacing all references to the 2nd person with references to the 3rd
person (excluding `authors = [ "Your name <you@example.com>" ]` and
`file:///home/yourname/projects/hello_world` in `hello-cargo.md`)