about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2016-03-13Add is_documentation for IPv6Abhishek Chanda-19/+29
This function returns true if the given IPv6 is reserved for documentation. Also, reject this block in the is_global check
2016-03-13Auto merge of #32211 - achanda:ipv6-global, r=alexcrichtonbors-1/+3
Reject unspecified IP from global Also fixed the test
2016-03-13Auto merge of #32227 - jseyfried:fix_import_resolution_bug, r=alexcrichtonbors-22/+61
Fix import resolution bug This fixes #32222, which was introduced in #31726.
2016-03-13Auto merge of #32184 - ollie27:win_stdout, r=alexcrichtonbors-23/+21
Fixup stout/stderr on Windows WriteConsoleW can fail if called with a large buffer so we need to slice any stdout/stderr output. However the current slicing has a few problems: 1. It slices by byte but still expects valid UTF-8. 2. The slicing happens even when not outputting to a console. 3. panic! output is not sliced. This fixes these issues by moving the slice to right before WriteConsoleW and slicing on a char boundary.
2016-03-13Auto merge of #32229 - Manishearth:rollup, r=Manishearthbors-11/+53
Rollup of 4 pull requests - Successful merges: #32164, #32179, #32212, #32218 - Failed merges:
2016-03-13Rollup merge of #32218 - cantino:minor_book_typo_fixes, r=steveklabnikManish Goregaokar-4/+4
Fix minor typos in doc.rust-lang.org/book I've made a few typo and grammar fixes as I've been working through the book.
2016-03-13Rollup merge of #32212 - Manishearth:ice-cu, r=eddybManish Goregaokar-0/+4
Don't allow values for codegen-units less than 1 r? @eddyb fixes #32191
2016-03-13Rollup merge of #32179 - srinivasreddy:remove_int_suffix, r=steveklabnikManish Goregaokar-5/+5
Removed integer suffixes in libsyntax crate
2016-03-13Rollup merge of #32164 - nikomatsakis:fewer-errors, r=eddybManish Goregaokar-2/+40
Do not report errors from regionck if other errors were already reported Do not report errors from regionck if other errors were already reported during the lifetime of this inferencer. Fixes #30580. r? @arielb1
2016-03-13Auto merge of #31916 - nagisa:mir-passmgr-2, r=arielb1bors-265/+246
Add Pass manager for MIR A new PR, since rebasing the original one (https://github.com/rust-lang/rust/pull/31448) properly was a pain. Since then there has been several changes most notable of which: 1. Removed the pretty-printing with `#[rustc_mir(graphviz/pretty)]`, mostly because we now have `--unpretty=mir`, IMHO that’s the direction we should expand this functionality into; 2. Reverted the infercx change done for typeck, because typeck can make an infercx for itself by being a `MirMapPass` r? @nikomatsakis
2016-03-13Add regression test for #32222Jeffrey Seyfried-0/+34
2016-03-13Fixes #32222Jeffrey Seyfried-8/+6
2016-03-13Refactor out methods `NameResolution::increment_outstanding_references` andJeffrey Seyfried-15/+22
`NameResolution::decrement_outstanding_references`.
2016-03-13Auto merge of #32182 - bluss:string-from-is-str-owned, r=alexcrichtonbors-14/+2
Call str::to_owned in String::from and uninline it Call str::to_owned in String::from and uninline it These methods were already effectively equal, but now one calls the other, and neither is marked inline. String::from does not need to be inlined, it can be without it just like str::to_owned and String::clone are. Fixes #32163
2016-03-13Call str::to_owned in String::from and uninline itUlrik Sverdrup-14/+2
String::from does not need to be inlined, it can be without it just like str::to_owned and String::clone are.
2016-03-12Auto merge of #32141 - jseyfried:fix_resolution_in_lexical_scopes, ↵bors-111/+75
r=nikomatsakis Fix name resolution in lexical scopes Currently, `resolve_item_in_lexical_scope` does not check the "ribs" (type parameters and local variables). This can allow items that should be shadowed by type parameters to be named. For example, ```rust struct T { i: i32 } fn f<T>() { let t = T { i: 0 }; // This use of `T` resolves to the struct, not the type parameter } mod Foo { pub fn f() {} } fn g<Foo>() { Foo::f(); // This use of `Foo` resolves to the module, not the type parameter } ``` This PR changes `resolve_item_in_lexical_scope` so that it fails when the item is shadowed by a rib (fixes #32120). This is a [breaking-change], but it looks unlikely to cause breakage in practice. r? @nikomatsakis
2016-03-12Auto merge of #32140 - ruud-v-a:avx-intrinsics, r=alexcrichtonbors-0/+113
Add AVX broadcast and conversion intrinsics This adds the following intrinsics: * `_mm256_broadcast_pd` * `_mm256_broadcast_ps` * `_mm256_cvtepi32_pd` * `_mm256_cvtepi32_ps` * `_mm256_cvtpd_epi32` * `_mm256_cvtpd_ps` * `_mm256_cvtps_epi32` * `_mm256_cvtps_pd` * `_mm256_cvttpd_epi32` * `_mm256_cvttps_epi32` The "avx" codegen feature must be enabled to use these.
2016-03-12Reject unspecified and loopback IP from globalAbhishek Chanda-1/+3
2016-03-12Auto merge of #32112 - alexcrichton:fix-issues, r=aturonbors-2477/+476
std: Fix tracking issues and clean deprecated APIs This PR fixes up a number of discrepancies found with tracking issues (some closed, some needed new ones, etc), and also cleans out all pre-1.8 deprecated APIs. The big beast here was dealing with `std::dynamic_lib`, and via many applications of a large hammer it's now out of the standard library.
2016-03-12Fix minor typos in doc.rust-lang.org/bookAndrew Cantino-4/+4
2016-03-12std: Clean out deprecated APIsAlex Crichton-2449/+447
Removes all unstable and deprecated APIs prior to the 1.8 release. All APIs that are deprecated in the 1.8 release are sticking around for the rest of this cycle. Some notable changes are: * The `dynamic_lib` module was moved into `rustc_back` as the compiler still relies on a few bits and pieces. * The `DebugTuple` formatter now special-cases an empty struct name with only one field to append a trailing comma.
2016-03-12Auto merge of #32193 - eddyb:stage1-is-useful-mkay, r=eddybbors-0/+2
Statically link run-pass/command-before-exec so it passes not just whenever we happen to bootstrap perfectly.
2016-03-12Implement --unpretty mir-cfg for graphviz outputSimonas Kazlauskas-59/+68
Also change output for --unpretty mir to output function names in a prettier way.
2016-03-12Auto merge of #32142 - mitaa:rdoc-maybe-inline-local, r=alexcrichtonbors-14/+94
rustdoc: improve crate-local inlining fixes #28537 r? @alexcrichton
2016-03-12Statically link run-pass/command-before-exec so it passes not just whenever ↵Eduard Burtescu-0/+2
we happen to bootstrap perfectly.
2016-03-12Don't allow values for codegen-units less than 1 (fixes #32191)Manish Goregaokar-0/+4
2016-03-11std: Add a tracking issue for Peekable::is_emptyAlex Crichton-1/+1
The listed tracking issue was hooked up to the wrong location by accident.
2016-03-11core: Make a new tracking issue for prelude traitsAlex Crichton-7/+7
The referenced issues here were both closed, so hook up a new issue which tracks specifically the prelude traits being unstable.
2016-03-11core: Mark Wrapping impls as stableAlex Crichton-5/+5
These are all insta-stable anyway, so just properly tag them.
2016-03-11std: Remove unstable from ReentrantMutexAlex Crichton-3/+0
This isn't exported so it doesn't need a tag.
2016-03-11test: Move some test outputs into $(TMPDIR)Alex Crichton-8/+12
Don't want to pollute the source tree!
2016-03-11alloc: Add unstable issue for FnBox APIsAlex Crichton-4/+4
2016-03-11Auto merge of #31925 - aturon:inherent-overlap, r=nikomatsakisbors-109/+253
Forbid items with the same name from appearing in overlapping inherent impl blocks For example, the following is now correctly illegal: ```rust struct Foo; impl Foo { fn id() {} } impl Foo { fn id() {} } ``` "Overlapping" here is determined the same way it is for traits (and in fact shares the same code path): roughly, there must be some way of substituting any generic types to unify the impls, such that none of the `where` clauses are provably unsatisfiable under such a unification. Along the way, this PR also introduces an `ImplHeader` abstraction (the first commit) that makes it easier to work with impls abstractly (without caring whether they are trait or inherent impl blocks); see the first commit. Closes #22889 r? @nikomatsakis
2016-03-12Further simplify Windows stdout/stderrOliver Middleton-13/+8
This makes it output as much valid UTF-8 as it can then return failure.
2016-03-12Removed integer suffixes in libsyntax cratesrinivasreddy-5/+5
2016-03-11Auto merge of #32200 - Manishearth:rollup, r=Manishearthbors-69/+279
Rollup of 11 pull requests - Successful merges: #32137, #32158, #32171, #32174, #32178, #32179, #32180, #32181, #32183, #32186, #32197 - Failed merges:
2016-03-12Rollup merge of #32197 - andoriyu:patch-1, r=alexcrichtonManish Goregaokar-0/+1
Add FreeBSD amd64 snapshot Snapshot itself: https://github.com/dhuseby/rust-manual-snapshots/pull/3
2016-03-12Rollup merge of #32186 - srinivasreddy:libcoretest, r=steveklabnikManish Goregaokar-23/+23
cleanup int suffixes in libcoretest
2016-03-12Rollup merge of #32183 - bluss:doc-index, r=alexcrichtonManish Goregaokar-0/+58
Clarify doc for slice slicing (Index impls) Clarify doc for slice slicing (Index impls) This is a follow up for PR #32099 and #32057
2016-03-12Rollup merge of #32181 - srinivasreddy:librustfront, r=steveklabnikManish Goregaokar-2/+2
removed suffixes for librustc_front
2016-03-12Rollup merge of #32180 - srinivasreddy:type_check_lib, r=steveklabnikManish Goregaokar-3/+3
removed integer suffixes in librustc_typeck crate
2016-03-11Comment `resolve_item_in_lexical_scope`Jeffrey Seyfried-1/+8
2016-03-11Auto merge of #32132 - arcnmx:cargobuild-std-target, r=alexcrichtonbors-5/+5
cover more linux targets in libstd cargobuild libstd/build.rs checked the target name against `"unknown-linux"`... That doesn't necessarily apply to all Linux targets as some toolchains for embedded targets will change that `unknown` field to some vendor name. Some shifting around was needed since Android is also a Linux target. r? @alexcrichton
2016-03-11Adjust rustdoc test for new restrictionAaron Turon-3/+3
2016-03-12Rollup merge of #32178 - naltun:patch-1, r=steveklabnikManish Goregaokar-13/+1
Update getting-started.md In `rustc 1.7.0` the message that is displayed is now `Rust is ready to roll.`
2016-03-12Rollup merge of #32174 - cmbrandenburg:spell_fix, r=steveklabnikManish Goregaokar-3/+3
Spell fixes for std::ffi doc comments
2016-03-12Rollup merge of #32171 - frewsxcv:compiletest, r=alexcrichtonManish Goregaokar-16/+14
Fix a couple compiletest nits.
2016-03-12Rollup merge of #32158 - seanmonstar:dead-associated-type, r=alexcrichtonManish Goregaokar-9/+30
lint: mark associated types as live for the dead_code pass Associated types of trait impls were being excluded from the live list. So types that only appeared in trait impls were being marked as dead code.
2016-03-12Rollup merge of #32137 - nathankleyn:improve-docs-for-binaryheap, r=steveklabnikManish Goregaokar-0/+144
Add missing documentation examples for BinaryHeap. As part of the ongoing effort to document all methods with examples, this commit adds the missing examples for the `BinaryHeap` collection type. This is part of issue #29348. r? @steveklabnik
2016-03-11Adjust tests to new error messageAaron Turon-8/+8