-
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 6 pull requests #69848
Rollup of 6 pull requests #69848
Commits on Mar 3, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a755d8d - Browse repository at this point
Copy the full SHA a755d8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 612d375 - Browse repository at this point
Copy the full SHA 612d375View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5892d0d - Browse repository at this point
Copy the full SHA 5892d0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 71b9512 - Browse repository at this point
Copy the full SHA 71b9512View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ffe9f3 - Browse repository at this point
Copy the full SHA 6ffe9f3View commit details
Commits on Mar 4, 2020
-
Permit attributes on 'if' expressions
Previously, attributes on 'if' expressions (e.g. #[attr] if true {}) were disallowed during parsing. This made it impossible for macros to perform any custom handling of such attributes (e.g. stripping them away), since a compilation error would be emitted before they ever had a chance to run. This PR permits attributes on 'if' expressions ('if-attrs' from here on). Both built-in attributes (e.g. `#[allow]`, `#[cfg]`) are supported. We still do *not* accept attributes on 'other parts' of an if-else chain. That is, the following code snippet still fails to parse: ```rust if true {} #[attr] else if false {} else #[attr] if false {} #[attr] else {} ```
Configuration menu - View commit details
-
Copy full SHA for f63b88c - Browse repository at this point
Copy the full SHA f63b88cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e912d9d - Browse repository at this point
Copy the full SHA e912d9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9ec47b - Browse repository at this point
Copy the full SHA e9ec47bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a299e4 - Browse repository at this point
Copy the full SHA 9a299e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b00f674 - Browse repository at this point
Copy the full SHA b00f674View commit details -
Configuration menu - View commit details
-
Copy full SHA for e11cdfd - Browse repository at this point
Copy the full SHA e11cdfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f19358 - Browse repository at this point
Copy the full SHA 7f19358View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b681d6 - Browse repository at this point
Copy the full SHA 1b681d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37c2c38 - Browse repository at this point
Copy the full SHA 37c2c38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66b152c - Browse repository at this point
Copy the full SHA 66b152cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e50fd5a - Browse repository at this point
Copy the full SHA e50fd5aView commit details
Commits on Mar 8, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 0468929 - Browse repository at this point
Copy the full SHA 0468929View commit details -
Configuration menu - View commit details
-
Copy full SHA for 938f852 - Browse repository at this point
Copy the full SHA 938f852View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4971d03 - Browse repository at this point
Copy the full SHA 4971d03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85e1466 - Browse repository at this point
Copy the full SHA 85e1466View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed3014a - Browse repository at this point
Copy the full SHA ed3014aView commit details
Commits on Mar 9, 2020
-
Configuration menu - View commit details
-
Copy full SHA for af0c44c - Browse repository at this point
Copy the full SHA af0c44cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc8be08 - Browse repository at this point
Copy the full SHA fc8be08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 437c07f - Browse repository at this point
Copy the full SHA 437c07fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0005f29 - Browse repository at this point
Copy the full SHA 0005f29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95d4785 - Browse repository at this point
Copy the full SHA 95d4785View commit details -
Configuration menu - View commit details
-
Copy full SHA for 579ce86 - Browse repository at this point
Copy the full SHA 579ce86View commit details -
Use slices in preference to 0-terminated strings
Additionally whenever possible match C API provided by the LLVM.
Configuration menu - View commit details
-
Copy full SHA for 58303b7 - Browse repository at this point
Copy the full SHA 58303b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e54a829 - Browse repository at this point
Copy the full SHA e54a829View commit details -
unix: Don't override existing SIGSEGV/BUS handlers
Although `stack_overflow::init` runs very early in the process, even before `main`, there may already be signal handlers installed for things like the address sanitizer. In that case, just leave it alone, and don't bother trying to allocate our own signal stacks either.
Configuration menu - View commit details
-
Copy full SHA for 676b9bc - Browse repository at this point
Copy the full SHA 676b9bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef98ec0 - Browse repository at this point
Copy the full SHA ef98ec0View commit details -
Rollup merge of rust-lang#69201 - Aaron1011:feature/permit-if-attr, r…
…=Centril Permit attributes on 'if' expressions Previously, attributes on 'if' expressions (e.g. `#[attr] if true {}`) were disallowed during parsing. This made it impossible for macros to perform any custom handling of such attributes (e.g. stripping them away), since a compilation error would be emitted before they ever had a chance to run. This PR permits attributes on 'if' expressions ('if-attrs' from here on). Both built-in attributes (e.g. `#[allow]`, `#[cfg]`) and proc-macro attributes are supported. We still do *not* accept attributes on 'other parts' of an if-else chain. That is, the following code snippet still fails to parse: ```rust if true {} #[attr] else if false {} else #[attr] if false {} #[attr] else {} ``` Closes rust-lang#68618
Configuration menu - View commit details
-
Copy full SHA for 32c749e - Browse repository at this point
Copy the full SHA 32c749eView commit details -
Rollup merge of rust-lang#69402 - GuillaumeGomez:extend-search, r=kin…
…nison Extend search I realized that when looking for "struct:String" in the rustdoc search for example, the "in arguments" and "returned" tabs were always empty. After some investigation, I realized it was because we only provided the name, and not the type, making it impossible to pass the "type filtering" check. To resolve this, I added the type alongside the name. Note for the future: we could improve this by instead only registering the path id and use the path dictionary directly. The only problem with that solution (which I already tested) is that it becomes complicated for types in other crates. It'd force us to handle both case with an id and a case with `(name, type)`. I found the current PR big enough to not want to provide it directly. However, I think this is definitely worth it to make it work this way in the future. About the two tests I added: they don't have much interest except checking that we actually have something returned in the search in the cases of a type filtering with and without literal search. I also had to update a bit the test script to add the new locally global (haha) variable I created (`NO_TYPE_FILTER`). I added this variable to make the code easier to read than just "-1". r? @kinnison cc @ollie27
Configuration menu - View commit details
-
Copy full SHA for 3b1ad4f - Browse repository at this point
Copy the full SHA 3b1ad4fView commit details -
Rollup merge of rust-lang#69685 - cuviper:soft-segv, r=sfackler
unix: Don't override existing SIGSEGV/BUS handlers Although `stack_overflow::init` runs very early in the process, even before `main`, there may already be signal handlers installed for things like the address sanitizer. In that case, just leave it alone, and don't bother trying to allocate our own signal stacks either. Fixes rust-lang#69524.
Configuration menu - View commit details
-
Copy full SHA for 839a06d - Browse repository at this point
Copy the full SHA 839a06dView commit details -
Rollup merge of rust-lang#69762 - RalfJung:validity-errors, r=oli-obk
Ensure that validity only raises validity errors For now, only as a debug-assertion (similar to const-prop detecting errors that allocate). Now includes rust-lang#69646. [Relative diff](RalfJung/rust@layout-visitor...RalfJung:validity-errors). r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 1ae39a5 - Browse repository at this point
Copy the full SHA 1ae39a5View commit details -
Rollup merge of rust-lang#69779 - tmiasko:di-cstr, r=nagisa
librustc_codegen_llvm: Use slices in preference to 0-terminated strings Additionally whenever possible match C API provided by the LLVM.
Configuration menu - View commit details
-
Copy full SHA for 428daa3 - Browse repository at this point
Copy the full SHA 428daa3View commit details -
Rollup merge of rust-lang#69842 - JohnTitor:more-tests, r=Centril
Add more regression tests Closes rust-lang#54239 Closes rust-lang#57200 Closes rust-lang#57201 Closes rust-lang#60473 Closes rust-lang#64620 Closes rust-lang#67166 r? @Centril
Configuration menu - View commit details
-
Copy full SHA for 77da717 - Browse repository at this point
Copy the full SHA 77da717View commit details