about summary refs log tree commit diff
path: root/src/librustc/middle/stability.rs
AgeCommit message (Collapse)AuthorLines
2019-04-23Add rustc_allow_const_fn_ptrTaylor Cramer-0/+1
2019-03-26Rollup merge of #59389 - euclio:deprecated-suggestion, r=varkorMazdak Farrokhzad-1/+1
replace redundant note in deprecation warning
2019-03-25Auto merge of #59256 - petrochenkov:derval2, r=Zoxcbors-6/+5
Make meta-item API compatible with `LocalInternedString::get` soundness fix r? @Zoxc
2019-03-24replace redundant note in deprecation warningAndy Russell-1/+1
2019-03-24Separate variant id and variant constructor id.David Wood-5/+12
This commit makes two changes - separating the `NodeId` that identifies an enum variant from the `NodeId` that identifies the variant's constructor; and no longer creating a `NodeId` for `Struct`-style enum variants and structs. Separation of the variant id and variant constructor id will allow the rest of RFC 2008 to be implemented by lowering the visibility of the variant's constructor without lowering the visbility of the variant itself. No longer creating a `NodeId` for `Struct`-style enum variants and structs mostly simplifies logic as previously this `NodeId` wasn't used. There were various cases where the `NodeId` wouldn't be used unless there was an unit or tuple struct or enum variant but not all uses of this `NodeId` had that condition, by removing this `NodeId`, this must be explicitly dealt with. This change mostly applied cleanly, but there were one or two cases in name resolution and one case in type check where the existing logic required a id for `Struct`-style enum variants and structs.
2019-03-23Auto merge of #59096 - ljedrz:HirIdify_AccessLevel, r=Zoxcbors-1/+1
middle: replace NodeId with HirId in AccessLevels Pushing the limits of HirIdification (#57578). Replaces `NodeId` with `HirId` in `middle::privacy::AccessLevels`. Actually this time I was more successful and cracked it; I probably tried to HirIdify too much at once when I attempted it last time ^^. r? @Zoxc
2019-03-17Auto merge of #58994 - oli-obk:deprecated_derive, r=petrochenkovbors-1/+4
Hide deprecation warnings inside derive expansions Fixes #58822
2019-03-17Make meta-item API compatible with `LocalInternedString::get` soundness fixVadim Petrochenkov-6/+5
2019-03-16Don't report deprecation lints in derive expansionsOliver Scherer-1/+4
2019-03-16syntax: Do not accidentally treat multi-segment meta-items as single-segmentVadim Petrochenkov-5/+6
2019-03-15rustc: rename item_path to def_path (except the module in ty).Eduard-Mihai Burtescu-2/+2
2019-03-13middle: replace NodeId with HirId in AccessLevelsljedrz-1/+1
2019-03-06Make misc checking 1 more parallelJohn Kåre Alsaker-6/+0
2019-03-02hir: remove NodeId from Itemljedrz-2/+2
2019-03-02hir: remove NodeId from StructFieldljedrz-2/+1
2019-03-01hir: remove NodeId from ImplItemljedrz-1/+2
2019-03-01ty: HirIdify some lintsljedrz-3/+2
2019-02-27Auto merge of #58741 - varkor:lang-lib-feature-shared-name, r=alexregbors-4/+8
Allow lang and lib features to share names Fixes https://github.com/rust-lang/rust/issues/58715. I didn't add a test, because there's currently no standard lang test feature and I felt apprehensive about adding a permanently unstable feature. Instead, a shared lang/lib feature will be used in https://github.com/rust-lang/rust/pull/57760 and will essentially provide an immediately test.
2019-02-25Allow lang and lib features to share namesvarkor-4/+8
2019-02-24hir: remove NodeId from Exprljedrz-11/+11
2019-02-24middle: partially HirIdify stabilityljedrz-29/+23
2019-02-20hir: HirId-ify intravisitljedrz-2/+2
2019-02-13Rollup merge of #58276 - varkor:missing-stability-attr-top-level, r=davidtwcoMazdak Farrokhzad-10/+13
Improve the error messages for missing stability attributes This makes the capitalisation consistent and provides more context (especially for missing top-level attributes).
2019-02-13Rollup merge of #58202 - varkor:deprecated-future-external, r=GuillaumeGomezMazdak Farrokhzad-27/+1
Ignore future deprecations in #[deprecated] The future deprecation warnings should only apply to `#[rustc_deprecated]` as they take into account rustc's version. Fixes #57952. I've also slightly modified rustdoc's display of future deprecation notices to make it more consistent, so I'm assigning a rustdoc team member for review to make sure this is okay. r? @GuillaumeGomez
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-2/+2
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-11Require a list of features to allow in `allow_internal_unstable`Oliver Scherer-5/+4
2019-02-11Do not apply future deprecation warning for #[deprecated]varkor-27/+1
2019-02-10rustc: doc commentsAlexander Regueiro-2/+2
2019-02-08Correct descriptive item name for implvarkor-4/+2
2019-02-08Use descriptive variant namevarkor-2/+2
2019-02-07Improve the error messages for missing stability attributesvarkor-10/+15
This makes the capitalisation consistent and provides more context (especially for missing top-level attributes).
2019-02-07Rollup merge of #58193 - mark-i-m:rustc-2018, r=Centrilkennytm-10/+10
Move librustc to 2018 r? @Centril Part of #58099 It would be great to get this reviewed quickly to avoid merge conflicts...
2019-02-05move librustc to 2018Mark Mansi-10/+10
2019-02-04Fix #58101Tatsuyuki Ishi-1/+3
2019-02-01Auto merge of #57916 - Zoxc:incr-passes4, r=michaelwoeristerbors-2/+1
Misc performance tweaks r? @michaelwoerister
2019-01-30Add suggestions to deprecation lintsOliver Scherer-22/+40
2019-01-29Add an ensure() method to TyCtxt used to ensure queries are runJohn Kåre Alsaker-2/+1
2019-01-11Address commentsJohn Kåre Alsaker-2/+2
2019-01-11Make more passes incrementalJohn Kåre Alsaker-3/+17
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-11Add lint for stlibaheart-2/+11
2018-12-09Add lint for items deprecated in futureaheart-15/+46
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-15/+13
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-18/+18
2018-11-18Fix ICEs from imports of items not defined in modulesVadim Petrochenkov-4/+2
2018-11-07Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwcokennytm-1/+1
refactor: use shorthand fields refactor: use shorthand for single fields everywhere (excluding tests).
2018-11-06refactor: use shorthand fieldsteresy-1/+1
2018-10-26Auto merge of #54929 - csmoe:cfg_lint, r=petrochenkovbors-3/+3
Suggest to remove prefix `b` in cfg attribute lint string Closes #54926 r? @estebank
2018-10-20handle errors based on parse_sesscsmoe-3/+3
2018-10-19Prefer `Default::default` over `FxHash*::default` in struct constructorsOliver Scherer-3/+3