about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-02-07Fix broken link to std::rc module docsCaspar Krieger-2/+2
Current link structure is /std/rc/struct.Rc.html so ../index.html ends up linking to /std/ rather than /std/rc/
2015-02-07Auto merge of #21978 - Potpourri:error-extern-crate-staticlib, r=alexcrichtonbors-5/+61
Add special error for this case and help message `please recompile this crate using --crate-type lib`, also list found candidates. See issue #14416 r? @alexcrichton
2015-02-07Auto merge of #21949 - japaric:index, r=nikomatsakisbors-46/+14
closes #21630 Overloaded indexing (`&[mut] foo[bar]`) only works when `<Self as Index>::Output` is the same as `<Self as IndexMut>::Output` (see issue above). To restrict implementations of `IndexMut` that doesn't work, this PR makes `IndexMut` a supertrait over `Index`, i.e. `trait IndexMut<I>: Index<I>`, just like in the `trait DerefMut: Deref` case. This breaks all downstream implementations of `IndexMut`, in most cases this simply means removing the `type Output = ..` bit, which is now redundant, from `IndexMut` implementations: ``` diff impl Index<Foo> for Bar { type Output = Baz; .. } impl IndexMut<Foo> for Bar { - type Output = Baz; .. } ``` [breaking-change] --- r? @nikomatsakis
2015-02-06make `IndexMut` a super trait over `Index`Jorge Aparicio-46/+14
closes #21630
2015-02-07Auto merge of #21505 - GuillaumeGomez:interned_string, r=alexcrichtonbors-300/+295
It's in order to make the code more homogeneous.
2015-02-06Auto merge of #21997 - Manishearth:rollup, r=alexcrichtonbors-2032/+2054
None
2015-02-06librustdoc has been updatedGuillaumeGomez-31/+33
Fixes run build error Fix test failure Fix tests' errors
2015-02-06Auto merge of #21926 - mzabaluev:raw-lifetime, r=alexcrichtonbors-32/+82
New functions, `slice::from_raw_parts` and `slice::from_raw_parts_mut`, are added to implement the lifetime convention as agreed in rust-lang/rfcs#556. The functions `slice::from_raw_buf` and `slice::from_raw_mut_buf` are left deprecated for the time being. Holding back on changing the signature of `std::ffi::c_str_to_bytes` as consensus in rust-lang/rfcs#592 is building to replace it with a composition of other functions. Contribution to #21923.
2015-02-07Rollup merge of #22009 - japaric:no-mov, r=alexcrichtonManish Goregaokar-170/+1
If you were still using `MaybeOwnedVector`, update your code to use `CowVec`. [breaking-change] --- We already removed `MaybeOwned` (the string equivalent) long time ago and with a much shorter deprecation period. It's time to let go.
2015-02-07Rollup merge of #22005 - nagisa:obsolete-ctx, r=alexcrichtonManish Goregaokar-3/+3
The word is repeated twice in the message like: error: obsolete syntax: `:`, `&mut:`, or `&:` syntax This removes the word syntax that appears in messages after the second colon (:).
2015-02-07Rollup merge of #21994 - iKevinY:featureck-fix, r=brsonManish Goregaokar-2/+2
It seems that `lang_feature_stats` was supposed to refer to `language_feature_stats` instead. r? @brson
2015-02-07fix outdated docsAlexis-88/+88
Conflicts: src/libstd/collections/mod.rs
2015-02-07fix outdated docsAlexis-9/+9
Conflicts: src/libstd/collections/mod.rs
2015-02-06More libcollections fixesManish Goregaokar-3/+3
2015-02-06Auto merge of #21860 - mdinger:enum_rewording, r=steveklabnikbors-93/+90
Second try to address https://github.com/rust-lang/rust/issues/21196 . A lot that was removed at the end basically seemed repetitive showing simple variations on the same type. It seems more effective to just show more variants at the beginning instead. If you want to pack values into an example, better to use `i32` or some digit than `String` because you don't need the `to_string()` method. I didn't mention `derive` because: * I can't explain it (only use it) * I don't have a link to a good description (maybe rustbyexample but you probably want links internal) * Giving more detail especially stating that `==` won't work and why should help quite a bit I didn't `make test` or check links but I will if this will be merged. @steveklabnik
2015-02-06remove the deprecated MaybeOwnedVectorJorge Aparicio-170/+1
2015-02-06Remove word syntax from obsolete syntax messagesSimonas Kazlauskas-3/+3
The word is repeated twice in the message like error: obsolete syntax: `:`, `&mut:`, or `&:` syntax This removes the word syntax that appears in messages after the second colon (:).
2015-02-06Rollup merge of #21991 - steveklabnik:gh21915, r=huonwManish Goregaokar-1/+1
Fixes #21915
2015-02-06rm unused featureManish Goregaokar-1/+0
2015-02-06libcollections: unit test fixesManish Goregaokar-2/+4
2015-02-06remove int_uint feature from libcollectionsAlexis-12/+12
2015-02-06Rollup merge of #21989 - steveklabnik:gh21491, r=GankroManish Goregaokar-1/+1
Fixes #21491 r? @kmcallister @Gankro
2015-02-06Auto merge of #21962 - vrinek:printable-book, r=steveklabnikbors-100/+47
Tested on: * Safari on OSX * Firefox on OSX
2015-02-06Fix infinite loop errorGuillaumeGomez-1/+1
2015-02-06Remove getenv warningGuillaumeGomez-4/+3
2015-02-06Update to last version, remove "[]" as much as possibleGuillaumeGomez-115/+114
2015-02-06librustc_driver has been updatedGuillaumeGomez-1/+1
2015-02-06librustc_trans has been updatedGuillaumeGomez-63/+63
2015-02-06librustc_resolve has been updatedGuillaumeGomez-25/+25
2015-02-06librustc_typeck has been updatedGuillaumeGomez-10/+10
2015-02-06librustc_borrowck has been updatedGuillaumeGomez-2/+2
2015-02-06librustc has been updatedGuillaumeGomez-66/+62
2015-02-06Libsyntax has been updatedGuillaumeGomez-121/+93
2015-02-06Update HEAD:masterGuillaumeGomez-1/+1
2015-02-06Replace the get method by the deref one on InternedStringGuillaumeGomez-104/+123
2015-02-06Add Str trait to InternedString, set get method deprecatedGuillaumeGomez-0/+8
2015-02-06Rollup merge of #21968 - nikomatsakis:issue-21965-duplicate-preds-in-env, ↵Manish Goregaokar-28/+125
r=pnkfelix We were already building a hashset to check for duplicates, but we assumed that the initial vector had no duplicates. Fixes #21965. r? @pnkfelix
2015-02-06Rollup merge of #21966 - scialex:fix-extern, r=alexcrichtonManish Goregaokar-1/+44
Also added test for it. Fixes #21928
2015-02-06Rollup merge of #21958 - brson:stable-features, r=alexcrichtonManish Goregaokar-23/+77
.... The 'stable_features' lint helps people progress from unstable to stable Rust by telling them when they no longer need a `feature` attribute because upstream Rust has declared it stable. This compares to the existing 'unstable_features' lint, which is used to implement feature staging, and triggers on *any* use of `#[feature]`.
2015-02-06Rollup merge of #21926 - mzabaluev:raw-lifetime, r=alexcrichtonManish Goregaokar-32/+82
New functions, `slice::from_raw_parts` and `slice::from_raw_parts_mut`, are added to implement the lifetime convention as agreed in rust-lang/rfcs#556. The functions `slice::from_raw_buf` and `slice::from_raw_mut_buf` are left deprecated for the time being. Holding back on changing the signature of `std::ffi::c_str_to_bytes` as consensus in rust-lang/rfcs#592 is building to replace it with a composition of other functions. Contribution to #21923.
2015-02-06Rollup merge of #21969 - Gankro:collections-cleanup, r=alexcrichtonManish Goregaokar-1490/+1455
This is 99% burning ints to the ground, but I also got rid of useless annotations or made code more \"idiomatic\" as I went along. Mostly changes in tests.
2015-02-06Rollup merge of #21924 - steveklabnik:fix_try_docs, r=huonwManish Goregaokar-2/+2
This is now a Result, not an Option.
2015-02-06Rollup merge of #21925 - sfackler:allow-missing-copy, r=alexcrichtonManish Goregaokar-61/+2
This was particularly helpful in the time just after OIBIT's implementation to make sure things that were supposed to be Copy continued to be, but it's now creates a lot of noise for types that intentionally don't want to be Copy. r? @alexcrichton
2015-02-06Rollup merge of #21941 - dotdash:with_cond_false, r=AatchManish Goregaokar-2/+10
Currently \"k / 2\" generates one (k: uint) or two (k: int) \"br false, ...\" instructions and the corresponding basic blocks, producing quite some noise and making the code unnecessarily hard to read. Additionally we can skip translation if the code would end up unreachable anyway.
2015-02-06Rollup merge of #21951 - Gankro:entry, r=aturonManish Goregaokar-40/+25
This also removes two erroneous re-exports of the Entry variants, and so is incidentally a [breaking-change], though presumably no one should have been using those. r? @aturon
2015-02-06Rollup merge of #21954 - jbcrail:fix-misspelled-comments, r=steveklabnikManish Goregaokar-36/+36
The spelling corrections were made in both documentation comments and regular comments.
2015-02-06Rollup merge of #21955 - jbcrail:fix-test-comments, r=steveklabnikManish Goregaokar-6/+6
Just spelling corrections.
2015-02-06Rollup merge of #21964 - semarie:openbsd-env, r=alexcrichtonManish Goregaokar-15/+49
- add `_SC_GETPW_R_SIZE_MAX` constant - declare `struct passwd` - convert `load_self` to `current_exe` Note: OpenBSD don't provide system function to return a valuable Path for `env::current_exe`. The implementation is currently based on the value of `argv[0]`, which couldn't be used when executable is called via PATH.
2015-02-06Rollup merge of #21976 - mzabaluev:fix-copy-mut-lifetime, r=alexcrichtonManish Goregaokar-3/+4
Part of #21923
2015-02-06Rollup merge of #21980 - pnkfelix:more-robust-span-to-snippet, r=huonwManish Goregaokar-15/+53
This can be considered partial work on #8256. The main observable change: macro expansion sometimes results in spans where `lo > hi`; so for now, when we have such a span, do not attempt to return a snippet result. (Longer term, we might think about whether we could still present a snippet for the cases where this arises, e.g. perhaps by showing the whole macro as the snippet, assuming that is the sole cause of such spans; or by somehow looking up the closest AST node that holds both `lo` and `hi`, and showing that.) As a drive-by, revised the API to return a `Result` rather than an `Option`, with better information-packed error value that should help us (and maybe also our users) identify the causes of such problems in the future. Ideally the call-sites that really want an actual snippet would be updated to catch the newly added `Err` case and print something meaningful about it, but that is not part of this PR.