about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-04-16Rollup merge of #59992 - QuietMisdreavus:static-settings-path, r=GuillaumeGomezMazdak Farrokhzad-1/+6
rustdoc: use --static-root-path for settings.js At the time i was writing https://github.com/rust-lang/docs.rs/pull/332, i noticed that the `settings.js` file that was being loaded was not being loaded from the `--static-root-path`. This PR fixes that so that users on docs.rs can effectively cache this file.
2019-04-16Rollup merge of #59973 - Enity:fix-rustdoc-sidebar, r=GuillaumeGomezMazdak Farrokhzad-1/+2
Fix rustdoc sidebar z-index I think the screenshot will say everything: ![image](https://user-images.githubusercontent.com/2884517/56098429-37fa3680-5f09-11e9-8c54-4e2548aa0818.png) live example: https://docs.rs/nom/4.2.3/nom/ I chose the smallest z-index to avoid problems with other blocks.
2019-04-16Rollup merge of #59903 - estebank:after-main, r=oli-obkMazdak Farrokhzad-3/+55
Continue evaluating after missing main
2019-04-16Rollup merge of #59717 - Reconcyl:master, r=steveklabnikMazdak Farrokhzad-4/+3
improve docs for std::hint::unreachable_unchecked() Fixes #59549
2019-04-16Auto merge of #59990 - bjorn3:nicer_compiletest_errors, r=alexcrichtonbors-1/+3
Use resume_unwind instead of panic!() for nicer compiletest errors cc https://github.com/rust-lang/rust/pull/58783#issuecomment-477287606
2019-04-15LLD is not supported on DarwinPetr Hosek-2/+4
Don't enable LLD when LTO is enabled on Darwin.
2019-04-16Fix testsYuki OKUSHI-18/+19
2019-04-16Make wording verboseYuki OKUSHI-1/+6
2019-04-15normalize away some Windows-only panic printingRalf Jung-3/+15
2019-04-15Auto merge of #59926 - pietroalbini:android-sdk-manager, r=alexcrichtonbors-68/+224
ci: use a custom android sdk manager with pinning and mirroring Google's own sdkmanager has two issues that make it unsuitable for us: * Mirroring has to be done manually, which is annoying because we need to figure out on our own all the URLs to copy (I couldn't find any documentation when building this PR, had to use mitmproxy). * There is no support for pinning, which means an update on Google's side can break our CI, as it happened multiple times. This PR replaces all our usage of sdkmanager with a custom Python script which mimics its behavior, but with the two issues fixes. sdkmanager's logic for installing packages is thankfully very simple: the package name (like `system-images;android-18;default;armeabi-v7a`) is the directory where the package should live (with `;` replaced with `/`), so to install a package we only need to extract its contents in the right directory. r? @alexcrichton cc @kennytm fixes https://github.com/rust-lang/rust/issues/59778
2019-04-15change word wrapping modevlad-boroda-1/+1
2019-04-15include mode in unused binding suggestion spanAndy Russell-5/+119
2019-04-15Rollup merge of #59978 - ollie27:rustdoc_default, r=QuietMisdreavusMazdak Farrokhzad-16/+67
rustdoc: Remove default keyword from re-exported trait methods Fixes #59977 r? @QuietMisdreavus As this fixes a stable to beta regression, could it be backported?
2019-04-15Rollup merge of #59955 - RalfJung:stdsimd, r=alexcrichtonMazdak Farrokhzad-8/+22
bump stdsimd; make intra_doc_link_resolution_failure an error again; make lints more consistent I made `intra_doc_link_resolution_failure` warn so that it would properly respect `deny-warnings = false` in `config.toml`. `#[warn]` still become errors with `-D warnings` so I thought this was fine. Turns out however that we don't pass `-D warnings` when running rustdoc, so for additional rustdoc-lints we need to set them to `deny`. Also sue the opportunity to make the lint flags more consistent between libcore, liballoc, libstd. Cc @gnzlbg for the *big* stdsimd update.
2019-04-15Rollup merge of #59779 - flip1995:uplift_get_def_path, r=ManishearthMazdak Farrokhzad-6/+28
Uplift `get_def_path` from Clippy cc rust-lang/rust-clippy#3926 cc #59738 This uplifts `get_def_path` from Clippy. This is a follow up on the implementation of internal lints: #59316 The internal lint implementation also copied the implementation of the `AbsolutePathPrinter`. To get rid of this code duplication this also uplifts the `get_def_path` function from Clippy. This also renames `match_path` to `match_def_path`, as it was originally named in Clippy. r? @Manishearth
2019-04-15Rollup merge of #59648 - alex:must-use-result, r=alexcrichtonMazdak Farrokhzad-8/+12
Add must_use annotations to Result::is_ok and is_err Discussed in #59610
2019-04-15use --static-root-path for settings.jsQuietMisdreavus-1/+6
2019-04-15Use resume_unwind instead of panic!() for nicer compiletest errorsbjorn3-1/+3
2019-04-15basic refactor. Adding PointerCast enumSaleem Jaffer-65/+85
2019-04-15warn(missing_docs) in liballoc, and add missing docsRalf Jung-0/+13
2019-04-15Update testJohn Kåre Alsaker-182/+186
2019-04-15Preallocate BUILTIN_ATTRIBUTES symbols and use a hash map instead of loopingJohn Kåre Alsaker-423/+649
2019-04-15Auto merge of #59655 - Zoxc:symbols, r=petrochenkovbors-141/+326
Use a proc macro to declare preallocated symbols r? @petrochenkov
2019-04-15Remove collection-specific `with_capacity` doc from `std::collections`Marc-4/+3
Fixes #59931
2019-04-15Auto merge of #59626 - nnethercote:DepGraph-1.02x, r=Zoxcbors-2/+3
Reduce the `DepNode` pre-allocation ratio. A code size of increase of 15% is overly generous. 2% is more realistic. This change reduces peak memory size by 20+ MiB on some workloads. r? @Zoxc
2019-04-15Use colon for keyword defsJohn Kåre Alsaker-62/+62
2019-04-15Move modules outside the proc macroJohn Kåre Alsaker-26/+44
2019-04-15Ensure the symbols are pure stringsJohn Kåre Alsaker-1/+7
2019-04-15Make check_name genericJohn Kåre Alsaker-43/+32
2019-04-15Use a proc macro to declare preallocated symbolsJohn Kåre Alsaker-139/+311
2019-04-15Reduce the `DepNode` pre-allocation ratio.Nicholas Nethercote-2/+3
A code size of increase of 15% is overly generous. 2% is more realistic. This change reduces peak memory size by 20+ MiB on some workloads.
2019-04-15Auto merge of #59982 - stepancheg:hasher-no-unsafe, r=rkruppebors-14/+10
Hasher: replace unsafe trasmute with to_ne_bytes Spead the knowledge of `to_ne_bytes` functions existence.
2019-04-15Hasher: replace unsafe trasmute with to_ne_bytesStepan Koltsov-14/+10
Spead the knowledge of `to_ne_bytes` functions existence.
2019-04-14Update clippyManish Goregaokar-9/+9
2019-04-14rustdoc: Remove default keyword from re-exported trait methodsOliver Middleton-16/+67
2019-04-14Fix rustdoc sidebar z-indexvlad-boroda-0/+1
2019-04-14Auto merge of #59335 - Aaron1011:fix/extern-priv-final, r=Aaron1011bors-56/+158
Properly parse '--extern-private' with name and path It turns out that https://github.com/rust-lang/rust/pull/57586 didn't properly parse `--extern-private name=path`. This PR properly implements the `--extern-private` option. I've added a new `extern-private` option to `compiletest`, which causes an `--extern-private` option to be passed to the compiler with the proper path. Part of https://github.com/rust-lang/rust/issues/44663
2019-04-14Fix typo in commentAaron Hill-1/+1
2019-04-14Fix Windows dll name formatAaron Hill-7/+7
2019-04-14Handle --extern-private properly on muslAaron Hill-8/+35
On musl (and some other platforms), compiletest ends up creating a static rlib (instead of a dylib) when building 'aux-build' crates. This commit changes the '--extern-private' path computed by compiletest to properly take this into account
2019-04-14Derive Default for ExternEntryAaron Hill-30/+17
2019-04-14Fix ExternEntry testAaron Hill-25/+11
2019-04-14Update rustdoc to new ExternEntry formatAaron Hill-2/+8
2019-04-14Refactor structure of ExternEntryAaron Hill-59/+40
2019-04-14Move new_public to 'tess' moduleAaron Hill-8/+10
2019-04-14Improve formattingAaron Hill-25/+1
2019-04-14Fix testsAaron Hill-7/+28
2019-04-14Rollup merge of #59957 - krk:fix-doctypo-symbol, r=jonas-schievinkMazdak Farrokhzad-1/+1
Add missing backtick to Symbol documentation.
2019-04-14Rollup merge of #59936 - petrochenkov:confict, r=davidtwcoMazdak Farrokhzad-1/+24
Fix cross-crate visibility of fictive variant constructors After merging https://github.com/rust-lang/rust/pull/59376 I realized that the code in the decoder wasn't entirely correct - we "decoded" fictive variant constructors with their variant's visibility, which could be public, rather than demoted to `pub(crate)`. Fictive constructors are not directly usable in expression/patterns, but the effect still can be observed with imports. r? @davidtwco
2019-04-14Rollup merge of #59906 - czipperz:bufwriter-use-getmut, r=kennytmMazdak Farrokhzad-2/+2
Make BufWriter use get_mut instead of manipulating inner in Write implementation `get_mut` allows us to abstract over the implementation detail of inner being optional.