about summary refs log tree commit diff
path: root/src/libcore/marker.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-822/+0
2020-07-15improve DiscriminantKind handlingBastian Kauschke-0/+1
This now reuses `fn discriminant_ty` in project, removing some code duplication. Doing so made me realize that we previously had a disagreement about the discriminant type of generators, with MIR using `u32` and codegen and trait selection using `i32`. We now always use `u32`.
2020-07-14Remove `Sized` `on_unimplemented` noteEsteban Küber-4/+1
2020-07-03fix typoBastian Kauschke-1/+1
2020-06-03Bump to 1.46Mark Rousskov-13/+1
2020-05-19update libcore, add `discriminant_kind` lang-itemBastian Kauschke-0/+32
2020-04-26Use min_specialization in liballocMatthew Jasper-0/+7
- Remove a type parameter from `[A]RcFromIter`. - Remove an implementation of `[A]RcFromIter` that didn't actually specialize anything. - Remove unused implementation of `IsZero` for `Option<&mut T>`. - Change specializations of `[A]RcEqIdent` to use a marker trait version of `Eq`. - Remove `BTreeClone`. I couldn't find a way to make this work with `min_specialization`. - Add `rustc_unsafe_specialization_marker` to `Copy` and `TrustedLen`.
2020-04-25Bump bootstrap compilerMark Rousskov-1/+1
2020-04-17Fix unused results from mem::replaceJosh Stone-0/+1
2020-04-03Minor follow-up after renaming librustc(_middle)Yuki Okushi-1/+2
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-1/+1
2020-03-29Auto merge of #70370 - petrochenkov:nosmatch, r=Centrilbors-1/+0
Remove attribute `#[structural_match]` and any references to it A small remaining part of https://github.com/rust-lang/rust/issues/63438.
2020-03-26convert to doc commentsNiko Matsakis-2/+2
2020-03-24Remove attribute `#[structural_match]` and any references to itVadim Petrochenkov-1/+0
2020-03-15Add attributes to allow specializing on traitsMatthew Jasper-0/+1
2020-02-12Add trait `Self` filtering to `rustc_on_unimplemented`Esteban Küber-4/+1
2020-02-12Account for `Pin::new(_)` and `Pin::new(Box::new(_))` when `Box::pin(_)` ↵Esteban Küber-0/+7
would be applicable
2020-01-06Use Self instead of $typeLzu Tao-4/+4
2019-12-26Convert collapsed to shortcut reference linksMatthew Kraai-1/+1
2019-12-22Format the worldMark Rousskov-35/+34
2019-12-16Minor: update Unsize docs for dyn syntaxPeter Todd-1/+1
2019-12-14Revert "Stabilize the `never_type`, written `!`."Niko Matsakis-1/+1
This reverts commit 15c30ddd69d6cc3fffe6d304c6dc968a5ed046f1.
2019-12-08async/await: more improvements to non-send errorsDavid Wood-0/+2
Signed-off-by: David Wood <david@davidtw.co>
2019-11-21Stabilize the `never_type`, written `!`.Mazdak Farrokhzad-1/+1
2019-11-12Snap cfgsMark Rousskov-4/+0
2019-10-25Migrate from `#[structural_match]` attribute a lang-item trait.Felix S. Klock II-0/+87
(Or more precisely, a pair of such traits: one for `derive(PartialEq)` and one for `derive(Eq)`.) ((The addition of the second marker trait, `StructuralEq`, is largely a hack to work-around `fn (&T)` not implementing `PartialEq` and `Eq`; see also issue rust-lang/rust#46989; otherwise I would just check if `Eq` is implemented.)) Note: this does not use trait fulfillment error-reporting machinery; it just uses the trait system to determine if the ADT was tagged or not. (Nonetheless, I have kept an `on_unimplemented` message on the new trait for structural_match check, even though it is currently not used.) Note also: this does *not* resolve the ICE from rust-lang/rust#65466, as noted in a comment added in this commit. Further work is necessary to resolve that and other problems with the structural match checking, especially to do so without breaking stable code (adapted from test fn-ptr-is-structurally-matchable.rs): ```rust fn r_sm_to(_: &SM) {} fn main() { const CFN6: Wrap<fn(&SM)> = Wrap(r_sm_to); let input: Wrap<fn(&SM)> = Wrap(r_sm_to); match Wrap(input) { Wrap(CFN6) => {} Wrap(_) => {} }; } ``` where we would hit a problem with the strategy of unconditionally checking for `PartialEq` because the type `for <'a> fn(&'a SM)` does not currently even *implement* `PartialEq`. ---- added review feedback: * use an or-pattern * eschew `return` when tail position will do. * don't need fresh_expansion; just add `structural_match` to appropriate `allow_internal_unstable` attributes. also fixed example in doc comment so that it actually compiles.
2019-09-25Snap cfgs to new betaMark Rousskov-1/+0
2019-09-23Move `--cfg bootstrap` out of `rustc.rs`Alex Crichton-1/+1
Instead let's do this via `RUSTFLAGS` in `builder.rs`. Currently requires a submodule update of `stdarch` to fix a problem with previous compilers.
2019-09-06A few cosmetic improvements to code & comments in liballoc and libcoreAlexander Regueiro-2/+2
2019-08-17Make built-in derives opaque macrosMatthew Jasper-1/+1
2019-08-14Handle cfg(bootstrap) throughoutMark Rousskov-1/+0
2019-08-10Give built-in macros stable addresses in the standard libraryVadim Petrochenkov-0/+8
2019-07-10Implement Unpin for all raw pointersSteven Fackler-0/+6
Like references and boxes, moving the pointer doesn't move the pointed-to value, so this is safe.
2019-07-01Remove needless lifetimesJeremy Stucki-1/+1
2019-06-29Rollup merge of #61199 - ollie27:rustdoc_cfg_test, r=QuietMisdreavusMazdak Farrokhzad-3/+3
Revert "Set test flag when rustdoc is running with --test option" Reverts https://github.com/rust-lang/rust/pull/59940. It caused doctests in this repository to no longer be tested including all of the core crate.
2019-06-22Fix one missing `dyn`.CrLF0710-1/+1
It's in the documentation of `Unsize`.
2019-06-09Fix more tests after revert of rustdoc cfg(test) featureOliver Middleton-3/+3
2019-04-18libcore => 2018Taiki Endo-4/+4
2019-03-02Bootstrap compiler update for 1.35 releaseMark Rousskov-1/+1
2019-02-21fix linkRalf Jung-1/+1
2019-02-21tweaks and fix weird spaceRalf Jung-1/+1
2019-02-21Apply suggestions from code reviewMazdak Farrokhzad-2/+2
Co-Authored-By: RalfJung <post@ralfj.de>
2019-02-19expand Unpin exampleRalf Jung-3/+5
2019-02-19rewrite pin module introRalf Jung-1/+2
2019-02-19separate section for doubly-linked list, reword projections introRalf Jung-2/+2
2019-02-19apply some of the feedbackRalf Jung-3/+3
2019-02-19improve Pin documentationRalf Jung-3/+9
2019-02-14Rollup merge of #57856 - lzutao:fix-old-first-edition, r=steveklabnikMazdak Farrokhzad-2/+2
Convert old first edition links to current edition one r? @steveklabnik
2019-02-13Convert old doc links to current editionLzu Tao-2/+2
Use footnote style to bypass the tidy check
2019-01-27Mark static generators as !UnpinWim Looman-0/+1