Skip to content

Rollup of 5 pull requests #45192

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 10 commits into from
Oct 11, 2017
Merged

Rollup of 5 pull requests #45192

merged 10 commits into from
Oct 11, 2017

Conversation

tromey and others added 10 commits October 6, 2017 13:05
A few pretty-printers were returning a quoted string from their
to_string method.  It's preferable in gdb to return a lazy string and to
let gdb handle the display by having a "display_hint" method that
returns "string" -- it lets gdb settings (like "set print ...") work, it
handles corrupted strings a bit better, and it passes the information
along to IDEs.
Also reorder changes to put the important one first.
We may see a help message in the end of the output of the ./configure script:

$ ./configure
configure: processing command line
configure:
configure: build.configure-args := []
configure:
configure: writing `config.toml` in current directory
configure:
configure: run `python ./src/bootstrap/x.py --help`
configure:

but the x.py script is actually in the rust root directory and
executing of such help string will give us error:

$ python ./src/bootstrap/x.py --help
python: can't open file './src/bootstrap/x.py': [Errno 2] No such file
or directory

This patch fixes path to the x.py script in the output of the ./configure
…elwoerister

Implement display_hint in gdb pretty printers

A few pretty-printers were returning a quoted string from their
to_string method.  It's preferable in gdb to return a lazy string and to
let gdb handle the display by having a "display_hint" method that
returns "string" -- it lets gdb settings (like "set print ...") work, it
handles corrupted strings a bit better, and it passes the information
along to IDEs.
…m_dep_node, r=nikomatsakis

incr.comp.: Add some documentation to force_from_dep_node().

r? @nikomatsakis
Update let-expressions.rs with DepNode labels

As a part of rust-lang#44924, the PR has tests verified for the following dependency nodes for **let-expressions**
```
- MirValidated
- MirOptimized
- TypeCheckTables
- TypeOfItem
- GenericsOfItem
- PredicatesOfItem
- FnSignature
```

As we are more concerned with the function body,  the following fingerprints do not change over compilation sessions.
```- TypeOfItem
- GenericsOfItem
- PredicatesOfItem
- FnSignature
```

r? @nikomatsakis
cc @michaelwoerister

P.S. Will add more tests as and when possible :)
…teveklabnik

Fix a mistake in release notes for 1.21.0

Also reorder changes to put the important one first.
…py, r=Mark-Simulacrum

Fix path to x.py in bootstrap/configure.py script

We may see a help message in the end of the output of the ./configure script:

```
$ ./configure
configure: processing command line
configure:
configure: build.configure-args := []
configure:
configure: writing `config.toml` in current directory
configure:
configure: run `python ./src/bootstrap/x.py --help`
configure:
```

but the `x.py` script is actually in the rust root directory and
executing of such help string will give us error:

```
$ python ./src/bootstrap/x.py --help
python: can't open file './src/bootstrap/x.py': [Errno 2] No such file
or directory
```

This patch fixes path to the x.py script in the output of the ./configure
@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@steveklabnik
Copy link
Member Author

@bors: r+ p=1

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

📌 Commit 4a90366 has been approved by steveklabnik

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

⌛ Testing commit 4a90366 with merge 01e08b6b737f5b251874f3707baad22f25a498a9...

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

💔 Test failed - status-travis

@steveklabnik
Copy link
Member Author

@bors: retry

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

⌛ Testing commit 4a90366 with merge 8f83b802c789996a17eaef3715eaab241947ca11...

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

💔 Test failed - status-travis

@kennytm
Copy link
Member

kennytm commented Oct 11, 2017

@bors retry

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

⌛ Testing commit 4a90366 with merge c05241b7b9c43ffb82f57e3c8dc318f672c8e330...

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

💔 Test failed - status-travis

@kennytm
Copy link
Member

kennytm commented Oct 11, 2017

@bors retry

check i686-apple-darwin, LLDB segfault, spurious.

[01:46:37] ---- [debuginfo-lldb] debuginfo/by-value-non-immediate-argument.rs stdout ----
[01:46:37] 	NOTE: compiletest thinks it is using LLDB version 360
[01:46:37] 
[01:46:37] error: Error while running LLDB
[01:46:37] status: signal: 11
[01:46:37] command: "/usr/bin/python" "/Users/travis/build/rust-lang/rust/src/etc/lldb_batchmode.py" "/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/debuginfo/by-value-non-immediate-argument.stage2-i686-apple-darwin" "/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/debuginfo/by-value-non-immediate-argument.debugger.script"
[01:46:37] stdout:
[01:46:37] ------------------------------------------
[01:46:37] LLDB batch-mode script
[01:46:37] ----------------------
[01:46:37] Debugger commands script is '/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/debuginfo/by-value-non-immediate-argument.debugger.script'.
[01:46:37] Target executable is '/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/debuginfo/by-value-non-immediate-argument.stage2-i686-apple-darwin'.
[01:46:37] Current working directory is '/Users/travis/build/rust-lang/rust'
[01:46:37] Creating a target for '/Users/travis/build/rust-lang/rust/build/i686-apple-darwin/test/debuginfo/by-value-non-immediate-argument.stage2-i686-apple-darwin'
[01:46:37] settings set auto-confirm true
[01:46:37] 
[01:46:37] version
[01:46:37] lldb-360.1.70 
[01:46:37] command script import /Users/travis/build/rust-lang/rust/./src/etc/lldb_rust_formatters.py
[01:46:37] type summary add --no-value --python-function lldb_rust_formatters.print_val -x ".*" --category Rust
[01:46:37] type category enable Rust
[01:46:37] 
[01:46:37] breakpoint set --file 'by-value-non-immediate-argument.rs' --line 94
[01:46:37] Breakpoint 1: where = by-value-non-immediate-argument.stage2-i686-apple-darwin`by_value_non_immediate_argument::fun + 42 at by-value-non-immediate-argument.rs:94, address = 0x00001afa 
[01:46:37] breakpoint set --file 'by-value-non-immediate-argument.rs' --line 98
[01:46:37] Breakpoint 2: where = by-value-non-immediate-argument.stage2-i686-apple-darwin`by_value_non_immediate_argument::fun_fun + 72 at by-value-non-immediate-argument.rs:98, address = 0x00001b58 
[01:46:37] breakpoint set --file 'by-value-non-immediate-argument.rs' --line 102
[01:46:37] Breakpoint 3: where = by-value-non-immediate-argument.stage2-i686-apple-darwin`by_value_non_immediate_argument::tup + 79 at by-value-non-immediate-argument.rs:102, address = 0x00001bbf 
[01:46:37] breakpoint set --file 'by-value-non-immediate-argument.rs' --line 108
[01:46:37] Breakpoint 4: where = by-value-non-immediate-argument.stage2-i686-apple-darwin`by_value_non_immediate_argument::new_type + 79 at by-value-non-immediate-argument.rs:108, address = 0x00001c1f 
[01:46:37] breakpoint set --file 'by-value-non-immediate-argument.rs' --line 120
[01:46:37] Breakpoint 5: where = by-value-non-immediate-argument.stage2-i686-apple-darwin`by_value_non_immediate_argument::by_val_enum + 79 at by-value-non-immediate-argument.rs:120, address = 0x00001c7f 
[01:46:37] quit
[01:46:37] 
[01:46:37] 
[01:46:37] ------------------------------------------
[01:46:37] stderr:
[01:46:37] ------------------------------------------
[01:46:37] 
[01:46:37] ------------------------------------------
[01:46:37] 
[01:46:37] thread '[debuginfo-lldb] debuginfo/by-value-non-immediate-argument.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:2425:8
[01:46:37] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[01:46:37] 
[01:46:37] 
[01:46:37] failures:
[01:46:37]     [debuginfo-lldb] debuginfo/by-value-non-immediate-argument.rs
[01:46:37] 
[01:46:37] test result: �[31mFAILED�(B�[m. 97 passed; 1 failed; 10 ignored; 0 measured; 0 filtered out
[01:46:37] 
[01:46:37] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:323:21

@bors
Copy link
Collaborator

bors commented Oct 11, 2017

⌛ Testing commit 4a90366 with merge c0d40a1...

bors added a commit that referenced this pull request Oct 11, 2017
Rollup of 5 pull requests

- Successful merges: #45071, #45139, #45148, #45171, #45180
- Failed merges: #45121
@bors
Copy link
Collaborator

bors commented Oct 11, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: steveklabnik
Pushing c0d40a1 to master...

@bors bors merged commit 4a90366 into rust-lang:master Oct 11, 2017
@steveklabnik steveklabnik deleted the rollup branch October 25, 2017 18:24
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.