rust/src/librustc
Mazdak Farrokhzad ff961789bc
Rollup merge of #69326 - JOE1994:os_str_widestring, r=RalfJung
mir-interpret: add method to read wide strings from Memory

Implemented *step2* from [instructions](https://github.com/rust-lang/miri/issues/707#issuecomment-561564057) laid out in rust-lang/miri#707.

Added 2 new methods to struct `rustc_mir::interpret::InterpCx`.

* `read_os_str_from_wide_str` (src/librustc_mir/interpret/operand.rs)
* `write_os_str_to_wide_str` (src/librustc_mir/interpret/place.rs)
  - used existing logic implemented in [MIRI/src/eval.rs](94732aaf7b/src/eval.rs (L132-L141))

These methods are intended to be used for environment variable emulation in Windows.
2020-03-08 20:54:28 +01:00
..
benches Drop cfg(bootstrap) code 2020-01-31 12:31:09 -05:00
dep_graph cover some more nearby cases 2020-03-04 13:18:08 +01:00
hir Rollup merge of #69773 - matthiaskrgr:typos, r=petrochenkov 2020-03-07 17:27:32 +01:00
ich Rollup merge of #69580 - matthiaskrgr:map_clone, r=Centril 2020-03-01 19:28:12 +09:00
infer Make librustc compile. 2020-02-16 11:41:25 +01:00
middle Rollup merge of #69667 - JohnTitor:no-debug, r=nikomatsakis 2020-03-07 17:27:26 +01:00
mir Rollup merge of #69326 - JOE1994:os_str_widestring, r=RalfJung 2020-03-08 20:54:28 +01:00
query Auto merge of #69614 - estebank:ice-age, r=davidtwco 2020-03-06 08:24:48 +00:00
traits Don't redundantly repeat field names (clippy::redundant_field_names) 2020-03-06 19:42:18 +01:00
ty Rollup merge of #69773 - matthiaskrgr:typos, r=petrochenkov 2020-03-07 17:27:32 +01:00
util nix syntax::errors & prefer rustc_errors over errors 2020-01-10 07:41:30 +01:00
arena.rs Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Auto merge of #69482 - lqd:poloniusup, r=nikomatsakis 2020-03-03 13:27:52 +00:00
lib.rs Rollup merge of #67272 - fisherdarling:master, r=varkor,hellow554 2020-02-18 20:08:59 +09:00
lint.rs Run RustFmt 2020-02-11 19:49:01 +10:00
macros.rs Move macro enum_from_u32 to rustc_data_structures. 2020-02-11 23:03:53 +01:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
tests.rs librustc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00

For more information about how rustc works, see the rustc guide.