about summary refs log tree commit diff
path: root/src/librustc/middle/privacy.rs
AgeCommit message (Collapse)AuthorLines
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-65/+0
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-3/+2
2020-01-04DefId{Map,Set} -> rustc::hir::def_idMazdak Farrokhzad-1/+1
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-1/+2
2019-12-22Format the worldMark Rousskov-3/+3
2019-03-13middle: replace NodeId with HirId in AccessLevelsljedrz-2/+2
2019-03-13Use derive macro for HashStableJohn Kåre Alsaker-1/+2
2019-02-05move librustc to 2018Mark Mansi-1/+1
2019-02-02Update visibility of intermediate use items.David Wood-7/+12
Currently, the target of a use statement will be updated with the visibility of the use statement itself (if the use statement was visible). This commit ensures that if the path to the target item is via another use statement then that intermediate use statement will also have the visibility updated like the target. This silences incorrect `unreachable_pub` lints with inactionable suggestions.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-09-29don't elide lifetimes in paths in librustc/Zack M. Davis-1/+1
This seemed like a good way to kick the tires on the elided-lifetimes-in-paths lint (#52069)—seems to work! This was also pretty tedious—it sure would be nice if `cargo fix` worked on this codebase (#53896)!
2018-08-21Fixes for code review.Kyle Simpson-1/+0
2018-08-21New AccessLevel and accompanying propagation.Kyle Simpson-2/+3
2018-08-20Mark impl Trait Functions as reachable. (Fixes #50865)Kyle Simpson-0/+2
2018-01-15Reexport -> re-export in prose and documentation commentsCarol (Nichols || Goulding)-2/+2
2016-11-08Replace FnvHasher use with FxHasher.Nicholas Nethercote-2/+2
This speeds up compilation by 3--6% across most of rustc-benchmarks.
2016-08-22rustc: Fix outdated commentVadim Petrochenkov-3/+2
2016-04-13Retire rustdocs `ANALYSISKEY`mitaa-1/+8
The thread-local isn't needed and consists of mostly empty fields which were just used to move the data into `html::render::CACHE_KEY`.
2016-02-26Remove `LastPrivate`Jeffrey Seyfried-41/+0
2015-11-19Changes to data produced by privacy passVadim Petrochenkov-8/+42
2015-08-24fallout from moving def-idNiko Matsakis-3/+2
2015-04-01Tidying up and reformattingNick Cameron-3/+3
2015-02-24rustc: combine partial_def_map and last_private_map into def_map.Eduard Burtescu-4/+1
2015-01-29s/Show/Debug/gJorge Aparicio-3/+3
2015-01-16rustc: Move the privacy pass to its own crateAlex Crichton-1560/+2
2015-01-15syntax: add fully qualified UFCS expressions.Eduard Burtescu-1/+1
2015-01-07use slicing sugarJorge Aparicio-6/+6
2015-01-06rollup merge of #20481: seanmonstar/fmt-show-stringAlex Crichton-10/+10
Conflicts: src/compiletest/runtest.rs src/libcore/fmt/mod.rs src/libfmt_macros/lib.rs src/libregex/parse.rs src/librustc/middle/cfg/construct.rs src/librustc/middle/dataflow.rs src/librustc/middle/infer/higher_ranked/mod.rs src/librustc/middle/ty.rs src/librustc_back/archive.rs src/librustc_borrowck/borrowck/fragments.rs src/librustc_borrowck/borrowck/gather_loans/mod.rs src/librustc_resolve/lib.rs src/librustc_trans/back/link.rs src/librustc_trans/save/mod.rs src/librustc_trans/trans/base.rs src/librustc_trans/trans/callee.rs src/librustc_trans/trans/common.rs src/librustc_trans/trans/consts.rs src/librustc_trans/trans/controlflow.rs src/librustc_trans/trans/debuginfo.rs src/librustc_trans/trans/expr.rs src/librustc_trans/trans/monomorphize.rs src/librustc_typeck/astconv.rs src/librustc_typeck/check/method/mod.rs src/librustc_typeck/check/mod.rs src/librustc_typeck/check/regionck.rs src/librustc_typeck/collect.rs src/libsyntax/ext/format.rs src/libsyntax/ext/source_util.rs src/libsyntax/ext/tt/transcribe.rs src/libsyntax/parse/mod.rs src/libsyntax/parse/token.rs src/test/run-pass/issue-8898.rs
2015-01-06core: split into fmt::Show and fmt::StringSean McArthur-10/+10
fmt::Show is for debugging, and can and should be implemented for all public types. This trait is used with `{:?}` syntax. There still exists #[derive(Show)]. fmt::String is for types that faithfully be represented as a String. Because of this, there is no way to derive fmt::String, all implementations must be purposeful. It is used by the default format syntax, `{}`. This will break most instances of `{}`, since that now requires the type to impl fmt::String. In most cases, replacing `{}` with `{:?}` is the correct fix. Types that were being printed specifically for users should receive a fmt::String implementation to fix this. Part of #20013 [breaking-change]
2015-01-07Replace full slice notation with index callsNick Cameron-5/+5
2015-01-05rustc: remove remaining boxed closuresJorge Aparicio-1/+1
2015-01-04Add syntax for negative implementations of traitsFlavio Percoco-5/+5
This commit introduces the syntax for negative implmenetations of traits as shown below: `impl !Trait for Type {}` cc #13231 Part of RFC #3
2015-01-03sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rsJorge Aparicio-3/+3
2015-01-03sed -i -s 's/\bmod,/self,/g' **/*.rsJorge Aparicio-2/+2
2014-12-31rustc: unbox closures used in let bindingsJorge Aparicio-4/+4
2014-12-30Fallout from stabilizationAaron Turon-4/+1
2014-12-26Accept `?Sized` as well as `Sized?`Nick Cameron-6/+6
Includes a bit of refactoring to store `?` unbounds as bounds with a modifier, rather than in their own world, in the AST at least.
2014-12-21Fallout of std::str stabilizationAlex Crichton-7/+5
2014-12-21auto merge of #19953 : sanxiyn/rust/privacy-span, r=alexcrichtonbors-5/+5
Fix #19062.
2014-12-20Add parser support for generalized where clausesJared Roesch-0/+1
Implement support in the parser for generalized where clauses, as well as the conversion of ast::WherePredicates to ty::Predicate in `collect.rs`.
2014-12-20rustc: middle: move some types from resolve to privacy.Eduard Burtescu-23/+69
2014-12-20rustc: middle: move Export and ExportMap from resolve to def.Eduard Burtescu-3/+3
2014-12-20middle: resolve: fix inconsistencies around ExportMap and remove the 2 suffix.Eduard Burtescu-6/+6
2014-12-17Correct span in privacy errorSeo Sanghyeon-5/+5
2014-12-14Parse `unsafe impl` but don't do anything particularly interesting with the ↵Niko Matsakis-5/+5
results.
2014-12-14Parse `unsafe trait` but do not do anything with it beyond parsing and ↵Niko Matsakis-5/+5
integrating into rustdoc etc.
2014-12-12Reviewer commentsNick Cameron-2/+2
2014-12-12Add support for equality constraints on associated typesNick Cameron-2/+9
2014-12-04Move various data structures out of typeck and into ty.Niko Matsakis-2/+2
2014-11-29Replace some verbose match statements with their `if let` equivalent.jfager-52/+30
No semantic changes, no enabling `if let` where it wasn't already enabled.