Tshepang Lekhonkhobe
636076a89e
comment refers to removed type
...
Was removed in 51938c61f6
2020-04-04 20:30:09 +02:00
Mazdak Farrokhzad
86c0fca44b
use direct import for ErrorReported
2020-04-02 13:40:43 +02:00
Matthias Krüger
9bba047c2e
Use if let instead of match when only matching a single variant (clippy::single_match)
...
Makes code more compact and reduces nestig.
2020-03-30 10:52:29 +02:00
Mazdak Farrokhzad
1ccb0b4a02
rustc -> rustc_middle part 3 (rustfmt)
2020-03-30 07:19:55 +02:00
Mazdak Farrokhzad
0cb9e36090
rustc -> rustc_middle part 2
2020-03-30 07:16:56 +02:00
Mazdak Farrokhzad
7710f2dd5c
rustc -> rustc_middle part 1
2020-03-30 07:02:56 +02:00
Mazdak Farrokhzad
f1701ddef1
rustc: remove rustc_hir_pretty dependency.
2020-03-24 08:44:55 +01:00
Mazdak Farrokhzad
b3866a5c93
move rustc_hir::print -> rustc_hir_pretty
2020-03-24 06:25:03 +01:00
Mazdak Farrokhzad
0b99489a89
Rollup merge of #69965 - mark-i-m:codegen-utils, r=eddyb
...
Refactorings to get rid of rustc_codegen_utils
r? @eddyb
cc #45276
After this, the only modules left in `rustc_codegen_utils` are
- `link`: a bunch of linking-related functions (many dealing with file names). These are mostly consumed by save analysis, rustc_driver, rustc_interface, and of course codegen. I assume they live here because we don't want a dependency of save analysis on codegen... Perhaps they can be moved to librustc?
- ~`symbol_names` and `symbol_names_test`: honestly it seems odd that `symbol_names_test` is not a submodule of `symbol_names`. It seems like these could honestly live in their own crate or move to librustc. Already name mangling is exported as the `symbol_name` query.~ (move it to its own crate)
I don't mind doing either of the above as part of this PR or a followup if you want.
2020-03-21 08:51:14 +01:00
Matthias Krüger
ad00e91887
remove redundant returns (clippy::needless_return)
2020-03-20 20:23:03 +01:00
Mark Mansi
2d75a339ca
Refactorings to begin getting rid of rustc_codegen_utils
2020-03-19 23:14:46 -05:00
Mazdak Farrokhzad
4392a8b73c
use direct imports for rustc::{lint, session}.
2020-03-16 02:52:06 +01:00
John Kåre Alsaker
8b16b023b1
Index HIR after creating TyCtxt
2020-03-14 22:52:30 +01:00
Yuki Okushi
c13548dccd
Rollup merge of #69809 - matthiaskrgr:lifetimes, r=eddyb
...
remove lifetimes that can be elided (clippy::needless_lifetimes)
2020-03-14 04:03:26 +09:00
Yuki Okushi
8e17c8366c
Rollup merge of #69802 - matthiaskrgr:cl1ppy, r=Dylan-DPC
...
fix more clippy findings
* reduce references on match patterns (clippy::match_ref_pats)
* Use writeln!(fmt, "word") instead of write!(fmt, "word\n") (clippy::write_with_newline)
* libtest: remove redundant argument to writeln!() (clippy::writeln_empty_string)
* remove unneeded mutable references (cippy::unnecessary_mut_passed)
* libtest: declare variables as floats instead of casting them (clippy::unnecessary_cast)
* rustdoc: remove redundant static lifetimes (clippy::redundant_static_lifetimes)
* call .as_deref() instead of .as_ref().map(Deref::deref) (clippy::option_as_ref_deref)
* iterate over a maps values directly. (clippy::for_kv_map)
* rustdoc: simplify boolean condition (clippy::nonminimal_bool)
* Use ?-operator in more places (clippy::question_mark, had some false negatives fixed recently)
* rustdoc: Use .any(p) instead of find(p).is_some(). (clippy::search_is_some)
* rustdoc: don't call into_iter() on iterator. (clippy::identity_conversion)
2020-03-14 04:03:24 +09:00
Matthias Krüger
7b1b08cfee
remove lifetimes that can be elided (clippy::needless_lifetimes)
2020-03-12 20:03:09 +01:00
Mazdak Farrokhzad
39c6405097
Rollup merge of #69747 - spastorino:rename-rustc-guide, r=pietroalbini
...
Rename rustc guide
This is in preparation for https://github.com/rust-lang/rustc-guide/issues/470
Needs to be merged after we actually rename the guide.
Have used this to rename:
`git grep -l 'rustc_guide' | xargs sed -i 's/rustc_guide/rustc_dev_guide/g'`
`git grep -l 'rustc-guide' | xargs sed -i 's/rustc-guide/rustc-dev-guide/g'`
`git grep -l 'rustc guide' | xargs sed -i 's/rustc guide/rustc dev guide/g'`
2020-03-12 16:32:19 +01:00
Santiago Pastorino
b3b32b74bc
rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org
2020-03-10 17:08:18 -03:00
Santiago Pastorino
9d4fdba8be
Rename rustc guide to rustc dev guide
2020-03-10 17:08:16 -03:00
Santiago Pastorino
0037f4e37c
Rename rustc-guide to rustc-dev-guide
2020-03-10 17:08:10 -03:00
Mazdak Farrokhzad
5e9888eec5
Rollup merge of #69608 - o01eg:expose-target-libdir-print, r=ehuss
...
Expose target libdir information via print command
With custom libdir it is required to have an access to library placement.
See https://github.com/RazrFalcon/cargo-bloat/issues/51
2020-03-08 20:54:30 +01:00
Matthias Krüger
7aad89a900
Use ?-operator in more places (clippy::question_mark, had some false negatives fixed recently)
2020-03-07 21:46:47 +01:00
bors
e86c9e6ef8
Auto merge of #69442 - jakevossen5:master, r=Mark-Simulacrum
...
`--explain` disambiguates no long description and invalid error codes
Closes #44710
First code contribution here, so feedback is very much appreciated!
cc @zackmdavis
cc @Mark-Simulacrum
2020-03-02 03:16:22 +00:00
O01eg
4023e5df7e
Expose target libdir information via print command.
...
With custom libdir it is required to have an access to library
placement.
2020-03-01 14:33:52 +03:00
Vadim Petrochenkov
e08c279eac
Rename syntax to rustc_ast in source code
2020-02-29 21:59:09 +03:00
Jake Vossen
5f3ffee6b7
added try_find_description to distinguish no desc from invalid code
2020-02-29 11:53:51 -07:00
Vadim Petrochenkov
6054a30370
Make it build again
2020-02-29 20:47:10 +03:00
Mazdak Farrokhzad
61b091b440
Rollup merge of #69541 - dotdash:format, r=Mark-Simulacrum
...
Remove unneeded calls to format!()
2020-02-28 17:17:36 +01:00
Björn Steinbrink
c1de0b1b70
Remove unneeded calls to format!()
2020-02-27 15:25:19 +01:00
Matthias Krüger
7c84ba1124
use char instead of &str for single char patterns
2020-02-27 14:57:22 +01:00
Maxim Zholobak
20c9a40fec
Rename CodeMap to SourceMap follow up
2020-02-22 16:17:31 +02:00
Dylan DPC
db48a8a6aa
Rollup merge of #69059 - ljedrz:unused_stuff, r=Dylan-DPC
...
Remove a few unused objects
As far as I can tell, these won't be missed:
- `infer::region_constraints::ConstraintInfo`
- `driver::DefaultCallbacks`
- ~~`hir::intravisit::ParDeepVisitor`~~
2020-02-12 14:21:14 +01:00
Yuki Okushi
344f8d9e62
Rollup merge of #68487 - 0dvictor:nolink, r=tmandry
...
[experiment] Support linking from a .rlink file
Flag `-Z no-link` was previously introduced, which allows creating an `.rlink` file to perform compilation without linking. This change enables linking from an `.rlink` file.
Part of Issue #64191
2020-02-12 18:55:36 +09:00
ljedrz
d8544ce248
remove some unused objects
2020-02-12 09:21:39 +01:00
Dylan DPC
ec0cfd1d01
Rollup merge of #66498 - bjorn3:less_feature_flags, r=Dylan-DPC
...
Remove unused feature gates
I think many of the remaining unstable things can be easily be replaced with stable things. I have kept the `#![feature(nll)]` even though it is only necessary in `libstd`, to make regressions of it harder.
2020-02-11 16:36:54 +01:00
Victor Ding
a47fdb99c0
Support linking from a .rlink file
...
Flag `-Z no-link` was previously introduced, which allows creating
an `.rlink` file to perform compilation without linking.
This change enables linking from an `.rlink` file.
2020-02-11 20:19:28 +11:00
John Kåre Alsaker
20ce2f6038
Move the krate method to Hir and remove the Krate dep node
2020-02-06 13:23:32 +01:00
John Kåre Alsaker
63980cd0fb
Add a Hir wrapper type
2020-02-06 12:05:40 +01:00
bjorn3
cf862df494
Remove unused feature gates from librustc_driver
2020-02-04 19:18:11 +01:00
Mazdak Farrokhzad
a0838462cf
pretty: injected_crate_name -> has_injected_crate
2020-02-01 18:59:49 +01:00
Mazdak Farrokhzad
e233331a51
syntax::print -> new crate rustc_ast_pretty
2020-02-01 18:59:49 +01:00
Mazdak Farrokhzad
64d0143c2c
pretty: remove ParseSess dependency
2020-02-01 18:54:55 +01:00
Dylan DPC
4ff6195929
Rollup merge of #68252 - matthiaskrgr:redundant_clones, r=oli-obk
...
remove redundant clones, found by clippy
2020-01-15 22:49:32 +05:30
Matthias Krüger
312c3a067a
remove redundant clones, found by clippy
2020-01-15 15:00:25 +01:00
Yuki Okushi
be1ecce01f
Rollup merge of #68141 - euclio:replace-bindings-with-winapi, r=alexcrichton
...
use winapi for non-stdlib Windows bindings
2020-01-15 21:51:45 +09:00
Andy Russell
7b564c67de
use winapi for non-stdlib Windows bindings
2020-01-11 20:56:46 -05:00
Mazdak Farrokhzad
f58db20362
move rustc::lint::{context, passes} to rustc_lint.
...
Also do some cleanup of the interface.
2020-01-11 07:42:26 +01:00
Mazdak Farrokhzad
8c0c5c7e65
Rollup merge of #68043 - Zoxc:missing-timers, r=wesleywiser
...
Add some missing timers
Based on https://github.com/rust-lang/rust/pull/67988
r? @wesleywiser
2020-01-11 04:02:24 +01:00
Mazdak Farrokhzad
8bd3d240e3
nix syntax::errors & prefer rustc_errors over errors
2020-01-10 07:41:30 +01:00
John Kåre Alsaker
5918c18785
Tweak timers
2020-01-09 23:19:20 +01:00