-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 33 pull requests #35665
Closed
Closed
Rollup of 33 pull requests #35665
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
E0248 Change in issue format E0267 UT New Format E0268 UT New Format E0267 & E0268 New Error Format
Most of these rely on spawning processes, which is not possible in Emscripten.
changed error text
I've been experiencing rust-lang#34978 with these two targets. This applies the hack in rust-lang#35178 to these targets as well.
…e more efficient tokenstream usages.
This issue rust-lang#35513 is a part of rust-lang#35233. r? @jonathandturner
The previous implementation of this function was overly conservative with liberal usage of `Option` and `.unwrap()` which in theory never triggers. This commit essentially removes the `Option`s in favor of unsafe implementations, improving the code generation of the fast path for LLVM to see through what's happening more clearly. cc rust-lang#34727
Similar to the `as_slice` method on `core::slice::Iter` struct.
Update error message for E0253 rust-lang#35512 Fixes rust-lang#35512. Part of rust-lang#35233.
Update E0138 to new format Part of rust-lang#35233 Fix rust-lang#35510 r? @jonathandturner ![e0138](https://cloud.githubusercontent.com/assets/2716047/17562415/7200d93c-5f5d-11e6-98ff-e15c29f40e03.png) Question: How can I only underline the function name ? I have observed the debug output and the struct of item, but I can't find the `Span` for function name. Should I modify the struct I get to save function name's position or there is another way to get it ? (I can only find `Span`s for function attributes, inputs, outputs, blocks)
Emscripten test fixes This picks up parts of rust-lang#31623 to disable certain tests that emscripten can't run, as threads/processes are not supported. I re-applied @tomaka's changes manually, I can rebase those commits with his credentials if he wants. It also disables jemalloc for emscripten (at least in Rustbuild, I have to check if there is another setting for the same thing in the old makefile approach). This should not impact anything for normal builds.
add -mrelax-relocations=no to i686-musl and i586-gnu I've been experiencing rust-lang#34978 with these two targets. This applies the hack in rust-lang#35178 to these targets as well. r? @alexcrichton
…turner E0248, E0267 & E0268 Change into issue format r? @jonathandturner Part of rust-lang#35391, rust-lang#35519 and rust-lang#35520. I have squashed all changes into a single commit. Please review the changes. E0248 Change in issue format E0267 UT New Format E0268 UT New Format E0267 & E0268 New Error Format
Use an existing constant name as an example. By reading atomics documentation I tried to use `INIT_ATOMIC_BOOL`, which I couldn't find. Turns out it was renamed to `ATOMIC_BOOL_INIT`.
…xcrichton Allow compiling against a custom LLVM 3.9 installation
…ts, r=jonathandturner Add label to E0254 This issue rust-lang#35513 is a part of rust-lang#35233. r? @jonathandturner
doc: a value of type `&str` is called a "string slice"
…labnik string: remove needless binding
Change stabilization version of no_std from 1.0 to 1.6. I don't know if more than this is needed. Fixes rust-lang#35579.
…atsakis Improve &-ptr printing This PR replaces printing `&-ptr` with a more readable description. To do so it uses a few heuristics. If the name of the type is unknown, too long (longer than just saying "reference"), or too complex (a type with explicit lifetime annotations), it will instead opt to print either "reference" or "mutable reference", depending on the mutability of the type. Before: ``` error[E0308]: mismatched types --> src/test/compile-fail/issue-7061.rs:14:46 | 14 | fn foo(&'a mut self) -> Box<BarStruct> { self } | ^^^^ expected box, found &-ptr | = note: expected type `Box<BarStruct>` = note: found type `&'a mut BarStruct` error: aborting due to previous error ``` After: ``` error[E0308]: mismatched types --> src/test/compile-fail/issue-7061.rs:14:46 | 14 | fn foo(&'a mut self) -> Box<BarStruct> { self } | ^^^^ expected box, found mutable reference | = note: expected type `Box<BarStruct>` = note: found type `&'a mut BarStruct` error: aborting due to previous error ```
… r=jonathandturner Update E0070 to new error format Updated E0070 to new error format. Part of rust-lang#35233 Fixes rust-lang#35503 Thanks for letting me help! r? @jonathandturner
… r=jonathandturner changed E0067 to new error format Updated E0067 to new error format. Part of rust-lang#35233 Fixes rust-lang#35502 Passes all the tests when running: `python src/bootstrap/bootstrap.py --step check-cfail --stage 1` **This seems strange, given that the format for E0067 has been changed.** It feels like it should fail some unit tests maybe? Let me know if I'm mistaken. Otherwise I can create a unit test for it. Thanks for letting me help! r? @jonathandturner
book: fix the hidden find() functions in error-handling.md The hidden find() functions always returns None. Consequently, one of the examples using find() prints "No file extension found" instead of "File extension: rs" which is the expected output. This patch fixes the issue by implementing find() with std::str::find(). Signed-off-by: Christophe Vu-Brugier <[email protected]>
…r=apasel422 fix small typos in std::convert documentation Fix subject-verb agreement in copypasta: "`AsRef` dereference" to "`AsRef` dereferences". Formalize "eg" to "e.g." Italicization of common Latin abbreviations seems to be going out of style in written English, so I left it plain.
compiletest: Remove dead code.
…ormat, r=jonathandturner Update E0301 to the new format Part of rust-lang#35233. Fixes rust-lang#35522. r? @jonathandturner
…ormat, r=jonathandturner Update E0302 to the new format Part of rust-lang#35233. Fixes rust-lang#35523. r? @jonathandturner
E0094 error message updated Part of rust-lang#35233 Fixes rust-lang#35231 r? @jonathandturner
Ensure that attributes are spelled properly.
Predicates haven't existed in almost 5 years. This test probably adds negative value other than historical amusement.
Fix a couple of typos in RawVec Hi, The pull request is to fix a couple of typos in `liballoc/raw_vec.rs`. Regards, Ivan
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ p=1 |
📌 Commit d71e4e4 has been approved by |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
as_slice
/as_mut_slice
methods onstd::vec::IntoIter
struct. #35447, Correct span for pub_restricted field #35491, Update E0033 to the new error format #35526, Add regression test for #22894. #35533, Implemented a smarter TokenStream concatenation system #35539, Update error message for E0253 #35512 #35558, Update E0138 to new format #35573, Emscripten test fixes #35574, add -mrelax-relocations=no to i686-musl and i586-gnu #35577, E0248, E0267 & E0268 Change into issue format #35586, Use an existing constant name as an example. #35588, Allow compiling against a custom LLVM 3.9 installation #35594, Add label to E0254 #35596, doc: a value of type&str
is called a "string slice" #35597, string: remove needless binding #35598, Change stabilization version of no_std from 1.0 to 1.6. #35606, Improve &-ptr printing #35611, Update E0070 to new error format #35615, changed E0067 to new error format #35616, book: fix the hidden find() functions in error-handling.md #35620, fix small typos in std::convert documentation #35622, compiletest: Remove dead code. #35640, Update E0301 to the new format #35643, Update E0302 to the new format #35644, E0094 error message updated #35646, Ensure that attributes are spelled properly. #35647, Predicates haven't existed in almost 5 years. #35648, Fix a couple of typos in RawVec #35661