csmoe
64f61c7888
remove indexed_vec re-export from rustc_data_structures
2019-09-29 16:48:31 +00:00
Mark Rousskov
d540d44c71
Remove global_tcx from TyCtxt
...
The non-global context was removed; there's only one context now. This
is a noop method that only serves to confuse readers -- remove it.
2019-09-27 13:33:48 -04:00
varkor
95f6d72a60
Rename `Expr.node` to `Expr.kind`
...
For both `ast::Expr` and `hir::Expr`.
2019-09-26 18:21:09 +01:00
varkor
e2e0f9af85
Rename `sty` to `kind`
2019-09-25 15:50:04 +01:00
Jeremy Stucki
d28832dde9
Remove needless lifetimes
2019-07-03 10:01:02 +02:00
Eduard-Mihai Burtescu
f3f9d6dfd9
Unify all uses of 'gcx and 'tcx.
2019-06-14 18:58:23 +03:00
Eduard-Mihai Burtescu
fff08cb043
Run `rustfmt --file-lines ...` for changes from previous commits.
2019-06-12 13:38:28 +03:00
Eduard-Mihai Burtescu
17cdd356da
rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.
2019-06-12 13:38:27 +03:00
Eduard-Mihai Burtescu
2441253508
Fix fallout from `deny(unused_lifetimes)`.
2019-06-12 13:38:27 +03:00
Eduard-Mihai Burtescu
37799a5552
rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.
2019-06-12 13:38:27 +03:00
Nicholas Nethercote
b557567c35
Remove impls for `InternedString`/string equality.
...
`Symbol` received the same treatment in #60630 .
Also, we can derive `PartialEq` for `InternedString`.
2019-05-21 20:08:33 +10:00
Eduard-Mihai Burtescu
ff174fe09e
rustc: rename hir::def::Def to Res (short for "resolution").
2019-05-03 22:50:19 +03:00
Eduard-Mihai Burtescu
a3fcab36d2
rustc: factor most DefId-containing variants out of Def and into DefKind.
2019-05-03 22:48:27 +03:00
John Kåre Alsaker
1745957d63
Make misc checking 2 more parallel
2019-03-06 04:47:04 +01:00
ljedrz
3a1a704903
cleanup: rename node_id_to_type(_opt)
2019-02-09 16:37:15 +01:00
Mark Mansi
e957ed9d10
move librustc to 2018
2019-02-05 12:45:47 -06:00
John Kåre Alsaker
0c2bf6fe2a
Add an ensure() method to TyCtxt used to ensure queries are run
2019-01-29 21:10:33 +01:00
John Kåre Alsaker
e459000bc1
Make privacy checking, intrinsic checking and liveness checking incremental
2019-01-15 00:55:21 +01:00
varkor
d178fce5fc
Add specific diagnostic for transmuting between equal associated types
2018-12-28 19:23:22 +00:00
varkor
6cb1d953fd
Clarify wording of E0512
2018-12-28 19:23:22 +00:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
John Kåre Alsaker
a70babed03
Use a function to access the Hir map to be able to turn it into a query later
2018-12-06 17:24:36 +01:00
Oliver Scherer
740fb0cbaa
Use IndexVec instead of `usize` in librustc
2018-11-12 12:33:16 +01:00
Eduard-Mihai Burtescu
d00d42d079
rustc_target: pass contexts by reference, not value.
2018-11-04 20:33:57 +02:00
ljedrz
786b86ef5d
rustc/middle: whitespace & formatting fixes
2018-10-06 10:25:59 +02:00
ljedrz
c2b3aa9939
rustc/middle: improve some patterns
2018-10-06 10:24:52 +02:00
varkor
6f637da50c
Remove Ty prefix from Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
2018-08-22 16:07:44 +01:00
ljedrz
421b2ba347
Don't format!() string literals
2018-07-28 17:58:52 +02:00
csmoe
6a16b38198
ExprKind
2018-07-16 15:09:16 +02:00
Irina Popa
04fa0e7bb3
rustc_target: move in syntax::abi and flip dependency.
2018-04-26 17:49:16 +03:00
Michael Woerister
7f2423eede
Use ItemLocalId as key for node_types, node_substs, and adjustments in TypeckTables.
2017-08-11 12:11:38 +02:00
Michael Woerister
783ccc443b
Make TypeckTables::type_dependent_defs use ItemLocalId instead of NodeId.
2017-08-11 12:11:38 +02:00
Zack M. Davis
f668999153
use field init shorthand in src/librustc
...
The field init shorthand syntax was stabilized in 1.17.0 (aebd94f
); we
are now free to use it in the compiler.
2017-07-05 22:37:10 -07:00
Eduard-Mihai Burtescu
33ecf72e8e
rustc: move the PolyFnSig out of TyFnDef.
2017-06-27 16:39:52 +03:00
Mark Simulacrum
d09cf46d32
Update UI tests to be platform independent
2017-06-18 11:35:37 -06:00
Mark Simulacrum
effa869cab
Update transmute size lints.
...
Also moves a few transmute tests to UI tests to better test their
output.
2017-06-18 10:36:07 -06:00
Niko Matsakis
541523d10d
rewrite layout to take a (param-env, ty) pair instead of infcx
2017-06-01 12:56:30 -04:00
Niko Matsakis
6c4b961eff
move projection mode into parameter environment
2017-06-01 12:56:30 -04:00
Oliver Schneider
dd87eabd83
Remove need for &format!(...) or &&"" dances in `span_label` calls
2017-05-08 12:56:15 +02:00
Eduard-Mihai Burtescu
612bb1f54e
rustc: rename some of the queries to match tcx methods.
2017-04-24 15:20:52 +03:00
Niko Matsakis
810e0151af
convert calls to `visit_all_item_likes_in_krate`
...
We no longer need to track the tasks in these cases since these
particular tasks have no outputs (except, potentially, errors...) and
they always execute.
2017-04-18 07:08:40 -04:00
Simonas Kazlauskas
fcbd898502
Compress ReprOptions a little bit
2017-04-16 16:17:13 +03:00
Eduard-Mihai Burtescu
43b227f3bd
rustc: add some abstractions to ty::layout for a more concise API.
2017-04-08 23:41:18 +03:00
Eduard Burtescu
7650afc1ce
Make transmuting from fn item types to pointer-sized types a hard error.
2017-02-28 23:47:55 +02:00
Eduard-Mihai Burtescu
91374f8fe4
rustc: combine BareFnTy and ClosureTy into FnSig.
2017-02-25 17:47:15 +02:00
Eduard-Mihai Burtescu
45c8c5678a
rustc: rename TyCtxt's `map` field to `hir`.
2017-01-26 13:41:28 +02:00
Eduard-Mihai Burtescu
85a4a192c7
rustc: keep track of tables everywhere as if they were per-body.
2017-01-06 22:23:29 +02:00
Eduard-Mihai Burtescu
e64f64a2fc
rustc: separate bodies for static/(associated)const and embedded constants.
2016-12-28 11:27:57 +02:00
Eduard-Mihai Burtescu
864928297d
rustc: separate TraitItem from their parent Item, just like ImplItem.
2016-12-28 11:21:45 +02:00
Mark-Simulacrum
1eab19dba8
Refactor ty::FnSig to privatize all fields
2016-12-05 22:22:49 -07:00