Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Dylan MacKenzie
ee233c07c6
Restructue HIR const-checker to handle features with multiple gates
2019-12-13 10:38:29 -08:00
Guillaume Gomez
798e389e57
Update to use new librustc_error_codes library
2019-11-14 13:05:42 +01:00
Dylan MacKenzie
3a84efd0cc
Add HIR pass to check for if
s and loop
s in a const
...
These high-level constructs get mapped to control-flow primitives by the
time the MIR const-checker runs, making it hard to get the span for the
erroneous expression.
2019-11-13 10:44:13 -08:00
Mark Rousskov
7c3f65b3c4
middle::intrinsicck -> rustc_passes
2019-10-04 11:11:33 -04:00
Mark Rousskov
82bfd8eb0d
middle::entry -> rustc_passes
2019-10-04 11:11:33 -04:00
Mark Rousskov
bb707824d0
middle::dead -> rustc_passes
2019-10-04 11:11:33 -04:00
Mark Rousskov
91a096a9b8
move middle::liveness to rustc_passes
2019-10-04 11:11:33 -04:00
Matthew Jasper
455945f24b
Remove HIR based const qualification
2019-09-30 19:56:49 +01:00
Mark Rousskov
f359a94849
Snap cfgs to new beta
2019-09-25 08:42:46 -04:00
Mazdak Farrokhzad
0356813b27
Dont use gate bind_by_move_pattern_guards internally.
2019-09-08 01:27:10 +02:00
Mark Rousskov
41b39fce98
Remove rustc_diagnostic_macros feature
2019-09-05 12:35:18 -04:00
Mark Rousskov
b437240cee
Replace diagnostic plugins with macro_rules
2019-09-05 12:35:15 -04:00
Vadim Petrochenkov
676d282dd3
Deny unused_lifetimes
through rustbuild
2019-07-28 18:47:02 +03:00
Vadim Petrochenkov
434152157f
Remove lint annotations in specific crates that are already enforced by rustbuild
...
Remove some random unnecessary lint `allow`s
2019-07-28 18:46:24 +03:00
flip1995
084c829fb8
Enable internal lints in bootstrap
2019-06-24 10:45:20 +02:00
Mazdak Farrokhzad
a7b00f5807
let_chains: Handle disallowing of let chains in places lowering won't support.
2019-06-23 01:29:29 +02:00
Eduard-Mihai Burtescu
37799a5552
rustc: replace TyCtxt<'a, 'gcx, 'tcx>
with TyCtxt<'tcx, 'gcx, 'tcx>
.
2019-06-12 13:38:27 +03:00
Eduard-Mihai Burtescu
630ec8880c
Add deny(unused_lifetimes) to all the crates that have deny(internal).
2019-06-11 14:11:59 +03:00
bors
d6f513ec7d
Auto merge of #60025 - JohnTitor:rename-files, r=petrochenkov
...
Rename files about error codes
fixes #60017
This PR will be failed in tidy.
<details>
<summary>The log is here:</summary>
```
tidy check
tidy error: duplicate error code: 411
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:83: __diagnostic_used!(E0411);
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:84: err.code(DiagnosticId::Error("E0411".to_owned()));
tidy error: duplicate error code: 424
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:90: debug!("smart_resolve_path_fragment: E0424, source={:?}", source);
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:92: __diagnostic_used!(E0424);
tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:93: err.code(DiagnosticId::Error("E0424".to_owned()));
some tidy checks failed
```
</details>
I'd like to fix this but I don't know what to do.
I will work on later. Please let me know if you have any solutions.
r? @petrochenkov
2019-04-18 14:52:45 +00:00
Yuki OKUSHI
9ad56e3b94
Rename modules
2019-04-17 18:21:34 +09:00
Mateusz Mikuła
87e4b43d51
Deny internal
in stage0
2019-04-17 05:15:00 +02:00
flip1995
d3f0cb9b62
Deny internal lints on non conflicting crates
...
- libarena
- librustc_allocator
- librustc_borrowck
- librustc_codegen_ssa
- librustc_codegen_utils
- librustc_driver
- librustc_errors
- librustc_incremental
- librustc_metadata
- librustc_passes
- librustc_privacy
- librustc_resolve
- librustc_save_analysis
- librustc_target
- librustc_traits
- libsyntax
- libsyntax_ext
- libsyntax_pos
2019-04-03 18:24:21 +02:00
Mazdak Farrokhzad
50df4d188f
Rollup merge of #58247 - taiki-e:librustc_passes-2018, r=Centril
...
librustc_passes => 2018
Transitions `librustc_passes` to Rust 2018; cc #58099
r? @Centril
2019-02-09 00:15:53 +01:00
Taiki Endo
bf531bd459
librustc_passes => 2018
2019-02-08 20:40:49 +09:00
Guillaume Gomez
8b886e07f5
Remove images' url to make it work even without internet connection
2019-02-07 11:06:19 +01:00
John Kåre Alsaker
1bdd2f699b
Conditionally skip two passes if their related attributes were not found
2019-01-28 05:46:53 +01:00
Niko Matsakis
8e4c57fca2
distinguish "no data" from "heterogeneous" for ABI purposes
...
Also, add a testing infrastructure and tests that lets us dump layout.
2019-01-25 10:03:47 -05:00
John Kåre Alsaker
69d18a3986
Make more passes incremental
2019-01-11 03:53:29 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
John Kåre Alsaker
0c4d551146
Fix recursion limits
2018-12-23 10:46:03 +01:00
yui-knk
934e4d3b29
Remove not used mod
...
`mir_stats` mod has not been used since c1ff10464d
.
2018-11-29 08:54:35 +09:00
Josh Stone
ce034951fb
Bump to 1.31.0 and bootstrap from 1.30 beta
2018-09-27 20:52:53 -07:00
toidiu
731f4efae5
stabalize infer outlives requirements (RFC 2093).
...
Co-authored-by: nikomatsakis
2018-09-11 11:40:04 -04:00
Niko Matsakis
73fb1622b3
check that adding infer-outlives requirement to all crates works
2018-08-24 17:10:50 -04:00
memoryruins
95b64188c9
[nll] librustc_passes: enable feature(nll) for bootstrap
2018-08-09 04:09:07 -04:00
Tatsuyuki Ishi
e098985939
Deny bare_trait_objects globally
2018-07-25 10:25:29 +09:00
ljedrz
5058af7003
Deny bare trait objects in the rest of rust
2018-07-12 13:50:22 +02:00
Eduard-Mihai Burtescu
5a5c7ded0d
rustc: rename ty::maps to ty::query.
2018-06-14 18:05:12 +03:00
Oliver Schneider
f45d0f3783
Removed unused dependencies on rustc_const_math
2018-04-30 18:18:33 +02:00
Mark Simulacrum
c115cc655c
Move deny(warnings) into rustbuild
...
This permits easier iteration without having to worry about warnings
being denied.
Fixes #49517
2018-04-08 16:59:14 -06:00
Oliver Schneider
438139f635
rustc_passes::consts -> rvalue_promotion
2018-03-08 08:34:14 +01:00
Oliver Schneider
e97089dae3
Move librustc_const_eval to librustc_mir
2018-03-08 08:08:14 +01:00
John Kåre Alsaker
b74e97cf42
Replace Rc with Lrc for shared data
2018-03-02 10:48:52 +01:00
Manish Goregaokar
25ec810921
Rollup merge of #47987 - Zoxc:rm-recursion-checking, r=eddyb
...
Remove "static item recursion checking" in favor of relying on cycle checks in the query engine
Tests are changed to use the cycle check error message instead. Some duplicate tests are removed.
r? @eddyb
2018-02-24 08:55:36 -08:00
Mark Simulacrum
33f5ceee1f
stage0 cfg cleanup
2018-02-20 08:52:33 -07:00
John Kåre Alsaker
ae46434b79
Remove "static item recursion checking" in favor of relying on cycle checks in the query engine
2018-02-10 00:29:11 +01:00
Vadim Petrochenkov
318cf22bd1
Move "no asm" check into AST validation
2018-01-13 23:35:11 +03:00
Alex Crichton
8c9bf663d4
rustc: Don't use relative paths for extended errors
...
These no longer work now that Cargo changes the cwd of rustc while it's running.
Instead use an absolute path that's set by rustbuild.
2018-01-04 07:21:22 -08:00
Niko Matsakis
0f568e2f34
convert constant promotion into a query
2017-10-16 17:32:22 -04:00