about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-04-11Remove [mut] syntax in pin docsChris Gregory-9/+9
2019-04-12In `-Zprint-type-size` output, sort enum variants by size.Nicholas Nethercote-26/+32
It's useful to see the biggest variants first.
2019-04-11Add discr_index to multi-variant layoutsTyler Mandry-47/+67
We relax the assumption that the discriminant is always field 0, in preparations for layouts like generators where this is not going to be the case.
2019-04-11describe_enum_variant: Reduce code duplicationTyler Mandry-12/+10
2019-04-12Switch to multipart suggestions.David Wood-208/+68
This commit changes the suggestion so that it is split into multiple parts in an effort to reduce the impact the applied suggestion could have on formatting.
2019-04-12Improve robustness of nested check.David Wood-28/+71
This commit removes the assumption that the start of a use statement will always be on one line with a single space - which was silly in the first place.
2019-04-12Handle edge cases.David Wood-73/+625
This commit introduces more dirty span manipulation into the compiler in order to handle the various edge cases in moving/renaming the macro import so it is at the root of the import.
2019-04-12Handle renamed imports.David Wood-22/+65
This commit extends the suggestion to handle imports that are aliased to another name.
2019-04-12Suggest macro import from crate root.David Wood-41/+134
This commit suggests importing a macro from the root of a crate as the intent may have been to import a macro from the definition location that was annotated with `#[macro_export]`.
2019-04-11Auto merge of #59227 - Zoxc:fix-get, r=eddybbors-17/+23
Fix lifetime on LocalInternedString::get function cc @eddyb @nnethercote
2019-04-11Remove duplicated redundant spansEsteban Küber-4/+3
2019-04-11save-analysis: Simplify match arm for type node defIgor Matuszewski-5/+4
2019-04-11review commentsEsteban Küber-18/+17
2019-04-11save-analysis: use `qpath_def` for associated typesIgor Matuszewski-19/+4
2019-04-11Fix ui-fulldeps testEsteban Küber-6/+12
2019-04-11Update diagnostics.rsAndrew Banchich-2/+2
Add `a` and other minor text improvements
2019-04-11remove warnMark Mansi-1/+0
2019-04-11Reword tracking issue noteEsteban Küber-372/+375
2019-04-11musl: do not compress debug sectionMateusz Mikuła-3/+5
Old linkers are unable to decompress them and fail to link binaries
2019-04-11Auto merge of #59780 - RalfJung:miri-unsized, r=oli-obkbors-153/+192
Miri: unsized locals and by-value dyn traits r? @oli-obk Cc @eddyb Fixes https://github.com/rust-lang/miri/issues/449
2019-04-11Impl RawFd converstion traits for TcpListener, TcpStream and UdpSocketRyan Levick-67/+190
2019-04-12improve error messagesrchaser53-17/+83
2019-04-11Fix broken links on std::boxed doc pageOliver Middleton-0/+2
2019-04-11Remove note about transmute for float bitpatterns.Scott Olson-10/+0
2019-04-11Clean up handling of -Zpgo-gen commandline option.Michael Woerister-27/+60
2019-04-11Auto merge of #59211 - nox:refcell-borrow-state, r=KodrAusbors-0/+45
Introduce RefCell::try_borrow_unguarded *Come sit next to the fireplace with me, this is going to be a long story.* So, you may already be aware that Servo has weird design constraints that forces us developers working on it to do weird things. The thing that interests us today is that we do layout on a separate thread with its own thread pool to do some things in parallel, whereas the data it uses comes from the script thread, which implements the entire DOM and related pieces, with `!Sync` data types such as `RefCell<T>`. The invariant we maintain is that script does not do anything ever with the DOM data as long as layout is doing its job. That's all nice and all, but one thing we don't ensure is that we don't actually know if script was currently mutably borrowing some `RefCell<T>` prior to starting layout, which may lead to aliasing mutable memory and obviously undefined behaviour. This PR reinstates `RefCell::borrow_state` so that [this method](https://github.com/servo/servo/blob/master/components/script/dom/bindings/cell.rs#L23-L30) can make use of it and return `None` if the cell was mutably borrowed. Cc @SimonSapin
2019-04-11Update TRPL to use mdbook 0.2Carol (Nichols || Goulding)-4/+4
2019-04-11Auto merge of #58972 - QuietMisdreavus:intra-doc-link-imports, r=GuillaumeGomezbors-0/+28
rustdoc: don't process `Crate::external_traits` when collecting intra-doc links Part of https://github.com/rust-lang/rust/issues/58745, closes https://github.com/rust-lang/rust/pull/58917 The `collect-intra-doc-links` pass keeps track of the modules it recurses through as it processes items. This is used to know what module to give the resolver when looking up links. When looking through the regular items of the crate, this works fine, but the `DocFolder` trait as written doesn't just process the main crate hierarchy - it also processes the trait items in the `external_traits` map. This is useful for other passes (so they can strip out `#[doc(hidden)]` items, for example), but here it creates a situation where we're processing items "outside" the regular module hierarchy. Since everything in `external_traits` is defined outside the current crate, we can't fall back to finding its module scope like we do with local items. Skipping this collection saves us from emitting some spurious warnings. We don't even lose anything by skipping it, either - the docs loaded from here are only ever rendered through `html::render::document_short` which strips any links out, so the fact that the links haven't been loaded doesn't matter. Hopefully this removes most of the remaining spurious resolution warnings from intra-doc links. r? @GuillaumeGomez
2019-04-10forgot oneMark Mansi-1/+0
2019-04-10make duplicate matcher bindings a hard errorMark Mansi-59/+44
2019-04-10FeedbackKampfkarren-3/+4
2019-04-10Tweak unstable diagnostic outputEsteban Küber-453/+842
2019-04-10Recover from missing semicolon based on the found tokenEsteban Küber-0/+79
When encountering one of a few keywords when a semicolon was expected, suggest the semicolon and recover: ``` error: expected one of `.`, `;`, `?`, or an operator, found `let` --> $DIR/recover-missing-semi.rs:4:5 | LL | let _: usize = () | - help: missing semicolon here LL | LL | let _ = 3; | ^^^ error[E0308]: mismatched types --> $DIR/recover-missing-semi.rs:2:20 | LL | let _: usize = () | ^^ expected usize, found () | = note: expected type `usize` found type `()` ```
2019-04-10Suggest removing `?` to resolve type errors.David Wood-4/+59
This commit adds a suggestion to remove the `?` from expressions if removing the `?` would resolve a type error.
2019-04-10Fix tests, I thinkKampfkarren-2/+3
2019-04-11fix up unused wrappingn_add in compile-pass testAshley Mannix-1/+1
2019-04-10SGX target: fix cfg(test) buildJethro Beekman-3/+3
2019-04-10update polonius-engineAlbin Stjerna-3/+3
2019-04-10Fix attributes position in type declarationGuillaume Gomez-6/+17
2019-04-10std: Add `{read,write}_vectored` for more typesAlex Crichton-37/+247
This commit implements the `{read,write}_vectored` methods on more types in the standard library, namely: * `std::fs::File` * `std::process::ChildStd{in,out,err}` * `std::io::Std{in,out,err}` * `std::io::Std{in,out,err}Lock` * `std::io::Std{in,out,err}Raw` Where supported the OS implementations hook up to native support, otherwise it falls back to the already-defaulted implementation.
2019-04-10Don't build test helpers for wasm32John Kåre Alsaker-1/+4
2019-04-10Don't require a C compiler on wasm32John Kåre Alsaker-0/+5
2019-04-10Update cmake, cc and compiler_builtins for VS 2019 supportJohn Kåre Alsaker-7/+7
2019-04-10Fix error brought up by changing tabs to spacesKampfkarren-1/+1
2019-04-10Adhere to tidy scriptKampfkarren-4/+5
2019-04-10Special error when using catch after tryKampfkarren-1/+26
2019-04-10clarify what the item is in "not a module" errorAndy Russell-51/+70
2019-04-10warn on unused results for operation methods on numsAshley Mannix-0/+156
2019-04-10Updated the description of -Z in the rustc book.Christian-4/+5
2019-04-10Updated the documentation, now claiming the -Z is associated to unstable ↵Christian-2/+2
compiler flags, instead of flags for debugging.